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
| import torch | |
| from torch import nn | |
| from torch.autograd import Variable | |
| import torch.nn.functional as F | |
| class RNN(nn.Module): | |
| def __init__(self, input_size, hidden_size, output_size, n_layers=1): | |
| super(RNN, self).__init__() | |
| self.input_size = input_size | |
| self.hidden_size = hidden_size |
| #!/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']) |