Skip to content

Instantly share code, notes, and snippets.

View jlord's full-sized avatar
😷
Long Covid recovery

Jessica Lord jlord

😷
Long Covid recovery
View GitHub Profile
@jlord
jlord / branch.sh
Created August 9, 2015 15:47
Git branch in terminal
BLUE='\e[0;34m';
RED="\e[4;31m"
CYAN="\e[0;36m"
WHITE="\e[0;37m"
export PS1="$BLUE\${BRANCH}\e[m $WHITE@\u $CYAN\w:\[\e[0m\] "
function get_branch {
if [ -d .git ]; then
BRANCH="$(git branch | awk '/\*/ { print $2 }') ☁︎ "
{
'variables': {
# Enalbe using proprietary codecs.
'proprietary_codecs': 1,
'ffmpeg_branding': 'Chrome',
# And the gold's flags are not available in system's ld neither.
'linux_use_gold_flags': 0,
# Make Linux build contain debug symbols, this flag will add '-g' to cflags.
'linux_dump_symbols': 1,
# The Linux build of libchromiumcontent.so depends on, but doesn't
@jlord
jlord / index.js
Last active August 29, 2015 14:21
var path = 'atom-electron-b4403fa/docs/api/accelerator.md'
// wanted: 'docs/latest/api/accelerator'
// - add 'latest/' after 'docs/'
// - remove 'atom-electron-b443fa'
// - remove file extension at the end
function constructRedirectUrl (path) {
var a = path.split('/')
a.splice(2, 0, 'latest').splice(0, 1)
var c = a.join('/')
@jlord
jlord / index.js
Last active August 29, 2015 14:17
Atom Shell menubar app with @maxogden's menubar module
var menubar = require('menubar')
var exec = require('child_process').exec
var fs = require('fs')
var mb = menubar()
mb.on('ready', function ready () {
console.log('Ready!')
fetchTimes()
})
@jlord
jlord / index.js
Created March 18, 2015 20:13 — forked from max-mapper/index.js
requirebin sketch
var d3 = require('d3')
var textures = require('textures').textures
var types = ["squares", "nylon", "waves", "woven", "caps", "crosses", "hexagons"]
var colors = ["peachpuff", "deepskyblue", "tomato", "aquamarine", "hotpink"]
setInterval(render, 500)
function render() {
var type = types.pop()
@jlord
jlord / list.md
Last active August 29, 2015 14:16
RSS!

The three I'd take to a desert island with only enough bandwidth to load three sites a day:

  • Design, art & more: Miss Moss
  • Interiors, minimal & classic: Remodelista Great book also.
  • Food, seasonal, vegetarian: 101 Cookbooks She lives in SF, and I have two of her cookbooks and love them.

Graphic Design
@jlord
jlord / index.sh
Last active February 9, 2016 06:20 — forked from max-mapper/index.sh
imagemagick script: image background is a larger, blurred copy of itself.
for f in *.jpg; do
convert ./"$f" -gravity center -resize 1137 -extent 1137x640 -blur 0x4 ./finalcat/"new-$f"
convert ./finalcat/"new-$f" -page +248 ./"$f" -flatten ./finalcat/"new-$f"
done
var doThis = require('file')
// I could also define callback here
// but I don't *have* to
exec('whatever', function(err, stdout, stdrr) {
doThis('file', callback)
})
// I can define callback here

December '14 / January '15

Su Mo Tu We Th Fr Sa
30 🌳 1 🌳 2 🌳 3 🌳 4 🌳 5 🌳 6 🌳
7 πŸ’› 8 πŸ’› 9 πŸ’› 10 πŸ’› 11:yellow_heart: 12 πŸ’› 13 πŸ’›
14 🌳 15 ✈️ πŸ‘ 16 πŸ‘ 17 πŸ‘ 18 πŸ‘ 19 πŸ‘ 20 πŸ‘
21 πŸ‘ 22 πŸ‘ 23 πŸ‘ 24 πŸŽ… 25 πŸŽ… 26 πŸ‘ 27 ✈️ β˜”
28 β˜” 29 β˜” 30 β˜” 31 πŸŽ‰ 1 πŸŽ‰ 2 β˜” 3 β˜”
4 β˜” 5 :umbrella
@jlord
jlord / hi.md
Created November 23, 2014 00:06
sample

Hi, what a cool Gist!