diff --git a/.gitignore b/.gitignore index 3ce49c6..3c3629e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -stylesheets/.sass-cache node_modules diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index effeaef..0000000 --- a/deploy.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/zsh - -if [ "$1" = "--all" ] ; then - s3cmd put -r * s3://starlogs.net -elif [ "$1" = "--assets" ]; then - cp assets/falcon_fly.mp3 ~/Dropbox/Public/starlogs.net/assets/ - cp assets/falcon_fly.ogg ~/Dropbox/Public/starlogs.net/assets/ - cp assets/imperial_march_small.mp3 ~/Dropbox/Public/starlogs.net/assets/imperial_march.mp3 - cp assets/imperial_march_small.ogg ~/Dropbox/Public/starlogs.net/assets/imperial_march.ogg - cp assets/theme_small.mp3 ~/Dropbox/Public/starlogs.net/assets/theme.mp3 - cp assets/theme_small.ogg ~/Dropbox/Public/starlogs.net/assets/theme.ogg -else - s3cmd put starlogs.html s3://starlogs.net - s3cmd put javascripts/guts.js s3://starlogs.net/javascripts/guts.js - s3cmd put stylesheets/styles.css s3://starlogs.net/stylesheets/styles.css -fi diff --git a/favicon.ico b/favicon.ico deleted file mode 100644 index 8e29fb5..0000000 Binary files a/favicon.ico and /dev/null differ diff --git a/javascripts/guts.pogo b/javascripts/guts.pogo deleted file mode 100644 index 30f09f7..0000000 --- a/javascripts/guts.pogo +++ /dev/null @@ -1,120 +0,0 @@ -$ - animation end = 'animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd' - transition end = 'webkitTransitionEnd transitionend msTransitionEnd oTransitionEnd' - visibilitychange = 'visibilitychange webkitvisibilitychange' - - document hidden () = - document.hidden || document.webkitHidden - - get query variable (variable) = - res = null - query = window.location.search.substring 1 - vars = query.split "&" - - for (i = 0, i < vars.length, i := i+1) - pair = vars.(i).split "=" - if (pair.0 == (variable)) - res := pair.1 - - res - - volume () = - get query variable "volume" || 1 - - crawl (messages) = - counter = 0 - delay () = - last message div height = $ '.content:last'.height() - 1000 + 500 * last message div height / 18 - - if (messages.length > 0) - if (document hidden ()) - set timeout - crawl (messages) - (delay()) - else - $ '.plane'.append ($('
', class: 'content').text (messages.0)) - set timeout - crawl (messages.slice(counter)) - (delay()) - ++counter - else - counter := 0 - - play commit (messages) = - $'#theme'.prop('volume', volume()).get 0.play() - crawl (messages) - - play error () = - $'#imperial_march'.prop('volume', volume()).get 0.play() - crawl (["Tun dun dun, da da dun, da da dun ...", "Couldn't find the repo, the repo!"]) - - (repo) commits link = - user slash repo = repo.replace r/.*github.com[\/:](.*?)(\.git)?$/ '$1' - { - url = "https://api.github.com/repos/#(user slash repo)/commits?per_page=100" - hash_tag = "##(user slash repo)" - } - - get repo url from hash () = - match = window.location.hash.match r/#(.*?)\/(.*?)$/ - if (match) - "https://api.github.com/repos/#(match.1)/#(match.2)/commits" - - show response () = - $ '.plane'.show() - commits fetch.done @(response) - if (response.data :: Array) - messages = [record.commit.message, where: record <- response.data] - play commit (messages) - else - console.log(response) - play error() - .fail @(problem) - console.log(problem) - play error() - - create audio tag (looped: true) for (file name) = - tag = $ '