Commit | Summary |
---|---|
7e5352c |
Now reading in the ghost value properly in 3d mode |
18ab642 |
Prevent using special names (e.g., mouse) as sprite names |
1441354 |
Fixing potential null reference exception |
c845ce4 |
Fix picking color from editor background yielding black instead of white |
3d274ca |
Fix costume center for empty costumes |
7db32b9 |
Prevent copying procedure declaration blocks |
6495d93 |
Fix watcher not updating to reflect certain changes |
acd1d19 |
Clarifying update to README |
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 a = Amber; | |
a.model('User', { | |
data: { | |
name: { value: 'someone' } | |
} | |
}); | |
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 T(s) {return {terminal:s}} | |
function S(n, c, i, k, d) {return {name:n, content:c, index:i, position:k, node:d}} | |
var productions = { | |
start: [['stmts']], | |
stmts: [ | |
['stmts', T(';'), 'stmts'], | |
['s', 'stmt', 's']], | |
stmt: [ | |
[T('{'), 'stmts', T('}')], |
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(exp) { | |
function Rule(name, symbols, postprocess) { | |
this.name = name; | |
this.symbols = symbols; | |
this.postprocess = postprocess || function(a){return a}; | |
} | |
Rule.prototype.getStartState = function(location) { | |
return new State(this, 0, location); | |
} | |
function State(rule, expect, reference) { |
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 stat = Stat({ debug: true }); | |
// ... | |
stat.http('http://cors.io/scratch.mit.edu/').then(function(res) { | |
return stat.http('http://cors.io/scratch.mit.edu/' + res.match(/projects\/\d+/)); | |
}).then(function(s) { | |
return /<title>\s*(.*?) on Scratch\s*<\/title>/.exec(s)[1]; | |
}).then(console.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
su | |
rm -'] | |
r |
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 s = document.createElement('script'); | |
s.src = 'http://dl.dropboxusercontent.com/u/10715865/Temp/new.js'; | |
document.head.appendChild(s); |
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
<snapdata><project name="big project" app="Snap! 4.0, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAIEklEQ%E2%80%A6ac6gAAdKr9WBwAggGnOgAAnWo/FgeAYMCpDgBAp9qPxf8DmNNJ1XYx88YAAAAASUVORK5CYII=</thumbnail><stage name="Stage" width="480" height="360" costume="0" tempo="60" threadsafe="false" lines="round" codify="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQ%E2%80%A6ABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCC</pentrails><costumes><list id="2"></list></costumes><sounds><list id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite6" idx="4" x="234.99999999999955" y="50.00000000000006" heading="90" scale="1" rotation="1" draggable="true" costume="0" color="155.54999999999998,65.331,0" pen="tip" id="8"><nest anchor="Sprite2" synch="true"/><costumes><list id="9"></list></costu |
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 indent = ''; | |
function mdify(els) { | |
if (els.length) return [].map.call(els, mdify).join('\n'); | |
if (els.tagName === 'P' || els.tagName === 'LI') return els.textContent; | |
if (els.tagName === 'UL') {indent += ' '; return '* ' + [].map.call(els.children, mdify).join((indent = indent.slice(4), '\n' + indent + '* '));} | |
return ''; | |
} | |
copy([].slice.call(document.querySelectorAll('tr')).reverse().map(function(tr) { | |
return '# v' + tr.querySelector('td:first-child').textContent.trim() + '\n\n' + mdify(tr.querySelector('td:last-child').children); | |
}).join('\n\n').replace(/\* \* /g, ' * ').replace(/[“”]/g, '"')); |
OlderNewer