This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Component = React.createClass({ | |
render: function() { | |
return ( | |
<div className="Component"> | |
// More content here | |
</div> | |
) | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n''%C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit --all | |
Alias it to something like: | |
git config alias.graph = log --graph ..etc.. | |
For a quick way to get an overview of your current branches etc, use a bash alias | |
alias gl='git graph -10' | |
Looks like: http://cl.ly/Ri9R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Vertical spacing classes | |
// ------------------------------------ | |
@for $i from 1 through 30 { | |
$val: $i + 0px; | |
.mb#{$i} { | |
margin-bottom: $val; | |
} | |
.mt#{$i} { | |
margin-top: $val; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(global) { | |
function definition($) { | |
$.fn.measure = function(fn) { | |
var clone = $(this).clone(), result; | |
clone.css({ | |
visibility: 'hidden', | |
position: 'absolute' | |
}); | |
clone.appendTo(document.body); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadScript(url, callback) { | |
var script = document.createElement('script'); | |
var entry = document.getElementsByTagName('script')[0]; | |
var readyHandler; | |
script.async = true; | |
script.src = url; | |
entry.parentNode.insertBefore(script, entry); | |
if (script.addEventListener) { | |
script.addEventListener('load', callback, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
"dictionary": "Packages/Language - English/en_GB.dic", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".git", | |
".idea" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$title = 'Deploy '. $_SERVER['SERVER_NAME'] . ' from GitHub'; | |
?> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title><?= $title ?></title> | |
<style> | |
.container { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Retrieves a link to a page via page title | |
* | |
* @param $title | |
* @return string | |
*/ | |
function get_permalink_by_title($title) { | |
return get_permalink(get_page_by_title($title)->ID); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tablet: 46.875em; // Approx 750px - Larger Tablets upwards | |
@desktop: 75em; // Approx 1200px - Desktops | |
.mobile() { | |
.visible-phone { display: block; } | |
.visible-tablet { display: none; } | |
.visible-desktop { display: none; } | |
.hidden-phone { display: none; } | |
.hidden-tablet { display: block; } | |
.hidden-desktop { display: block; } |