The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
var MyClass = function(position, color) { | |
this.position = position; | |
this.color = color; | |
this.change = function () { | |
//z.B. die Position, Farbe, o.ä. ändern/neu berechnen | |
}; | |
this.draw = function () { | |
// das einzelnen Objekt wird gezeichnet | |
}; | |
} |
var throwDice = function () { | |
return Math.floor(Math.random() * (6)) + 1; | |
}; | |
var results = [0,0,0,0,0,0]; | |
var iterations = 10000000; | |
for (var i = 0; i < iterations; i++) { | |
results[throwDice()-1]++; |
for f in /usr/local/Caskroom/*/* ; do | |
package="$(basename "$(dirname "${f}")")" | |
version="$(basename "${f}")" | |
test -e "/usr/local/Caskroom/${package}/.metadata/${version}" || rm -rf "/usr/local/Caskroom/${package}/${version}" | |
done |
BEGIN:VCALENDAR | |
VERSION:2.0 | |
METHOD:PUBLISH | |
BEGIN:VEVENT | |
DTSTART;VALUE=DATE:20160413 | |
DTEND;VALUE=DATE:20160414 | |
DESCRIPTION:Example event to import in OSX calendar and simultaneously | |
setting an alert at a custom time, here 18:00 (event start -6 hours) | |
LOCATION:Darmstadt, Europe, Earth, Milky Way | |
TRANSP:TRANSPARENT |
var interactionsCollection = []; | |
localforage.getItem('Interactions').then(function (interactionKeys) { | |
interactionKeys.forEach(function(key) { | |
localforage.getItem(key).then(function (data) { interactionsCollection.push(data)})}) | |
}); | |
var allInteractions = []; | |
var keyc = 0; | |
localforage.keys(function(keys) { | |
keys.forEach(function (key){ |
{ | |
"de": "Guten Tag!", | |
"es": "¡Hola!", | |
"fr": "Bonjour!", | |
"it": "Buongiorno!" | |
} |
The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python