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
{ | |
"all_heroes": { | |
"assists_healing_done": 109494, | |
"assists_recon_assists": 10, | |
"assists_teleporter_pads_destroyed": 1, | |
"average_damage_done_average": 5640, | |
"average_deaths_average": 6.04, | |
"average_eliminations_average": 13.03, | |
"average_final_blows_average": 7.28, | |
"average_healing_done_average": 905, |
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 bash | |
set -e | |
# You can override GLIDE_VERSION to get a different version | |
GLIDE_VERSION=${GLIDE_VERSION:-0.9.3} | |
# Try to auto-detect kernel and arch | |
KERNEL=`uname -s | awk '{print tolower($0)}'` | |
ARCH=`uname -m` |
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
package benchcmpvsnil | |
import ( | |
"testing" | |
) | |
func BenchmarkNilPtrNil(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
isNilPtr(nil) | |
} |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/mrb/riakpbc" | |
) | |
func main() { |
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/ruby | |
# This program adds up the numbers 1 through 10,000 using 100 threads. | |
# Challenge A: Does this solution have any problems? If so, explain. | |
# Challenge B: Propose an alternate implementation that does not use threads. | |
require "thread" | |
mt_result = 0 |
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
sudo ipfw pipe 1 config bw 80KByte/s | |
sudo ipfw add 1 pipe 1 dst-ip 72.21.0.0/16 dst-port 443 | |
sudo ipfw add 2 pipe 1 dst-ip 17.152.0.0/16 dst-port 443 |
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
require 'rubygems' | |
puts ENV["GEM_HOME"] | |
require 'mongoid' | |
require 'mongoid/version' | |
class RapSupahStah | |
include Mongoid::Document | |
cache | |
attr_accessor :mode |