Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am spiderbites on github.
  • I am jzuck (https://keybase.io/jzuck) on keybase.
  • I have a public key ASDubLiwS8VkyQDWuAiSQZnTAeJrGRwlNNbMO7rbgaUduAo

To claim this, I am signing this object:

@spiderbites
spiderbites / .travis.yml
Last active August 11, 2017 13:36
[Setting up github pages deploys from Travis] #travis #gh-pages
language: node_js
node_js:
- "6"
cache:
yarn: true # I happen to be using yarn
directories:
- node_modules
notifications:
email: false
before_deploy:
@spiderbites
spiderbites / launch.json
Created August 14, 2017 14:47
[Remote debug Node app running in VM provisioned by Vagrant with VSCode] #vagrant #vscode #node #debug
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"address": <VM-IP>,
"restart": false,
@spiderbites
spiderbites / eth
Created August 25, 2017 03:46
eth
0x9A99b2BC494Bf52F14e4BaEc6edfBc2Cf591935E
{
"name": "all",
"children": [{"name":"Shoot","children":[{"name":"Background","children":[{"size":26645,"name":"Gradient","category":"Background","group":"Shoot"},{"size":206,"name":"Color","category":"Background","group":"Shoot"},{"size":23413,"name":"Gray","category":"Background","group":"Shoot"},{"size":18806,"name":"Cream","category":"Background","group":"Shoot"},{"size":7888,"name":"White","category":"Background","group":"Shoot"}]},{"name":"Lighting Shadow","children":[{"size":5944,"name":"Soft","category":"Lighting Shadow","group":"Shoot"},{"size":22844,"name":"Hard","category":"Lighting Shadow","group":"Shoot"}]},{"name":"Shot Type","children":[{"size":8758,"name":"Bottom","category":"Shot Type","group":"Shoot"},{"size":16173,"name":"Full Length","category":"Shot Type","group":"Shoot"},{"size":7452,"name":"Detail","category":"Shot Type","group":"Shoot"},{"size":44653,"name":"Top","category":"Shot Type","group":"Shoot"}]}]},{"name":"Styling","children":[{"name":"Body Type Men","children":[{"size":338
@spiderbites
spiderbites / random_between.sql
Created November 27, 2018 19:00
Redshift function - random_between
create or replace function random_between(INT, INT)
returns INT
volatile
as $$
select floor(random() * ($2 - $1 + 1) + $1) :: int;
$$ language sql;
@spiderbites
spiderbites / merged-this-week.js
Created June 10, 2021 02:34
Bookmarklet for the PRs you merged this week
javascript: (function () {
const curr = new Date();
const firstDay = new Date(curr.setDate(curr.getDate() - curr.getDay()))
.toISOString()
.slice(0, 10);
const lastDay = new Date(curr.setDate(curr.getDate() - curr.getDay() + 6))
.toISOString()
.slice(0, 10);
const repo = "" // add user/org + repo name
const url = `https://github.com/${repo}/pulls?q=is%3Apr+is%3Aclosed+merged%3A${firstDay}..${lastDay}+base%3Amaster+sort%3Aupdated-desc+`;