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
$('body').css({overflow: ''}); | |
$('.intromercial-handle').remove(); |
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
{ | |
"private": true, | |
"devDependencies": { | |
"jquery": "^2.1.4", | |
"laravel-elixir-livereload": "^1.1.3", | |
"laravel-elixir-react": "^0.1.2", | |
"node-bourbon": "^4.2.3", | |
"node-neat": "^1.7.2", | |
"react": "^0.14.3", | |
"react-dom": "^0.14.3" |
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 sass-make | |
set names $argv | |
for name in $names | |
set path ./resources/assets/sass/_{$name}.scss | |
touch {$path} | |
echo 'Created' {$path} | |
echo '\n@import "'{$name}'";' >> ./resources/assets/sass/app.scss | |
echo 'Added' {$name} 'to app.scss' | |
end | |
end⏎ |
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
process.env.DISABLE_NOTIFIER = true; | |
var elixir = require('laravel-elixir'); | |
require('laravel-elixir-livereload'); | |
elixir(function(mix) { | |
mix | |
.sass('app.scss', | |
elixir.config.publicPath + '/' + elixir.config.css.outputFolder, | |
{includePaths : require('node-neat').includePaths}) | |
.styles([ |
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 like so: | |
# ruby citations.rb "text_to_match_1" "text_to_match_2" | |
args = ARGV | |
counter = 0 | |
File.open('./citations.txt', 'r') do |f| | |
while line = f.gets | |
args.each do |a| | |
if line.downcase.include?a.downcase | |
starts_with = "http" | |
system('open ' + starts_with + line.split(starts_with).last) |
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
tar xpzf mira-2044-x86_64-Darwin.tgz; | |
cd ./usr/bin; | |
cp * /usr/local/bin; | |
cd ../lib; | |
cp -r * /usr/local/lib; | |
cd ../share; | |
cp -r * /usr/local/share; |
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
{ | |
"name": "frontend-starter", | |
"version": "1.0.0", | |
"description": "React, browserify and babel. With npm scripts and browser-sync", | |
"main": "index.js", | |
"config": { | |
"ut": "{,!(node_modules)/**/}*.test.js" | |
}, | |
"scripts": { | |
"start": "npm run dev", |
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 map = ([ head, ... tail ], fn) => | |
( (head !== undefined && tail.length) ? ( tail.length ? [ fn(head), ...(map(tail, fn)) ] : [ fn(head) ] ) : []); |
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 map(arr, fn) { | |
var head = arr[0]; | |
var tail = arr.slice(1); | |
if(head === undefined && tail.length === 0) return []; | |
if(tail.length === 0) { | |
return [ fn(head) ]; | |
} | |
return [].concat(fn(head), map(tail, fn)); | |
} |
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 join([ head, ...tail ], separator = ',') { | |
if (head === undefined && !tail.length) return ''; | |
return tail.length ? head + separator + join(tail, separator) : head; | |
} |
OlderNewer