{{ message }}

Instantly share code, notes, and snippets.

Last active Sep 13, 2017
Buy BTC / ETH / XRP automatically
 // ----------- // // ## How to use: // // 1) Install node 8 // // 2) Install dependencies: // `npm install crypto request` // // 3) Get a Bitstamp account, API key and tweak viariables below
Created Mar 24, 2017
Copy of material.css to host it where https is working
View material-green.css
Created Nov 10, 2016
View numberToThreeDigitArray.js
 // Trying to find the best solution to the following problem: // // Display a large number with a small space in between steps of thousand. // Thus => Convert a number to an array of max. three digits // // E.g. // Input: 10 Output: [10] // Input: 1234 Output: [1, 234] // Input: 24521280 Output: [23, 521, 280]
Created Jul 15, 2016
Redux async actions example
View actions.js
 const defaultError = (type, error) => ( { type, error: true, payload: { message: error }, } );
Last active Aug 4, 2019
Get Temperature and Humidity from DHT11 module with Raspberry Pi and RPi.GPIO
View get-dht11-data.py
 import RPi.GPIO as GPIO import time import traceback # Helper def bin2dec(string_num): return str(int(string_num, 2)) def setup_gpio(port): GPIO.setmode(GPIO.BCM)
Created Jan 9, 2015
Render the author's image
View gist:83f8aacac8c8e118ce1c
 <% if not no_author_img %> <% end %>
Last active Aug 29, 2015
SCSS Statistics Analysis
View scss-analysis.py
 import sys def analyzeFile(filename): f = open(filename) selectors, rules = [], [] for w in f.readlines(): w = w.strip() if len(w) > 2: if (w.startswith('.') or w.startswith('/') or
You can’t perform that action at this time.