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
| 2014/08/21 08:52:13 [INFO] consul.fsm: snapshot created in 23.435us | |
| 2014/08/21 08:52:13 [INFO] raft: Starting snapshot up to 8232 | |
| 2014/08/21 08:52:13 [INFO] snapshot: Creating new snapshot at /tmp/consul/raft/snapshots/2-8232-2014-08-21T08:52:13.72566997-07:00.tmp | |
| 2014/08/21 08:52:13 [INFO] raft: Compacting logs from 1 to 8232 | |
| panic: runtime error: index out of range | |
| goroutine 30 [running]: | |
| runtime.panic(0x9bdc40, 0xf763fc) | |
| /opt/go/src/pkg/runtime/panic.c:279 +0xf5 | |
| encoding/binary.bigEndian.Uint64(0xf8f230, 0x0, 0x0, 0xc208201300) |
| D = React.DOM | |
| Button = ({text, action}) -> | |
| D.button(onClick: action, text) | |
| # Views | |
| # ------------------------------------------------------------------------------ | |
| # <App> | |
| # - <Counter Collection> |
| 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 |
| 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']) |
| Verifying that +spro is my openname (Bitcoin username). https://onename.com/spro |
| import bottle | |
| import json | |
| all_people = [ | |
| {'name': 'Fred Wilson'}, | |
| {'name': 'Fred Durst'}, | |
| {'name': 'Fred Astaire'}, | |
| ] | |
| @bottle.get('/people.json') |
| somata = new somata.Client | |
| if errors.length | |
| res.send 401 | |
| # User account | |
| # --------------------------------------------------------------------------------------- | |
| app.get '/streets/:channel_id/channels.json', (req, res) -> | |
| email_form = |
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.
| > 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 ) |
| 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 |