An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
/* passable motion blur effect using frame blending | |
* basically move your 'draw()' into 'sample()', time runs from 0 to 1 | |
* by dave | |
* http://beesandbombs.tumblr.com | |
*/ | |
int samplesPerFrame = 32; // more is better but slower. 32 is enough probably | |
int numFrames = 48; | |
float shutterAngle = 2.0; // this should be between 0 and 1 realistically. exaggerated for effect here | |
int[][] result; |
bind-key C-b send-prefix | |
bind-key C-o rotate-window | |
bind-key C-z suspend-client | |
bind-key Space next-layout | |
bind-key ! break-pane | |
bind-key " split-window | |
bind-key # list-buffers | |
bind-key $ command-prompt -I #S "rename-session '%%'" | |
bind-key % split-window -h | |
bind-key & confirm-before -p "kill-window #W? (y/n)" kill-window |
cmake_minimum_required(VERSION 2.8.8) | |
project(interface_class_printer) | |
option(BUILD_INTERFACE_CLASS_PRINTER "Build the tool that converts a C++ interface class into a C struct." ON) | |
mark_as_advanced(BUILD_INTERFACE_CLASS_PRINTER) | |
if (BUILD_INTERFACE_CLASS_PRINTER) | |
# Find boost | |
find_package(Boost COMPONENTS date_time REQUIRED) |
// by dave @ beesandbombs.tumblr.com >:) | |
void setup() { | |
setup_(); | |
result = new int[width*height][3]; | |
result_ = new int[width*height][3]; | |
} | |
int[][] result, result_; | |
float time; |
// Code by @MetaGlitch | |
float fps = 16.666; | |
int inFrames = 15; | |
int outFrames = 15; | |
int otherFrames = 60; | |
int numFrames = inFrames + otherFrames + outFrames; | |
float t1 = inFrames * 1.0/numFrames; |
// Code by @MetaGlitch | |
int size = 601; | |
int fps = 20; | |
int numFrames = 40; | |
int samplesPerFrame = 24; | |
float exposure = 0.7; // exposure time in frames. >1 allowed for blending multiple frames | |
float subFrameAttenuation = 1; // 1 for weighting every subframe the same. <1 for attenuation effect. | |
boolean looping = true; // false: t=1 on the last frame; true: t=1-1/nummFrames on last frame. | |
boolean recording = true; |
import matplotlib.pyplot as plt | |
def draw_neural_net(ax, left, right, bottom, top, layer_sizes): | |
''' | |
Draw a neural network cartoon using matplotilb. | |
:usage: | |
>>> fig = plt.figure(figsize=(12, 12)) | |
>>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2]) | |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output