An example of how cell splitting could be achieved using examples from the Sparse Matrix Collection
Based on Force Layout & Matrix Market Format
# rails_heroku_mongohq_template.rb | |
# | |
# fork of Kyle Banker's Rails MongoMapper Template (http://gist.github.com/219223) | |
# and modified to work with heroku's mongohq addon. | |
# | |
# To use: | |
# rails project_name -m http://gist.github.com/403483.txt | |
# (preface with 'sudo' if you think you might need some gems) | |
# remove unneeded defaults |
development: &global_settings | |
database: textual_development | |
host: 127.0.0.1 | |
port: 27017 | |
test: | |
database: textual_test | |
<<: *global_settings | |
production: |
(function($){ | |
$.widget("ui.mywidget", { | |
options: { | |
autoOpen: true | |
}, | |
_create: function(){ | |
// by default, consider this thing closed. |
#!/bin/bash | |
# __ | |
# _____ ____ _/ |_ ____ ____ _______ | |
# / \ _/ __ \ \ __\_/ __ \ / _ \ \_ __ \ | |
# | Y Y \\ ___/ | | \ ___/ ( <_> ) | | \/ | |
# |__|_| / \___ > |__| \___ > \____/ |__| | |
# \/ \/ \/ | |
# | |
# .___ | |
# __| _/ __ __ _____ ______ |
An example of how cell splitting could be achieved using examples from the Sparse Matrix Collection
Based on Force Layout & Matrix Market Format
Links being severed over time inside of a convex hull
/** | |
* Originally created in JS Bin: http://jsbin.com/yetubi/edit?js,console | |
* Dependencies: lodash | |
* | |
* This script finds 4 whole number values that have a specific relationship. | |
* Specifically, the sum of the squares of 3 numbers when they equal the | |
* square root of the 4th number. In linear algebra terms, this calculates | |
* the absolute value of a vector [x, y, z] when all values and the result | |
* are whole numbers. This formula is also known to calculate the distance | |
* of a 3D point from zero: d = sqrt(x*x + y*y + z*z) |
##what are generators##
yield
a value, the function pauses until .next(modifiedYieldValue)
is calledvar myGen = function*() {
var one = yield 1;
var two = yield 2;
var three = yield 3;
console.log(one, two, three);