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------ | |
alias gs='clear ;and git status' | |
alias gb='git branch' | |
alias gbranch='git rev-parse --abbrev-ref HEAD' #get current branch name | |
alias gl="clear ;and git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gt='git tag' | |
alias grm='git rm' | |
alias gps='git push' | |
alias gbi='git bisect' | |
alias gbg='git bisect good' |
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
crossbow { | |
display: flex; | |
flex-direction: row-reverse; | |
align-items: flex-end; | |
} | |
.target.goo{ | |
flex-grow: 1; | |
} |
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
alert('ha!'); |
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
atom-text-editor::shadow { | |
.line-numbers{ | |
padding-left: 4px !important; | |
} | |
.git-line-modified, .git-line-added{ | |
margin-left: -4px; | |
padding-left: 2px !important; | |
opacity: .5 | |
} |
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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller | |
// fixes from Paul Irish and Tino Zijdel | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; | |
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { |
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
<div class="crossbow"> | |
<div class="zombie boy"></div> | |
<div class="zombie girl"></div> | |
<div class="zombie boy"></div> | |
</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
// Angular 1.x components don't let you do a "replace:true", so they're always nested in another HTML tag. | |
// This nesting makes it so you can't use some really useful css pseudo-classes like ":last-of-type". | |
// This workaround puts a CSS class on the actual root, so you can take adavantage of these CSS goodies. | |
export default class Task { | |
constructor($element){ | |
// add class to component root element for easier css styling | |
// using aphrodite | |
$element.addClass(css(styles.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
/** | |
* Abstraction around multichoice questions that works in windows, despite https://github.com/nodejs/node/issues/5384 | |
* Uses arrow keys for non-windows and number selection for windows | |
*/ | |
var inquirer = require("inquirer"); | |
var isWindows = /^win/.test(process.platform); | |
module.exports = function(questions) { | |
if (!isWindows) { |
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
tell application "System Events" | |
keystroke "s" using command down | |
end tell | |
tell application "Google Chrome" to tell the first «class CrTb» of its first window | |
«event CrSuRlod» | |
end tell | |
tell application "Google Chrome" to set «class acTI» of first window to 1 |
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
alert('test mercutio'); |