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
// Licence: juliankern.com; CC BY 3.0 DE | |
const C = { layout: 'simple' }; | |
(async () => new Function(await new Request('https://cdn.jsdelivr.net/gh/Keyes/its-beds-widget/widget.min.js').loadString())(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
//#include <Adafruit_NeoPixel.h> | |
// Which pin on the Arduino is connected to the NeoPixels? | |
// On a Trinket or Gemma we suggest changing this to 1: | |
#define LED_PIN 6 | |
// How many NeoPixels are attached to the Arduino? | |
#define LED_COUNT 12 | |
// Declare our NeoPixel strip object: |
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
<picture> | |
<source srcset="/images/image-496.webp, /images/image-992.webp 2x" type="image/webp" media="(min-width: 992px)" /> | |
<source srcset="/images/image-496.jpg, /images/image-992.jpg 2x" media="(min-width: 992px)" /> | |
<source srcset="/images/image-1000.webp, /images/image-2000.webp 2x" type="image/webp" media="(min-width: 500px)" /> | |
<source srcset="/images/image-1000.jpg, /images/image-2000.jpg 2x" media="(min-width: 500px)" /> | |
<source srcset="/images/image-500.webp, /images/image-1000.webp 2x" type="image/webp" /> | |
<source srcset="/images/image-500.jpg, /images/image-1000.jpg 2x" /> | |
<img src="/images/image-preview.jpg" /> | |
</picture> |
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-icon { | |
width: 50px; | |
height: 50px; | |
color: gray; | |
background-color: transparent; | |
display: inline-block; | |
box-sizing: border-box; | |
} | |
.svg-icon svg { |
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-icon { | |
width: 50px; | |
height: 50px; | |
color: gray; | |
background-color: transparent; | |
display: inline-block; | |
box-sizing: border-box; | |
} | |
.svg-icon svg { |
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 sensor = require('ds1820-temp'); | |
const gpio = require('rpi-gpio'); | |
const CHECK_INTERVAL = 30 * 1000 // every 30s | |
const GPIO_PORT = 13; | |
const SENSOR_ID = '0000067bdac4'; | |
setInterval(checkTemperature, CHECK_INTERVAL); | |
async function checkTemperature() { |
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 hsi2rgbw(H, S, I) { | |
let rgbw = {}, cos_h, cos_1047_h; | |
H = H % 360; | |
H = Math.PI * H / 180; | |
S = S > 0 ? (S < 1 ? S : 1) : 0; | |
I = I > 0 ? (I < 1 ? I : 1) : 0; | |
if(H < 2.09439) { |
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
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
export NODE_ENV=development | |
alias l="ls -lisa" | |
alias gs="grunt serve" | |
alias gb="grunt build" | |
alias clone="git clone $1 $2" | |
alias branch="git branch $1 $2 $3" |
NewerOlder