##Install keydown:
gem install keydown
##Generate Template
keydown generate demo_presentation
##Install keydown:
gem install keydown
##Generate Template
keydown generate demo_presentation
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| #!/bin/bash | |
| function usage () { | |
| script=$0 | |
| cat <<USAGE | |
| Creates scala project structure to be used with sbt | |
| Syntax | |
| `basename $script` project_name artifact_id |
| Function CreateSheetIf(strSheetName As String) As Boolean | |
| 'Returns false if does not creates a worksheet | |
| 'Returns true if it creates a worksheet | |
| Dim wsTest As Worksheet | |
| CreateSheetIf = False | |
| 'Check to see if the worksheet exist, if does not exists wsTest will be "Nothing" | |
| 'otherwise wsTest will be assigned to the worksheet | |
| Set wsTest = Nothing |
Installing required convertors on mac:
H.264/AAC/MP4http://handbrake.fr/downloads2.php
VP8/Vorbis/WebM
Start server on one machine using:
iperf -s -i 1
-i specifies the interval at which the output is specified-s specified to start serverStart client on another machine using:
| package com.cloudwick.hdfs; | |
| import java.io.BufferedInputStream; | |
| import java.io.BufferedOutputStream; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; |
Time to generate 1 million hash entries:
Time to lookup 1 million entires in hash: