Skip to content

Instantly share code, notes, and snippets.

View chrisnorthcott's full-sized avatar

Chris Northcott chrisnorthcott

  • Edinburgh, UK
View GitHub Profile
var Discord = require('discord.io');
var Request = require('request');
var trsrv_opts = {
host: 'mymemory.translated.net',
port: 80,
path: '/api/get'
}
var discord_opts = {
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-6-d4150d0aed19> in <module>()
----> 1 _=deepdream(net, img)
<ipython-input-4-975ec2ad7030> in deepdream(net, base_img, iter_n, octave_n, octave_scale, end, clip, **step_params)
1 def deepdream(net, base_img, iter_n=10, octave_n=4, octave_scale=1.4, end='inception_4c/output', clip=True, **step_params):
2 # prepare base images for all octaves
----> 3 octaves = [preprocess(net, base_img)]
4 for i in xrange(octave_n-1):
<?
class Stuff
{
private $theThing
function setTheThing($value) { $this->thething = $value; }
function getTheThing() { return $this->thething; }
}
@chrisnorthcott
chrisnorthcott / rc.lua
Created May 21, 2015 17:59
Default 3.5.2 AwesomeWM rc.lua
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library