Skip to content

Instantly share code, notes, and snippets.

View tdreid's full-sized avatar
🎮
Pushing code.

Douglas Reid tdreid

🎮
Pushing code.
View GitHub Profile
@tdreid
tdreid / .block
Created April 21, 2021 18:26 — forked from mbostock/.block
Canvas Pie
license: gpl-3.0
redirect: https://observablehq.com/@d3/pie-chart
@tdreid
tdreid / delete_all_tweets_by_date.py
Last active January 4, 2019 18:20 — forked from davej/delete_all_tweets.py
This script will delete all of the tweets in a specified account.
# -*- coding: utf-8 -*-
"""
This script will delete all of the tweets in the specified account
between a specified date range. BE VERY CAREFUL WITH IT.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at https://dev.twitter.com/apps
@tdreid
tdreid / .bash_aliases
Last active June 12, 2020 22:52
A modest set of useful aliases for git and bash productivity
alias ls='ls --color=auto -F'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias less="less -R "
alias mint='git co master && git branch | grep -v "master" | xargs git branch -D'
@tdreid
tdreid / template.gitignore
Created August 11, 2018 12:13
Github's node gitignore template as a gist
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
@tdreid
tdreid / commander-tutorial-interim-a.js
Last active July 20, 2018 15:14
Sample code to accompany tutorial on the steem blockchain
#!/usr/bin/env node
'use strict';
const version = require('./package.json').version;
const tp = require('commander');
tp
.arguments('<payee> <amount> <limit> <memo> <interval>')
.option('-p, --payor <payor>', 'Payor account on the steem blockchain')
@tdreid
tdreid / bootstrap-starter-nav.pug
Last active April 21, 2024 09:32
Bootstrap 4 examples as Pug templates
doctype html
html(lang="en")
head
meta(charset="utf-8")
meta(name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no")
title Bootstrap 4 Starter With Nav
link(rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous")
body
nav.navbar.navbar-expand-md.navbar-dark.bg-dark.fixed-top
a.navbar-brand(href="#") BRAND
//underscore mixin with utility functions
_.mixin({
sortNumbers: function(a,b){
return a-b;
},
md5: function(){
//
}