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
// Setup | |
var collection = { | |
2548: { | |
album: "Slippery When Wet", | |
artist: "Bon Jovi", | |
tracks: [ | |
"Let It Rock", | |
"You Give Love a Bad Name" | |
] | |
}, |
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
for x in range (1, 101): | |
if ((x % 3) == 0) and ((x % 5) == 0): | |
print "FizzBuzz" | |
elif ((x % 3) == 0): | |
print "Fizz" | |
elif ((x % 5) == 0): | |
print "Buzz" | |
else: | |
print x |
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
{ | |
"name": "angular2-quickstart", | |
"version": "1.0.0", | |
"scripts": { | |
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ", | |
"lite": "lite-server", | |
"postinstall": "typings install", | |
"tsc": "tsc", | |
"tsc:w": "tsc -w", | |
"typings": "typings" |
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 spiDev = "/dev/spidev0.0"; | |
var cePin = 8; | |
var irqPin = 5; | |
var pipes = [0xABCDABCD71, 0x544d52687C]; | |
var nrf = require('nrf'); | |
var radio = nrf.connect(spiDev, cePin, irqPin); // Connect to the radio | |
radio.channel(0x4c); // Set channel to 76 | |
radio.transmitPower('PA_LOW'); | |
radio.dataRate('1Mbps') // Set data rate to 1Mbps |
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
/* | |
// March 2014 - TMRh20 - Updated along with High Speed RF24 Library fork | |
// Parts derived from examples by J. Coliz <maniacbug@ymail.com> | |
*/ | |
/** | |
* Example for efficient call-response using ack-payloads | |
* | |
* This example continues to make use of all the normal functionality of the radios including | |
* the auto-ack and auto-retry features, but allows ack-payloads to be written optionally as well. | |
* This allows very fast call-response communication, with the responding radio never having to |
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
"use strict"; | |
(function() { | |
Error.stackTraceLimit = Infinity; | |
var $global, $module; | |
if (typeof window !== "undefined") { /* web page */ | |
$global = window; | |
} else if (typeof self !== "undefined") { /* web worker */ | |
$global = self; |
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
module.exports = function(hljs) { | |
var IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*'; | |
var KEYWORDS = { | |
keyword: | |
'in of if for while finally var new function do return void else break catch ' + | |
'instanceof with throw case default try this switch continue typeof delete ' + | |
'let yield const export super debugger as async await static ' + | |
// ECMAScript 6 modules import | |
'import from as' | |
, |
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
const magik = magikcraft.io; | |
function EDIT_THIS() { | |
} |
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
const magik = magikcraft.io; | |
function EDIT_THIS() { | |
} |
OlderNewer