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 / 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 / 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
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('/')
{
'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 / 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 }') ☁︎ "
{"core":[{"name":"about","author":{"name":"Machisté N. Quintana","email":"[email protected]"},"main":"./lib/about","version":"1.1.0","description":"View useful information about your Atom installation.","keywords":[],"repository":{"type":"git","url":"https://github.com/atom/about.git"},"license":"MIT","engines":{"atom":">=0.210.0 <2.0.0"},"dependencies":{"atom-space-pen-views":"^2.0.5"},"devDependencies":{"coffeelint":"^1.9.7"},"bugs":{"url":"https://github.com/atom/about/issues"},"homepage":"https://github.com/atom/about#readme","_shasum":"1e9cc8cb5bebb9a7c5cab378f521c397b875be4d","_resolved":"file:../../../../tmp/d-115811-16353-17qcm25/package.tgz","_atomModuleCache":{"version":1,"dependencies":[],"extensions":{".js":["lib/about-view.js","lib/about.js"]},"folders":[{"paths":["lib",""],"dependencies":{"atom-space-pen-views":"^2.0.5"}}]}},{"name":"archive-view","version":"0.60.0","description":"View the files and folders inside archive files","main":"./lib/archive-editor","dependencies":{"at
@jlord
jlord / main.js
Last active February 24, 2016 05:29
var printPDFBton = document.getElementById('print-pdf');
var ipc = require('electron').ipcRenderer;
printPDFBton.addEventListener('click', function (event) {
ipc.send('print-to-pdf');
});
ipc.on('wrote-pdf', function (event, path) {
// TODO should we open the pdf? or put it somewhere else?
var message = 'Wrote PDF to: ~' + path;
var app = require('app');
var BrowserWindow = require('browser-window');
var glob = require('glob');
var mainWindow = null;
// Require and setup each JS file in the main-process dir
glob('main-process/**/*.js', function (error, files) {
if (error) return console.log(error);
files.forEach(function (file) {
@jlord
jlord / Readme.md
Last active February 15, 2020 19:52

Add these fun keyboard shortcuts to your system! Works especially well if you're writing @muan a lot (◍•ᴗ•◍)♡

Here's how on OS X:

Press cmd + space and search and open System Preferences, then select Keyboard, then Text ヽ(´∇`)ノ

img

Note