As configured in my dotfiles.
start new:
tmux
start new with session name:
function sortObj(rawObject) { | |
let newArr = [] | |
return new Promise(fulfill, reject) { | |
for (let i = 0; i < rawObject.meals.length; i++) { | |
newArr.push({ | |
meal: obj.meals[i].strMeal, | |
instructions: obj.meals[i].strInstructions, | |
thumb: obj.meals[i].strMealThumb, | |
ingredients: [], | |
measurements: [] |
function startWineQuiz() { | |
//This function will start the quiz when user clicks | |
//start button | |
console.log('`startWineQuiz` ran') | |
$('#start-button').on('click', function () { | |
fader('.quiz-body', 'fade-out', function () { | |
console.log('do stuff') | |
}) | |
}) |
var uniqueArray = function(arrArg) { | |
return arrArg.filter(function(elem, pos,arr) { | |
return arr.indexOf(elem) == pos; | |
}); | |
}; | |
var uniqEs6 = (arrArg) => { | |
return arrArg.filter((elem, pos, arr) => { | |
return arr.indexOf(elem) == pos; | |
}); |
(function() { | |
var lastScrollY = 0; | |
var ticking = false; | |
var update = function() { | |
// do your stuff | |
ticking = false; | |
}; | |
var requestTick = function() { |
@Text: #000000; | |
@Fill: #FFFFFF; | |
.webkitPrefillOverride (@textcolor, @fillcolor) { | |
-webkit-text-fill-color: @textcolor; | |
-webkit-box-shadow: inset 0 0 0px 9999px @fillcolor; | |
background-color: transparent!important; | |
background: transparent; | |
border-bottom-color: @fillcolor; | |
} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name you.server.com; |
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf
to /usr/local/etc/nginx/
default.conf
and default-ssl.conf
to /usr/local/etc/nginx/sites-available
homebrew.mxcl.nginx.plist
to /Library/LaunchDaemons/
brew install nginx
sudo cp /usr/local/Cellar/nginx/1.8.0/homebrew.mxcl.nginx.plist /Library/LaunchAgents
Replace /usr/local/etc/nginx/nginx.conf
with the nginx.conf
in this gist. I'm using port 5000 for my current project. Obviously, change server_name
as well, and probably the name of its access log.