This file contains hidden or 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
blueprint: | |
name: Amber Light | |
description: Change the colour of a lamp based on the current Amber price | |
domain: automation | |
input: | |
amber_price_sensor: | |
name: Amber Price Sensor | |
description: The Amber price sensor you wish to track. If in doubt, use General Price. | |
selector: | |
entity: |
This file contains hidden or 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 <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
const char* ssid = "........"; | |
const char* password = "........"; | |
ESP8266WebServer server(80); |
This file contains hidden or 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
/* hello-ftdi.c: flash LED connected between CTS and GND. | |
This example uses the libftdi API. | |
Minimal error checking; written for brevity, not durability. */ | |
#include <stdio.h> | |
#include <ftdi.h> | |
#include <time.h> | |
#define CTS 0x08 /* CTS (brown wire on FTDI cable) */ |
This file contains hidden or 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 ruby -w | |
require 'csv' | |
file = ARGV[0] | |
out = file.split('.').join('-normalized.') | |
unless file | |
puts "Usage: normalize [filename]" | |
exit(1) | |
end |
This file contains hidden or 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 ruby -w | |
require 'csv' | |
file = ARGV[0] | |
out = file.split('.').join('-normalized.') | |
unless file | |
puts "Usage: normalize [filename]" | |
exit(1) | |
end |
This file contains hidden or 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 ruby -w | |
require 'csv' | |
file = ARGV[0] | |
out = file.split('.').join('-compressed.') | |
unless file | |
puts "Usage: compress [filename]" | |
exit(-1) | |
end |
This file contains hidden or 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
gulp.task('build:javascripts', function(cb) { | |
webpack({ | |
entry: __dirname + '/app/frontend/javascripts/gifts.js', | |
output: { | |
path: __dirname + '/app/assets/javascripts', | |
filename: 'gifts.js' | |
}, | |
devtool: "#source-map", | |
module: { | |
loaders: [ |
This file contains hidden or 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
#!/bin/bash | |
getMyIP() { | |
local _ip _myip _line _nl=$'\n' | |
while IFS=$': \t' read -a _line ;do | |
[ -z "${_line%inet}" ] && | |
_ip=${_line[${#_line[1]}>4?1:2]} && | |
[ "${_ip#127.0.0.1}" ] && _myip=$_ip | |
done< <(LANG=C /sbin/ifconfig) | |
printf ${1+-v} $1 "%s${_nl:0:$[${#1}>0?0:1]}" $_myip |
This file contains hidden or 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
require 'fileutils' | |
RANGE = (0xe000...0xf8ff); | |
def map_fonts(src, map_file) | |
map = { | |
'meta' => { | |
'author' => "Redbubble" | |
}, | |
'font' => { |
This file contains hidden or 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 svg = (!!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect); |
NewerOlder