Skip to content

Instantly share code, notes, and snippets.

View akdetrick's full-sized avatar
🛠️

Adam Detrick akdetrick

🛠️
  • Meetup
  • Brooklyn, NY
View GitHub Profile
@endolith
endolith / Has weird right-to-left characters.txt
Last active April 20, 2025 22:34
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
@joelambert
joelambert / README
Created June 1, 2011 11:03
Drop in replacements for setTimeout()/setInterval() that makes use of requestAnimationFrame() where possible for better performance
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
@akdetrick
akdetrick / .vimrc
Last active September 29, 2015 05:08
clean vimrc
filetype off
call pathogen#infect()
call pathogen#helptags()
" installed bundles
" git://github.com/scrooloose/nerdcommenter.git
" git://github.com/tpope/vim-surround.git
" git://github.com/tsaleh/vim-supertab.git
" git://github.com/tpope/vim-eunuch.git
" git://github.com/tpope/vim-haml.git
@akdetrick
akdetrick / dabblet.css
Created March 12, 2012 22:41
MeetStrap: i am complete
/**
* MeetStrap: i am complete
*/
html{overflow-y:scroll;font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html,body{font-size:12px;color:#555;line-height:1.5;margin:0;padding:0}body,button,input,select,textarea{font-family:Verdana,Geneva,Tahoma,sans-serif}abbr,strong,acronym,span,small,time,strike,sub,sup,a{display:inline;font-family:inherit}abbr,acronym{border-width:0}b,strong{font-weight:bold}i,em{font-weight:normal}sup,sub{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}small{font-size:11px}p,ul,ol,li blockquote,form,fieldset,legend,table,dl,dd,article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{margin:0;padding:0;margin-bottom:12px;font-family:inherit}form,legend{margin-bottom:0}img{margin:0;padding:0;border:0}img.resample{-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality}ul,ol{list-style-position:outside;padding-left:2.75em}article,aside,details,figcaption,figure,footer,header,hgroup,nav,sect
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@akdetrick
akdetrick / plugin-template.js
Created August 6, 2012 19:04
jquery plugin template
/* ===========================================================
* jQuery plugin template (inspired by bootstrap tooltip and popover)
*
* easy inheritance, mutability, and method access via the
* magic of Objects
*
* plugin methods are all in one object, so
* you can extend plugins by $extend()'ing prototypes.
*
* stores plugin and its methods in a data attribute:
@leostratus
leostratus / webkit-pseudo-elements.md
Created September 21, 2012 01:44
Webkit Pseudo-Element Selectors (Shadow DOM Elements)

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@leostratus
leostratus / html-entities.md
Created September 21, 2012 18:37
HTML Entities/HTML Escape Characters

Because somehow I always end up trolling the interwebs looking for a reference for these.

Symbol Code Entity Name
anonymous
anonymous / gist:3920525
Created October 19, 2012 20:28
defscrollback 10000
activity "%C -> %n%f %t activity!"
bind j focus down
bind k focus up
caption always "%{+b rk}%H%{gk} |%c %{yk}%d.%m.%Y | %72=Load: %1 %{wk}"
hardstatus alwayslastline "%?%{yk}%-Lw%?%{wb}%n*%f %t%?(%u)%?%?%{yk}%+Lw%?"