Skip to content

Instantly share code, notes, and snippets.

@ashcoding
ashcoding / mouse_giggler.ino
Created March 21, 2018 11:34
Mouse Jiggler for Teensy
void setup() {
// put your setup code here, to run once:
}
void loop() {
Mouse.move(100,0); //Start mouse moving
delay(25);
Mouse.move(-100,0); //Move it back
delay(25);
@ashcoding
ashcoding / stfilter
Created April 3, 2017 01:34 — forked from gyng/stfilter
Straits Times uBlock/AdBlock filter
! Cut the crap
! uBlock
! Get the raw URL and paste into Settings > 3rd-party filters > Custom
www.straitstimes.com###banner-2047
www.straitstimes.com###banner-2048
www.straitstimes.com###banner-2049
www.straitstimes.com###banner-2050
www.straitstimes.com###banner-2051
www.straitstimes.com###banner-2052
@ashcoding
ashcoding / Readme.md
Created February 15, 2017 01:19
Japanese Phrases To Use

Ashcoding's list of Japanese phrases

確認してくれてありがとう

@ashcoding
ashcoding / info.txt
Created January 15, 2017 13:25
Raspberry Pi
http://raspberrypi.stackexchange.com/questions/13936/find-raspberry-pi-address-on-local-network
sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
@ashcoding
ashcoding / Lyrics.md
Created July 21, 2016 04:01
Nathan Hartono - Electricity (Lyrics)

Lyrics

Every second with you feels like magic baby

Notes

I'm just trying to figure out what the lyrics are... Can't seem to find them online.

Minimum Viable Async with Node 6

With the release of Node 6.0.0, the surface of code that needs transpilation to use ES6 features has been reduced very dramatically.

This is what my current workflow looks like to set up a minimalistic and fast microservice using micro and async + await.

The promise

@ashcoding
ashcoding / Bot.js
Created April 27, 2016 03:40 — forked from PhilippLgh/Bot.js
A Telegram Speech-To-Text bot that uses Watson
var Bot = require('node-telegram-bot-api')
var watson = require('watson-developer-cloud');
var request = require('request');
var config = require('./config');
var speech_to_text = watson.speech_to_text({
username: config.watson.username,
password: config.watson.password,
version: 'v1',
url: 'https://stream.watsonplatform.net/speech-to-text/api'
@ashcoding
ashcoding / README.md
Created March 28, 2016 02:05 — forked from rauchg/README.md
require-from-twitter
Hi David,
I came across your profile online and wanted to reach out about Development
Opportunities here at Groupon. The company is growing, and we're always
looking for folks with solid skills that can make positive contribution to
our continued success. Any chance you'd be open to a quick conversation
about opportunities, or for any possible networking potential? If so, let me
know when you're free and we can set up a time to chat. Also, if you are
interested, it would be great if you could forward a current resume over
that I can take a look at. I look forward to hearing back from you! Please
let me know if you have any questions.
http://ashcoding.github.io/what-time-is-it-Mr-Wolf