Skip to content

Instantly share code, notes, and snippets.

View chrisjlebron's full-sized avatar

Christopher J. Lebron chrisjlebron

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1Cib18xbW6CL23ynDv16KriEijNnsNrRNf https://explorer.blockstack.org/address/1Cib18xbW6CL23ynDv16KriEijNnsNrRNf
@chrisjlebron
chrisjlebron / post-merge
Last active June 22, 2016 00:16 — forked from sindresorhus/post-merge
git hook to run a command after `git pull` if a specified file was changed.In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed.Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
# And/Or include with your other git hooks which are automatically added to project
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
@chrisjlebron
chrisjlebron / snippets.cson
Last active March 15, 2016 18:18
Atom Snippets
#################################################
# CSS/SASS/LESS #
#################################################
'.source.sass, .source.css.scss, .source.css.less':
'CSS Chapter Title':
'prefix': 'com'
'body': '/* ==========================================================================\n
\t${1:CSS CHAPTER TITLE}\n
\t========================================================================== */'

Keybase proof

I hereby claim:

  • I am chrisjlebron on github.
  • I am chrisjlebron (https://keybase.io/chrisjlebron) on keybase.
  • I have a public key whose fingerprint is B1F6 7425 5C67 B64D 5DEF 5B4A 72D3 52FA 7EF1 43A7

To claim this, I am signing this object:

@chrisjlebron
chrisjlebron / escape-ad-iframe.js
Last active June 16, 2023 14:15
Escape Ads from iframe
/**
* Get closest DOM element up the tree that contains a class
* @param {Node} elem The base element
* @param {String} selector The class to look for
* @return {Node} Null if no match
*/
var getClosestOfClass = function (elem, selector) {
var firstChar = selector.charAt(0);
// Get closest match
@chrisjlebron
chrisjlebron / template.TODO
Created January 22, 2013 21:16
Simple website project TODO template
Project kickoff:
☐ Is it responsive?
☐ Set meta-viewport
<meta name="viewport" content="width=device-width, initial-scale=1.0">
☐ Got a responsive tester?
ish. by Brad Frost is a current favorite (currently in my Sublime Fetch package list)
☐ Need any special tools?
https://github.com/filamentgroup/Southstreet
☐ Need IE conditionals?
☐ Are you using Modernizr?
@chrisjlebron
chrisjlebron / dabblet.css
Created September 25, 2012 21:26
bkgd change on hover (prototype)
/**
* bkgd change on hover (prototype)
*/
.contain {
position: relative;
width: 256px;
height: 192px;
color: white;
font-size: 3em;
@chrisjlebron
chrisjlebron / dabblet.css
Created September 18, 2012 23:17
Flixel loading graphic
/**
* Flixel loading graphic
*/
/* COLORS **********************
* BLUE BKGD = #0076d6
* RED = #fe2b57
* YELLOW = #fece44
* GREEN = #00ca35
* LIGHT BLUE = #0dd5fe
/**
* Ajax loaders
*/
body, html {
height:100%;
width:100%;
margin:0;
}
@chrisjlebron
chrisjlebron / dabblet.css
Created April 12, 2012 21:08
Secondary nav
/**
* Secondary nav
*/
body {
background: wheat;
min-height: 100%;
font-family:Helvetica;
}
nav {