Skip to content

Instantly share code, notes, and snippets.

@jesseditson
jesseditson / gif-from-dropbox-capture
Created October 6, 2021 18:12
Create an animated gif from a Dropbox Capture link
#!/bin/bash
# Usage:
# 1. take a video with dropbox capture.
# 2. run this file. It will convert the video link from your pasteboard into a gif and replace it.
function chrome {
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $@
}
@jesseditson
jesseditson / .prettierrc.js
Last active March 27, 2021 01:34
Live Apps Workshop 03/29 code samples
module.exports = {
tabWidth: 4,
jsxBracketSameLine: true,
trailingComma: "es5",
bracketSpacing: false,
quoteProps: "preserve",
parensSameLine: true,
arrowParens: "avoid",
};
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2020-07-11T17:41:15.374Z",
@jesseditson
jesseditson / words.json
Created May 7, 2018 18:49
English words in json format
This file has been truncated, but you can view the full file.
{
"words": [
"aa",
"aah",
"aahed",
"aahing",
"aahs",
"aal",
"aalii",
"aaliis",
@jesseditson
jesseditson / bookmarklet.js
Created February 22, 2019 00:42
Noise Pop event to calendar invite
// https://mrcoles.com/bookmarklet/
var MS_IN_MINUTES = 60 * 1000;
var formatTime = function(date) {
return date.toISOString().replace(/-|:|\.\d+/g, "");
};
var calculateEndTime = function(event) {
return event.end
@jesseditson
jesseditson / remove-dupes.sh
Created January 19, 2019 03:15
Remove all files ending in (1).jpg, e.g. dropbox duplicates on darwin zsh
#! /bin/bash
ls -l | grep "(1).jpg" | awk -v q="'" '{printf "%s%s %s %s%s\n",q,$9,$10,$11,q}' | xargs rm
@jesseditson
jesseditson / gist:9773690
Created March 25, 2014 23:26
Tunnel script
#!/bin/bash
function stopTunnels {
echo "stopping db tunnnels:"
if [ -n "$PID" ]; then
echo "stopping $PID..."
kill $PID
sleep 1
fi
@jesseditson
jesseditson / App.js
Created September 11, 2015 00:15
ES6 & React Sticky scroll higher-order component example
import React from 'react'
import MyComponent from '../components/MyComponent'
export default class App extends React.Component {
render() {
return <MyComponent topMargin="10"/>
}
}
@jesseditson
jesseditson / names.json
Created May 7, 2018 19:36
1000 random unique names from the census
{
"names": [
"Kimberly Evans",
"Elizabeth Harris",
"Ruth Sullivan",
"Michael Robinson",
"James Gonzales",
"Robert Ford",
"John Bennett",
"Karen Anderson",