This file contains hidden or 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([ head, ...tail ], fn) { | |
if (head === undefined && !tail.length) return []; | |
return tail.length ? [ fn(head), ...(map(tail, fn)) ] : [ fn(head) ]; | |
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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(); |
NewerOlder