Skip to content

Instantly share code, notes, and snippets.

View thedanheller's full-sized avatar

Dan Heller thedanheller

View GitHub Profile
@thedanheller
thedanheller / Preferences.sublime-settings
Created July 31, 2016 03:07
My Sublime Text Settings
{
"Seti_orange_button": true,
"Seti_tabs_big": true,
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
"theme": "Seti.sublime-theme",
@thedanheller
thedanheller / .gitconfig
Last active September 26, 2016 12:39
Git config and aliases
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[user]
email = daniloprates@gmail.com
name = Danilo Prates
[http]
sslVerify = false
[push]
@thedanheller
thedanheller / .zshrc
Last active September 26, 2016 12:56
My ZSH alias
alias g="git"
alias s="sudo"
alias n="npm"
alias ns="npm start"
alias nw="npm run watch"
alias ni="npm install"
alias cfgg="subl ~/.gitconfig"
alias cfgz="subl ~/.zshrc"
@thedanheller
thedanheller / .aliases
Created December 2, 2016 20:07
oh my zsh git aliases
amend='git commit --amend'
g=git
ga='git add'
gaa='git add --all'
gac='git add . && git commit -v'
gapa='git add --patch'
gb='git branch'
gba='git branch -a'
gbda='git branch --merged | command grep -vE "^(\*|\s*master\s*$)" | command xargs -n 1 git branch -d'
gbl='git blame -b -w'
@thedanheller
thedanheller / flatten-array.js
Created January 21, 2017 03:56
Flatten Array
const flattenArray = (arr) => {
const flattenLevel = arr => [].concat(...arr);
const hasArray = item => {return Array.isArray(item);}
do {
arr = flattenLevel(arr);
} while (arr.findIndex(hasArray) > 0);
@thedanheller
thedanheller / Preferences.sublime-settings
Created January 23, 2017 21:05
dot & config files files
{
"Seti_ClosedFolder_remove": false,
"Seti_SB_bright": true,
"Seti_SB_med": true,
"Seti_lime_tab": true,
"Seti_lime_tabclose": true,
"Seti_orange_button": true,
"Seti_sb_small_padding": true,
"Seti_tabs_small": true,
"binary_file_patterns":
@thedanheller
thedanheller / GIF-Screencast-OSX.md
Created June 4, 2017 19:08 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@thedanheller
thedanheller / getGlobals.js
Created June 16, 2017 00:47
Get website global vars
var getGlobals = () => {
let defaults = [ "stop", "open", "alert", "confirm", "prompt", "print", "requestAnimationFrame", "cancelAnimationFrame", "requestIdleCallback", "cancelIdleCallback", "captureEvents", "releaseEvents", "getComputedStyle", "matchMedia", "moveTo", "moveBy", "resizeTo", "resizeBy", "getSelection", "find", "getMatchedCSSRules", "webkitRequestAnimationFrame", "webkitCancelAnimationFrame", "btoa", "atob", "setTimeout", "clearTimeout", "setInterval", "clearInterval", "createImageBitmap", "scroll", "scrollTo", "scrollBy", "fetch", "postMessage", "webkitRequestFileSystem", "blur", "focus", "webkitResolveLocalFileSystemURL", "close", "openDatabase", "chrome", "DoodleNotifier", "google", "gws_wizbind", "_", "_DumpException", "W_jd", "ntp_", "ntp_ba", "ntp_fa", "ntp_ca", "ntp_ha", "ntp_sa", "ntp_va", "ntp_wa", "ntp_Aa", "ntp_Ba", "ntp_Da", "ntp_ya", "ntp_Ga", "ntp_Ha", "ntp_La", "ntp_Ca", "ntp_Qa", "ntp_Ra", "ntp_Pa", "ntp_Ta", "ntp_1a", "ntp_Xa", "ntp_4a", "ntp_2a", "ntp_db", "ntp_Ka", "ntp_eb"
[
{ "keys": ["ctrl+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["alt+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
// { "keys": ["super+m"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+e"], "command": "run_emmet_action", "args": {"action": "expand_abbreviation"} },
{ "keys": ["super+alt+i"], "command": "replace_all" },
{ "keys": ["super+shift+k"], "command": "reveal_in_side_bar"},

Keybase proof

I hereby claim:

  • I am daniloprates on github.
  • I am daniloprates (https://keybase.io/daniloprates) on keybase.
  • I have a public key ASAgqHoZ0B2tjukaOz6f7bRorfFpvA6mSiGVgU9kNEQzPgo

To claim this, I am signing this object: