tbd;
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
# searches a combination of the given elements that matches toMatch | |
# @param c array - initially empty, carries the current combination throught | |
# the recursion | |
# @param els array - the predefined set of elements | |
# @param toMatch string - the rest-string to be matched with the elements | |
# | |
# @return an array of combinations that recursively match | |
searchCombination = (c, els, rest) -> | |
return c if rest.length==0 |
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 TU = require('./TypeUtils'), | |
elements = "AcAgAlAmArAsAtAuBBaBeBhBiBkBrCCaCdCeCfClCmCnCoCrCsCuDbDsDyErEsEuFFeFmFrGaGdGeHHeHfHgHoHsIInIrKKrLLaLiLrLuMMdMgMnMoMtNNaNbNdNeNiNoNpOOsPPaPbPdPmPoPrPtPuQRaRbReRfRgRhRnRuSSbScSeSgSiSmSnSrTaTbTcTeThTiTlTmUUuhUuoUupUuqUusUutVWXeYYbZnZr" | |
RNG_MIN = 65, //'A' | |
RNG_MAX = 90, //'Z' | |
abbrevs = [], | |
hashes = new Object(null) | |
name = process.argv[2] | |
function matcher(a) { | |
var s=a.toLowerCase() |
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 typeUtils = | |
literals = ['boolean', 'string', 'number', 'object'], | |
types2test = literals.concat([new RegExp(/asd/), new Number(1), new String('#')]), | |
testArrays = [ | |
[true, false, true], | |
[1, 2, 3], | |
['a', 'b', 'c'], | |
[/sdf/, /asdf/, /asf/], | |
[{}, {}, {}], | |
[new String('a'), new String('b'), new String('c')], |
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
/** | |
* Warn on console and turn all LEDs red if battery is not charged enough to take off | |
* usage: | |
* ```client.on('navdata', warnOnLowBat);``` | |
*/ | |
var warnOnLowBat = function (nav){ | |
if (nav.droneState.lowBattery === 1) { | |
this.animateLeds('red', 1, 1); | |
console.warn('New battery please!'); | |
} |
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
{ | |
"poster": "https://hearthis.at/_/cache/images/track/800/01df998a5d6b469dfcb0d499f5e35f40_w800_v3.jpg", | |
"title": "#ChaosComunicationCamp2015 ChillOut - BarbNerdy CCCamp15 - Riders on the Storm", | |
"permalink": "https://hearthis.at/barbnerdy/chaoscamp2015chilloutbarbnerdycccamp15/", | |
"publicationDate": "2015-08-20", | |
"sources": [ | |
{ "type": "audio/mp3", "src":"https://hearthis.at/barbnerdy/chaoscamp2015chilloutbarbnerdycccamp15/stream.mp3?s=gPa" } | |
], | |
"summary": "I had the pleasure to organize a pretty nice Line-Up for this years Chaos Communicattion Camp: <a href='https://events.ccc.de/camp/2015/wiki/Projects:Hufeisenbar'>Hufeisenbar</a> And here is a part of my set. It ended pretty spectacuar due to an upcoming thunderstorm -- Riders on the Storm -- included.", | |
"license": { |
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 SandBox = (function (realCtx) { | |
var get = realCtx.document.getElementById.bind(realCtx.document), | |
_evil = eval; | |
return { | |
init: function (form, script, ctx) { | |
this._form = get(form); | |
this._script = get(script); | |
this.fakeCtx = ctx; | |
this._form.onsubmit = SandBox.evaluate; |
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
#!/usr/bin/env zsh | |
brew cask install --force $(brew cask list) |
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 sandbox(script, context){ | |
context.window = {}; | |
for (var key in context){ | |
context.window[key] = context[key]; | |
} | |
context.global = context.window; | |
eval("with (context){ " + script + " }"); | |
} |
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
/** | |
* SVG paths: Multiple shapes with 1 path command | |
*/ | |
svg { | |
height: 90vh; | |
} |