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 MinecraftAccountVerifier | |
require 'net/http' | |
require 'uri' | |
AUTH_URI = URI.parse('https://login.minecraft.net/').freeze | |
CLIENT_VERSION = 13 | |
attr_reader :error | |
# Public: verify an account as a true Minecraft account this user has access to. |
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
# This is the msttcorefonts spec file as distributed from | |
# http://corefonts.sourceforge.net/. | |
%define name msttcorefonts | |
# nowdays most (all?) distributions seems to use this. Oh the joys of the FHS | |
%define ttmkfdir /usr/bin/ttmkfdir | |
%define fontdir /usr/share/fonts/%{name} |
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
2013-02-13T03:58:36+00:00 app[web.2]: ** [NewRelic][02/13/13 03:58:36 +0000 32135350-f34d-445d-9360-85e5ef0df147 (2)] ERROR : Error establishing connection with New Relic Service at collector.newrelic.com:80: | |
2013-02-13T03:58:36+00:00 app[web.2]: ArgumentError: wrong number of arguments (2 for 1) | |
2013-02-13T03:58:36+00:00 app[web.2]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/core_ext/object/to_json.rb:15:in `to_json' | |
2013-02-13T03:58:36+00:00 app[web.2]: /usr/local/lib/ruby/1.9.1/json/common.rb:212:in `generate' | |
2013-02-13T03:58:36+00:00 app[web.2]: /usr/local/lib/ruby/1.9.1/json/common.rb:212:in `generate' | |
2013-02-13T03:58:36+00:00 app[web.2]: /usr/local/lib/ruby/1.9.1/json/common.rb:336:in `dump' | |
2013-02-13T03:58:36+00:00 app[web.2]: /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/new_relic_service.rb:348:in `dump' | |
2013-02-13T03:58:36+00:00 app[web.2]: /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/new_re |
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
#lang racket | |
(define (sum-of-multiples-of a b n) | |
(define (iter acc n) | |
(if (= n 0) | |
acc | |
(iter | |
(+ acc (if (or (= (modulo n a) 0) (= (modulo n b) 0)) n 0)) | |
(- n 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
import os | |
import numpy | |
from pandas import DataFrame | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.naive_bayes import MultinomialNB | |
from sklearn.pipeline import Pipeline | |
from sklearn.cross_validation import KFold | |
from sklearn.metrics import confusion_matrix, f1_score | |
NEWLINE = '\n' |
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
data/H1/Tagged_Training_04_13_1334300401.mat | |
data/H1/Tagged_Training_10_22_1350889201.mat | |
data/H1/Tagged_Training_10_23_1350975601.mat | |
data/H1/Tagged_Training_10_24_1351062001.mat | |
0-length event: | |
36,Trash Compactor,1351104180,1351104180 | |
0-length event: | |
36,Trash Compactor,1351104300,1351104300 | |
0-length event: | |
36,Trash Compactor,1351104360,1351104360 |
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
>>> K = X.dot(X.transpose()) | |
>>> K | |
array([[ 2, 3, 3, 5, 5, 6], | |
[ 3, 5, 4, 8, 7, 9], | |
[ 3, 4, 5, 7, 8, 9], | |
[ 5, 8, 7, 13, 12, 15], | |
[ 5, 7, 8, 12, 13, 15], | |
[ 6, 9, 9, 15, 15, 18]]) | |
>>> np.linalg.inv(K) | |
Traceback (most recent call last): |
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 = -> b { b } | |
=> #<Proc:0x007fb4e4049cc8 (lambda)> | |
>> LEFT = -> p { p[-> x { -> y { x } } ] } | |
=> #<Proc:0x007fb4e403d680 (lambda)> | |
>> RIGHT = -> p { p[-> x { -> y { y } } ] } | |
=> #<Proc:0x007fb4e4028ff0 (lambda)> | |
>> IS_EMPTY = LEFT |
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 CommandLineArguments | |
def argv | |
ARGV | |
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
asdf |