- docs don't mention the html needs (example needs canvas element)
- order matters for some methods, but beginning of docs doesn't make it clear until looking at a full demo
- first example doesn't work with viewport method which I added earlier by following the docs in order (looks like none of examples use viewport after first mentioning it).
- explain linear force/gravity example better. maybe define vars first with names explaining what those numbers mean or just use inline comment like in many other examples
- better code docs for inline autocompletion?
- spring example doesn't work (SpringConstraint not defined)
- many numbers used (x,y, etc) don't work with one another well when working through the docs in order
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
npm install restfuljs -g | |
restfuljs app -d myNewApp -w 'users, projects' |
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
var foo = bar | |
less = more; | |
function complexFunction(one, two, three, four, five, six) { | |
if (one) { | |
} | |
else if (two) { | |
var hello; |
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
[ { id: '(error)', | |
raw: 'Expected \'{a}\' and instead saw \'{b}\'.', | |
evidence: ' if (val === \'Recently Active\') search.sort.lastLogin = -1;', | |
line: 58, | |
character: 34, | |
scope: '(main)', | |
a: '{', | |
b: 'search', | |
c: undefined, | |
d: undefined, |
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
remote_query = root.remote_opportunities_available?(company_type).where_values.last.to_sql | |
location_query = root.near(params[:location], params[:radius] || BranchSearch::DEFAULT_SEARCH_RADIUS).where_values.last | |
res = root.where(remote_query + " OR " + location_query) |
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
function getRands(i) { | |
var r = []; | |
while (i--) { | |
r[i] = Math.floor(Math.random() * 5); | |
} | |
return r; | |
} | |
function findMatchScore(profileDimensions, verseDimensions) { | |
var i = profileDimensions.length; |
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
{{user}} deployed2 {{head}} to {{url}}\\\\\\\\r\\\\\\\\n\\\\\\\\r\\\\\\\\n{{git_log}} |
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
PROMPT_COMMAND='DIR=`pwd|sed -e "s!$HOME!~!"`; if [ ${#DIR} -gt 30 ]; then CurDir=${DIR:0:12}...${DIR:${#DIR}-15}; else CurDir=$DIR; fi' | |
PS1="[\$CurDir] \$ " | |
alias c="mate ~/.bash_profile" | |
alias r=". ~/.bash_profile" | |
alias l="ls -la" | |
alias push="git push origin master" | |
alias pull="git pull origin master" | |
alias commit="git add .; git commit -m" |
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
[ | |
{ | |
"grid": "................................................................................................................................................................................................................................................................................................................................................................................................................", | |
"p2": { | |
"spawn": 378, | |
"energy": 1 | |
}, | |
"p1": { | |
"spawn": 21, | |
"energy": 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
http.createServer(function (req, res) { | |
var buffer = ''; | |
req | |
.on('data', function(buf) { | |
buffer += buf.toString(); | |
}) | |
.on('end', function() { | |
if (!buffer) return res.end('Jimbot with roles'); | |
var data = JSON.parse(qs.parse(buffer).data); | |
console.log("\n............ turn : ", data.state.turnsElapsed + 1, '...............\n'); |
OlderNewer