Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git config --global apply.whitespace nowarn
sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev | |
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz | |
tar -xzf Python-2.7.3.tgz | |
cd Python-2.7.3 | |
./configure --prefix=/usr --enable-shared | |
make | |
sudo make install | |
cd .. |
#!/usr/bin/env python2.6 | |
from AddressBook import * | |
import pprint | |
def addressBookToList(): | |
""" | |
Read the current user's AddressBook database, converting each person | |
in the address book into a Dictionary of values. Some values (addresses, | |
phone numbers, email, etc) can have multiple values, in which case a |
#!/usr/bin/env python2.6 | |
from AddressBook import * | |
import pprint | |
def addressBookToList(): | |
""" | |
Read the current user's AddressBook database, converting each person | |
in the address book into a Dictionary of values. Some values (addresses, | |
phone numbers, email, etc) can have multiple values, in which case a |
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git config --global apply.whitespace nowarn
I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.
I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.
This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.
I appreciate the effort you've put into documenting this, but there are a number of inaccuracies here that need to be addressed. We get
import { Store } from 'ngrx-one/store'; | |
import { INCREMENT, DECREMENT, RESET } from './counter'; | |
interface AppState { | |
counter: number; | |
} | |
@Component({ | |
selector: 'my-app', | |
template: ` |
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/
is intended for code that can run as-issrc/
is intended for code that needs to be manipulated before it can be usedin upload handler | |
in file close | |
.. | |
---------------------------------------------------------------------- | |
Ran 2 tests in 0.021s | |
OK |
from io import BytesIO | |
def test_file_upload(client): | |
data = { | |
'field': 'value', | |
'file': (BytesIO(b'FILE CONTENT'), 'test.csv') | |
} | |
rv = client.post('/upload', buffered=True, |
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 |