git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
# Written by Brendan O'Connor, [email protected], www.anyall.org | |
# * Originally written Aug. 2005 | |
# * Posted to gist.github.com/16173 on Oct. 2008 | |
# Copyright (c) 2003-2006 Open Source Applications Foundation | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Jun 19 20:32:51 2011 | |
@author: [email protected] | |
""" | |
import numpy as np | |
import scipy.stats as stats | |
from matplotlib.pyplot import imshow, scatter |
# To use this script, you must first change a few things. | |
# First, you'll want to change the filepath for the sound file. | |
# This is on line 76. Second, you might want to change the materials or the settings. | |
# To render this, you'll need to set the background color, enable Only Render on the display window, and render it with OpenGL (it's much faster and most optimal for 2D renders.) | |
# LICENSE = wtfpl | |
# VERSION = 0.3 | |
import bpy | |
def makeMaterial(name, diffuse, alpha): |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
license: gpl-3.0 | |
redirect: https://observablehq.com/@d3/margin-convention |
N = 1024 Accel: 0.05265 FFTW: 0.026213 | |
N = 2048 Accel: 0.042565 FFTW: 0.049334 | |
N = 4096 Accel: 0.049206 FFTW: 0.082782 | |
N = 8192 Accel: 0.118918 FFTW: 0.173506 | |
N = 16384 Accel: 0.200201 FFTW: 0.371488 | |
N = 32768 Accel: 0.356826 FFTW: 1.01589 | |
N = 65536 Accel: 0.844955 FFTW: 1.79316 | |
N = 131072 Accel: 1.95759 FFTW: 3.99565 | |
N = 262144 Accel: 4.34179 FFTW: 9.87287 | |
N = 524288 Accel: 9.31858 FFTW: 19.6675 |
This is an animated variation of mbostock's normalized stacked barchart. When you click on a block, that block is sent to the bottom of the stack and the bars are reordered by decreasing height of that block. This allows you to compare any value in the stacks with a common baseline, eliminating a common criticism of stacked barcharts.
d3js: Create an HTML table using d3.js and JSON
#include <iostream> | |
#include <map> | |
#include <algorithm> | |
#include <functional> | |
#include <memory> | |
using namespace std; | |
class EventArgs { | |
public: |