This file contains 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
q6IzbqMGtuo7R7Leo3QU4FncdJZpa0IyOF1oGJnRIo0izLN5NjF1T9zna4zBUZt85i792Yb2t8P0Kpr74kogqzamGiicPi8iBON6CAw9IebdkAlsqAFYaSOxBGqykSh2r8aoAU8vCOSzGj6cJUTVEgEWdhKw4L21qFT4Z97ZjVhPO7PmyvpMPjElvGHhtVeZ6IQYzOZBqwz9C1uI3rXIBwgsn4IT8TCCuOhWnhcx5gbi3TTtheo5duya7ygauBfjkpRXk4GopYI7xda5WTWG2I8gchaxTtFYcTUki381K78D680hPgUOwGQZ7U2M3MuY0H0wOuH8MDVxcvmyS6pWsXNKlLjt4OjCYblcQIIqiJkwjooFVkS2Hb9KCYRnHMuq8xYYv7ThEhreiZD2T3voMJTioxOCRH7BkrAyCiB04NW1YDGWqNtksjV2vvNQukUvLGJBHF2XeAF8Ns1vRUvSc36MMSIrRhGDY1eZd4CgCrU99uDiBWIYFHlJUqUIpauDInzj2lHmHf7gFcIvAMaACjAt62lESsi0UKsQ4zJNyTXQ6fPHHmbwfN335jTMY0kn4KuSzIhuLOIGA96DxK5BFUs8lkrJ4wjwG7bvajEMI9HdWoOS5ZPTUeiotjv4UPakuMBuQah0Fc1NIYInzcAdyrNAtyIMvNtYO34d8VN9zHId41DQqS1P8eLFlizPFcdHdiTg8beOCdIJYdOho2TGqfAlBtagxqhBiNKkYbGlcKklOHmikTLy1hg1agw5YHgjSpQObrwCnBfDFmLxqkd1pWIyxWR8n3PvrQEfRMWrqSbbF0euey6AZyGyJOrqIxlW8dfLEdnZEJxcO8x4Zl5cUBgKU0bh2v836na1JoIApaysdAIjDcV77KMM5YscIx4JJbHCg8v1bASjhje0Odly51x4hgX7w6HQL2qqjna2dI9kEDGzygr65WdTd2hbp1wZTKmvalVVMIjQLCsZS3KyGjQklCiheeUn8ORByxXN2Pcv0DKOqgfc622esX318VxM |
This file contains 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
{ | |
"schema": { | |
"type": "job_application.app.created", | |
"version": "1.0", | |
}, | |
"data": { | |
"organization": { | |
"id": 1, | |
"account": { | |
"id": 1, |
This file contains 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
3Gun checklist | |
Rifle | |
- 3 magazines | |
- 200 rounds 5.56 | |
Shotgun | |
- Choke tubes | |
- Choke wrench | |
- 100 lead shot shells: 7 1/2 |
This file contains 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 Totango | |
class Event | |
# http://help.totango.com/installing-totango/quick-start-http-api-server-side-integration/ | |
# | |
# Sending an event to Totango | |
# | |
# The HTTP API can be used to track user-activity from anywhere in your web-app. | |
# Simply send the following parametrized HTTP request every time a user performs an important user-action. |
This file contains 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/ruby | |
POPULATION = [ | |
[1, 2, 3], | |
[2, 3, 4], | |
[3, 2, 1] | |
] | |
X = 0 | |
Y = 0 | |
STRENGTH = 2 |
This file contains 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/ruby | |
tests = [ | |
[1, 1, 1], | |
[1, 1, 13], | |
[1, 13, 13], | |
[1, 13, 32], | |
[1, 2, 3], | |
[10, 12, 78] | |
] |
This file contains 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/ruby | |
# Example: % ruby origins_and_order.rb 1 1 1 | |
args = [ARGV[0], ARGV[1], ARGV[2]].map(&:to_i) | |
if args.max < 12 && args.uniq.length > 1 | |
puts 'Ambiguous' | |
else | |
puts args.sort.join('/') |
This file contains 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/ruby | |
# Example: ruby origins_and_order.rb 1 1 1 | |
args = [ | |
ARGV[0].to_i, | |
ARGV[1].to_i, | |
ARGV[2].to_i | |
] |
This file contains 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 StringerBell | |
def initialize(string) | |
@string = string | |
end | |
def symmetric? | |
@string.squeeze.length == 1 | |
end | |
end |
This file contains 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 current_tab && current_tab.length > 0 | |
$(".protocol-tab > a[href='##{current_tab}']").tab('show') # show last visited tab on load | |
else | |
$('.protocol-tab a').first().tab('show') # show first tab on load |
NewerOlder