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
| /* Sample table of data from collection */ | |
| /* Collection Partial */ | |
| var PartialView = Backbone.View.extend( | |
| { | |
| template: Mustache.compile ($("#PartialTemplate").html()), | |
| tagName: "tr", | |
| render: function() |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://d3js.org/d3.v2.js"></script> | |
| <script type="text/javascript" src="sankey.js"></script> | |
| <title>Sankey Diagram</title> | |
| <style> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://d3js.org/d3.v2.js"></script> | |
| <script type="text/javascript" src="sankey.js"></script> | |
| <title>Sankey Diagram</title> | |
| <style> |
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 | |
| # Doesn't work with white-spaced names. | |
| # find . -type d -name .git | xargs -n 1 dirname | |
| # Works with white-space. | |
| find . -type d -name .git -print0 | xargs -0 -n 1 dirname | |
| # TODO fetch all remotes and then list branch sync info similar to https://gist.github.com/zeroeth/8013177 |
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 Oven | |
| def bake item | |
| item.to_cookie | |
| end | |
| end | |
| class PorkMooncake | |
| def to_cookie | |
| PorkCookie.new | |
| 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
| { | |
| "name": "flare", | |
| "children": [ | |
| { | |
| "name": "analytics", | |
| "children": [ | |
| { | |
| "name": "cluster", | |
| "children": [ | |
| {"name": "AgglomerativeCluster", "size": 3938}, |
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 | |
| B | |
| A | |
| B | |
| A | |
| B | |
| A | |
| B | |
| A | |
| B |
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 | |
| # modified by https://github.com/zeroeth for clarity, commit count, committer list | |
| # original from https://gist.github.com/Gabro/5883819 | |
| # based on http://stackoverflow.com/questions/17359370/git-show-last-commit-date-and-message-for-each-file-in-directory-like-github | |
| # | |
| # Prints out git statistics for each folder similar to githubs file listing, example: | |
| # | |
| # build_osx.sh -- 11 days ago b865716 Notes for intalling devil (Kevin Alford) | |
| # main.cpp -- 10 months ago dc06f98 No fullscreen (Kevin Alford) | |
| # main.h -- 10 months ago c16c2f3 sdl open include helper and change number of blobs (Kevin Alford) |
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 HistoryResultRow | |
| def initialize | |
| 700.times do |number| | |
| self.class.send :define_method, "Col#{number}" do | |
| instance_variable_get "@col#{number}" | |
| end | |
| self.class.send :define_method, "Col#{number}=" do |value| | |
| instance_variable_set "@col#{number}", value | |
| 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
| class Mizu | |
| # getter setters for instance variables | |
| attr_accessor :name, :is_coding | |
| attr_accessor :bite_count | |
| attr_accessor :zombie_stats | |
| attr_reader :werewolfness | |
| @@people_bitten_by_vampires = [] | |