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
| #!/usr/bin/env ruby | |
| puts (ARGV.first || '').scan(/./).map(&:ord).reduce(:+) |
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
| #include <stdlib.h> | |
| #include <stdio.h> | |
| int | |
| main(int argc, char **argv) { | |
| if (argc < 2) { | |
| fprintf(stderr, "Missing arg, derp.\n"); | |
| return 1; | |
| } | |
| for (int i = 1; i < argc; i++) { |
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
| # encoding: us-ascii | |
| puts "#{RUBY_DESCRIPTION}: #{$0} -> #{__ENCODING__}" |
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
| foo: | |
| STICKY=derp ; \ | |
| echo $$STICKY | |
| bar: | |
| FLAKY=herp | |
| echo $$FLAKY |
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
| def context(*args, &block) | |
| return super unless (name = args.first) && block | |
| require 'test/unit' | |
| klass = Class.new(Test::Unit::TestCase) do | |
| def self.test(name, &block) | |
| define_method("test_#{name.gsub(/\W/, '_')}", &block) if block | |
| end | |
| def self.xtest(*args) | |
| end | |
| def self.setup(&block) |
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
| ** Invoke db:data:migrate (first_time) | |
| ** Invoke db:migrate (first_time) | |
| ** Invoke db:set_during_migrate (first_time) | |
| ** Execute db:set_during_migrate | |
| ** Invoke environment (first_time) | |
| ** Execute environment | |
| ** Execute db:migrate | |
| ** Invoke db:schema:dump (first_time) | |
| ** Invoke environment | |
| ** Execute db:schema:dump |
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
| /* jshint node: true */ | |
| 'use strict'; | |
| var csv = require('csv'); | |
| console.log('['); | |
| csv() | |
| .from.path(process.argv[2], { delimiter: ',', escape: '"' }) | |
| .on('record', function (row) { | |
| console.log(JSON.stringify(row) + ','); | |
| }) |
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 | |
| if [[ -z "$GITHUB_AUTH_TOKEN" ]] ; then | |
| echo 'ERROR: $GITHUB_AUTH_TOKEN must be set' | |
| exit 1 | |
| fi | |
| if [[ $# < 2 ]] ; then | |
| echo "Usage: $(basename $0) <owner/repo> <sha1>" | |
| exit 1 |
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
| class UserAgent | |
| def initialize(raw_ua) | |
| @raw_ua = raw_ua | |
| end | |
| def tablet? | |
| :lolwut | |
| end | |
| end |
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
| go clean -x github.com/joshk/hustle github.com/joshk/hustle/server || true | |
| cd /home/me/.gvm/pkgsets/go1.2/global/src/github.com/joshk/hustle | |
| rm -f hustle hustle.exe hustle.test hustle.test.exe main main.exe | |
| cd /home/me/.gvm/pkgsets/go1.2/global/src/github.com/joshk/hustle/server | |
| rm -f server.test server.test.exe | |
| if [ -d ${GOPATH%%:*}/pkg ] ; then \ | |
| find ${GOPATH%%:*}/pkg -name '*hustle*' -exec rm -rvf {} \; || true; \ | |
| fi | |
| removed ‘/home/me/.gvm/pkgsets/go1.2/global/pkg/linux_amd64/github.com/joshk/hustle/server.a’ | |
| removed directory: ‘/home/me/.gvm/pkgsets/go1.2/global/pkg/linux_amd64/github.com/joshk/hustle’ |