Skip to content

Instantly share code, notes, and snippets.

Avatar
🐤
building my own birdfeeder on here

Suz Hinton noopkat

🐤
building my own birdfeeder on here
View GitHub Profile
View git-prompt.sh
if test -f /etc/profile.d/git-sdk.sh
then
TITLEPREFIX=SDK-${MSYSTEM#MINGW}
else
TITLEPREFIX=$MSYSTEM
fi
PS1='\[\033]0;$TITLEPREFIX:${PWD//[^[:ascii:]]/?}\007\]' # set window title
PS1="$PS1"'\[\033[35m\]' # change to purple
PS1="$PS1"'\W' # current working directory
@noopkat
noopkat / demo.js
Created Feb 16, 2017
pizzagirl example
View demo.js
const avrpizza = require('avr-pizza');
const Avrgirl = require('avrgirl-arduino');
const package = {
sketch: 'blink.ino',
board: 'uno'
};
const avrgirl = new Avrgirl({
board: 'uno',
View promises_for_noopkat.js
client
.refresh()
.then(function () {
return client.get(); // return your promise
})
.then(function (result) {
// result is the return of client.get()
})
.catch();
@noopkat
noopkat / main.css
Created Sep 21, 2017
scrolling captions
View main.css
body {
margin: 0;
padding: 0;
font-family: sans-serif;
background-color: rgba(0,0,0,0);
}
#transcriptContainer {
background-color: rgba(0,0,0,0.6);
width: 100%;
View aci.sh
az container create \
--resource-group <resource-group-name> \
--name <container-instance-name> \
--image <docker-image-name> \
--azure-file-volume-account-name <file-storage-name> \
--azure-file-volume-account-key <file-storage-key> \
--azure-file-volume-share-name <file-share-name> \
--azure-file-volume-mount-path /aci/status/
View tracker.js
const puppeteer = require('puppeteer');
const statusTextSelector = '.someClassname';
const trackingUrl = 'http://ozcouriers.com.au';
const extractStatus = async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(trackingUrl, {waitUntil: 'networkidle2'});
await page.waitFor(statusTextSelector);
View keybase.md

Keybase proof

I hereby claim:

  • I am noopkat on github.
  • I am noopkat (https://keybase.io/noopkat) on keybase.
  • I have a public key whose fingerprint is F4D8 088B F58E 8AAF 9496 E1DE EE33 65D4 1D8D C876

To claim this, I am signing this object:

@noopkat
noopkat / nodemon.sh
Created Apr 1, 2018
run nodemon tests while you work
View nodemon.sh
nodemon --exec npm test