To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion
#!/bin/bash | |
HOSTNAME=$1 | |
# Set up environment | |
git clone http://github.com/spro/dotfiles | |
cd dotfiles && ./bin/install-dotfiles | |
cd ~ | |
sudo hostname $HOSTNAME | |
source ~/.bash_profile |
-- > te grillo wa silencieusement matte iru | |
-- = your cricket is sleeping silently | |
genders = { | |
m={ | |
the='el', | |
a='un', | |
my='me', | |
your='te', | |
}, |
import torch | |
import torch.nn as nn | |
from torch.nn import functional as F | |
from torch.autograd import Variable | |
from torch import optim | |
import numpy as np | |
import math, random | |
# Generating a noisy multi-sin wave |
> please if the temperature in minnesota is equal to 2 then turn the office light off thanks | |
( %if | |
( %condition | |
( %currentWeather | |
( $location minnesota ) ) | |
( $operator equal to ) | |
( $number 2 ) ) | |
( %setDeviceState | |
( $device.name office light ) |
To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
somata = new somata.Client | |
if errors.length | |
res.send 401 | |
# User account | |
# --------------------------------------------------------------------------------------- | |
app.get '/streets/:channel_id/channels.json', (req, res) -> | |
email_form = |
import bottle | |
import json | |
all_people = [ | |
{'name': 'Fred Wilson'}, | |
{'name': 'Fred Durst'}, | |
{'name': 'Fred Astaire'}, | |
] | |
@bottle.get('/people.json') |
Verifying that +spro is my openname (Bitcoin username). https://onename.com/spro |
location / { | |
set $proxy_to ""; | |
access_by_lua " | |
local redis = require 'redis' | |
local red = redis:new() | |
red:connect('127.0.0.1', 6379) | |
local headers = ngx.req.get_headers() | |
local hosts = red:smembers('frontend:' .. headers['host']) |
knex = require('knex')(client: 'pg', connection: 'postgres:///test1') | |
bookshelf = require('bookshelf')(knex) | |
util = require 'util' | |
inspect = (o) -> console.log util.inspect o.toJSON(), colors: true | |
# Schema | |
# ------ | |
User = bookshelf.Model.extend |