This is just a personal script to help me remember all the steps required to setup a new osx machine in their correct order. I do not advise you to follow this guide if you don't know what you're doing.
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
require 'susy' | |
class CssSplitter | |
def self.split(infile, outdir = File.dirname(infile), max_selectors = 4095) | |
raise "infile could not be found" unless File.exists? infile | |
rules = IO.readlines(infile, "}") | |
return if rules.first.nil? |
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
Bundle 'tpope/vim-fugitive' "So awesome, it should be illegal | |
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} | |
" vim-scripts repos | |
Bundle 'L9' | |
Bundle 'rking/ag.vim' | |
Bundle 'jlanzarotta/bufexplorer' | |
Bundle 'tpope/vim-sensible' | |
Bundle 'tpope/vim-surround' |
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 getModernViewport() { | |
var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); | |
var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); | |
} | |
function getViewport() { | |
var viewPortWidth; | |
var viewPortHeight; |
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
<!doctype html> | |
<html class="no-blend"> | |
<head> | |
<script>/* Put no-blend.js code here, sooner rather than later. */</script> | |
</head> | |
<body> | |
... | |
</body> | |
</html> |
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
'use strict'; | |
/** | |
* plugins to consider | |
* https://www.npmjs.org/package/grunt-bumper | |
*/ | |
var git = require('git-rev-sync'); | |
module.exports = function(grunt) { |
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
lsof -t -i tcp:9002 | xargs kill |
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
step1 | |
find . -name ep06_*.jpg -exec sh -c 'FILE={}; git mv -v $FILE ${FILE/ep06_/ep08n_}' \; | |
#step2 | |
find . -name ep08n_*.jpg -exec sh -c 'FILE={}; git mv -v $FILE ${FILE/ep08n_/ep03_}' \; |
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
# Stop emmet from hijacking tab from and autocomplete | |
# https://github.com/atom/autocomplete-plus/issues/86#issuecomment-82661027 | |
'atom-text-editor.autocomplete-active:not([mini])': | |
'tab': 'autocomplete-plus:confirm' | |
# Stop emmet from hijacking tab from snippet tab stops | |
# https://github.com/atom/autocomplete-plus/issues/86#issuecomment-82661027 | |
'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini]), atom-text-editor[data-grammar~="js"]:not([mini]), atom-text-editor[data-grammar~="jsx"]:not([mini])': | |
'tab': 'snippets:next-tab-stop' |
OlderNewer