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
/** | |
* A search collection represents a reactive collection on the client, | |
* which is used by the ReactiveEngine for searching. | |
* | |
* @type {SearchCollection} | |
*/ | |
SearchCollection = class SearchCollection { | |
/** | |
* Constructor | |
* |
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
var sourcemap = Npm.require('source-map'); | |
Plugin.registerMinifier({ | |
extensions: ["css"] | |
}, function () { | |
var minifier = new CssToolsMinifier(); | |
return minifier; | |
}); | |
function CssToolsMinifier () {}; |
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
2016-02-19 15:23:39 - NoMethodError - undefined method `search' for nil:NilClass: | |
/Users/lucas/.rvm/gems/jruby-9.0.5.0/gems/sablon-0.0.19/lib/sablon/parser/mail_merge.rb:31:in `block in initialize' | |
org/jruby/RubyArray.java:1560:in `each' | |
org/jruby/RubyEnumerable.java:836:in `flat_map' | |
/Users/lucas/.rvm/gems/jruby-9.0.5.0/gems/sablon-0.0.19/lib/sablon/parser/mail_merge.rb:31:in `initialize' | |
/Users/lucas/.rvm/gems/jruby-9.0.5.0/gems/sablon-0.0.19/lib/sablon/parser/mail_merge.rb:115:in `build_complex_field' | |
/Users/lucas/.rvm/gems/jruby-9.0.5.0/gems/sablon-0.0.19/lib/sablon/parser/mail_merge.rb:100:in `block in parse_fields' | |
org/jruby/RubyProc.java:318:in `call' | |
/Users/lucas/.rvm/gems/jruby-9.0.5.0/gems/nokogiri-1.6.7.2-java/lib/nokogiri/xml/node.rb:589:in `traverse' | |
/Users/lucas/.rvm/gems/jruby-9.0.5.0/gems/nokogiri-1.6.7.2-java/lib/nokogiri/xml/node.rb:588:in `block in traverse' |
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
function get(doc, path) { | |
} | |
doc = { | |
'a': { | |
'b': { | |
'c': 'hello' | |
}, | |
'd': { |
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
// Only trigger enclosing computation if the return value of | |
// f is not EJSON.equals to the previuous return value | |
Tracker.guard = function(f) { | |
if (Meteor.isServer || !Tracker.currentComputation) { | |
return f(); | |
} | |
let dep = new Tracker.Dependency(), | |
curView = Blaze.currentView, | |
tplFunc = Template._currentTemplateInstanceFunc; |
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 'gosu' | |
require 'matrix' | |
class Green < Gosu::Window | |
def initialize | |
super 640, 480, false | |
self.caption = "Green Physics" | |
@box1 = Polygon.new( |
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
config defaultToCurrentScreen true | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsSpread true | |
config windowHintsSpreadPadding 40 | |
config windowHintsSpreadSearchWidth 80 | |
config windowHintsSpreadSearchHeight 80 | |
config windowHintsOrder leftToRight | |
config switchIconPadding 2 | |
config switchBackgroundColor 50;53;58;0.7 |
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
knife bootstrap IPADDRESS --sudo -x USERNAME -P PASSWORD -N “target1.local” |
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 next_row(row) | |
Array(0..row.size).map do |i| | |
(i > 0 ? row[i-1] : 0) + (i < row.size ? row[i] : 0) | |
end | |
end | |
def print_rows(n) | |
row = [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
import java.io.FileNotFoundException; | |
import java.io.PrintStream; | |
import java.util.ArrayList; | |
public abstract class Classifier { | |
public abstract Integer classify(DataPoint dataPoint); | |
public void test(String fileName) throws FileNotFoundException { | |
test(Main.parse(fileName)); |