This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Sir Trevor</title> | |
| <link rel="stylesheet" type="text/css" href="sir-trevor.css"> | |
| <link rel="stylesheet" type="text/css" href="sir-trevor-icons.css"> | |
| </head> | |
| <body> | |
| <form> | |
| <textarea class="js-st-instance">{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defproject clojure-rest "0.1.0-SNAPSHOT" | |
| :description "My First Clojure App" | |
| :url "http://github.com/jhubert/clojure-app" | |
| :dependencies [[org.clojure/clojure "1.5.1"] | |
| [compojure "1.1.6"] | |
| [ring/ring-json "0.1.2"] | |
| [c3p0/c3p0 "0.9.1.2"] | |
| [org.clojure/java.jdbc "0.2.3"] | |
| [com.h2database/h2 "1.3.168"] | |
| [cheshire "4.0.3"]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('form').each(function(i, el){ | |
| var sender = $(this).parent().siblings('p').text().trim(); | |
| if (sender == 'Errbit') { | |
| var data = 'action=delete'; | |
| data += '&message_id='+$(el).find('input[name="message_id"]').val(); | |
| data += '&xsrf_token='+$(el).find('input[name="xsrf_token"]').val(); | |
| data += '&message_index='+$(el).find('input[name="message_index"]').val(); | |
| $.ajax({ | |
| type: $(el).attr('method'), | |
| url: $(el).attr('action'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CookieBot = { | |
| start: function() { | |
| this.clickInterval = setInterval(function(){ | |
| // Click the large cook as fast as possible! | |
| $("#bigCookie").click(); | |
| }, 1); | |
| this.goldenCookieInterval = setInterval(function(){ | |
| // Sometimes a golden cookie will appear to give you a bonus | |
| // Click that a bunch of times! | |
| $("#goldenCookie").click(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Api | |
| module V1 | |
| class BaseController < ActionController::Base | |
| class ::BMP::CompanyNotFound < ActiveRecord::RecordNotFound; end | |
| class ::BMP::Unauthenticated < StandardError; end | |
| doorkeeper_for :all | |
| respond_to :json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| deployment: | |
| deploy_staging: | |
| branch: staging | |
| commands: | |
| - heroku maintenance:on --app OUR_STAGING_APP | |
| - git push [email protected]:OUR_STAGING_APP.git $CIRCLE_SHA1:refs/heads/master | |
| - heroku run rake db:migrate --app OUR_STAGING_APP | |
| - heroku restart --app OUR_STAGING_APP | |
| - heroku maintenance:off --app OUR_STAGING_APP | |
| deploy_production: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!state.initialized) { | |
| state.cur = 0; | |
| state.dir = 1; | |
| state.initialized = true; | |
| state.last_update = false; | |
| state.val = 1; | |
| state.chaser = false; | |
| } | |
| //1:1,2:1,3:1,4:1,4:2,4:3,4:4,4:3,4:2,4:1,3:1,2:1,2:2,2:3,3:3,3:2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| gem 'nokogiri' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Remove the RVM stuff from your .profile - It probably looks like... | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
| # Reload your profile | |
| . ~/.profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| T='gYw' # The test text | |
| for FGs in 0 1 2 3 4 5 6 7; | |
| do FG=${FGs// /} | |
| echo -en " $FGs $(tput setaf $FG) $T " | |
| for BG in 0 1 2 3 4 5 6 7; | |
| do echo -en "$EINS $(tput setaf $FG)$(tput setab $BG) $T $(tput sgr0)"; | |
| done |