create
// buildings
(church:Building {name:'Veberöds kyrka', founded: 1200, geolocation: '55.6347487,13.4897019'}),
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 applescript = require('applescript'); | |
var http = require('http'); | |
var script = | |
'tell application "System Events"\n\ | |
if name of every process contains "ScreenSaverEngine" then \n\ | |
tell application "ScreenSaverEngine"\n\ | |
quit\n\ | |
end tell\n\ | |
delay 0.2\n\ |
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 api = require('./API.js'); | |
var route = ['f','r','r','f'], | |
move = '', | |
env = [], | |
lastEnv = []; | |
function next() { | |
move = route.shift(); | |
} |
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 api = require('./API.js'); | |
var route = ['r','','l','f','f','f','f','','','','f','f','f','f','f'], | |
move = '', | |
env = [], | |
lastEnv = []; | |
function next() { | |
move = route.shift(); | |
} |
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
int ledPin = 6; | |
int btnPin = 2; | |
int state = 0; | |
int power = 0; | |
float diff = 0; | |
int steps = 30; | |
int statesArray[4] = {0, 85, 170, 255}; |
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
#include "MFRC522/MFRC522.h" | |
/* | |
Function Core Pin MRFC522 Pin | |
Reset D2 RST | |
SPI SS D1 SDA | |
SPI MOSI A5 MOSI | |
SPI MISO A4 MISO | |
SPI SCK A3 SCK | |
*/ |
Let's gather a bunch of ideas that families can build over the holidays to geek out a little. :)
To add your idea/project share:
- project's name
- short description
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
Show hidden characters
{ | |
"Custom console.log": { | |
"scope": "javascript,typescript", | |
"prefix": "basu", | |
"body": [ | |
"console.log(", | |
"\t'%cbasu $1',", | |
"\t'font: italic 16px monospaced; color: lime',", | |
"\t$2", | |
");" |
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
/** | |
* Adjust Color temperature and Brightness based on time of day | |
* as if it were April 16th, a nice long spring day in southern Sweden | |
*/ | |
const VARIABLE_PREFIX = 'CircadianRhythm_'; | |
const MIN_BRIGHTNESS = 0.12; | |
const MAX_BRIGHTNESS = 1; | |
const sys = await Homey.system.getInfo(); |
OlderNewer