1 + 1
2 * 2
5 / 3
5 % 3
5 ** 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo port install gcc42 | |
| rvm pkg install openssl | |
| rvm remove 1.9.3 | |
| rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr --with-gcc=gcc-4.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| Send 2K bytes over 1 Gbps network 20,000 ns | |
| Read 1 MB sequentially from memory 250,000 ns | |
| Round trip within same datacenter 500,000 ns | |
| Disk seek 10,000,000 ns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ramfs_size_mb=1024 | |
| mount_point=~/volatile | |
| ramfs_size_sectors=$((${ramfs_size_mb}*1024*1024/512)) | |
| ramdisk_dev=`hdid -nomount ram://${ramfs_size_sectors}` | |
| newfs_hfs -v 'Volatile' ${ramdisk_dev} | |
| mkdir -p ${mount_point} | |
| mount -o noatime -t hfs ${ramdisk_dev} ${mount_point} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install build-essential checkinstall git pkg-config cmake libpng12-0 libpng12-dev libpng++-dev libpng3 libpnglite-dev libpngwriter0-dev libpngwriter0c2 libfaac-dev libjack-jackd2-dev libjasper-dev libjasper-runtime libjasper1 libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev zlib1g-dbg zlib1g libgstreamer0.10-0 libgstreamer0.10-dev libgstreamer0.10-0-dbg gstreamer0.10-tools gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-ffmpeg pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-prog libavcodec-dev libavcodec52 libavformat52 libavformat-dev libxine1-ffmpeg libxine-dev libxine1-bin libunicap2 libunicap2-dev libdc1394-22-dev libdc1394-22 libdc1394-utils swig python-numpy libpython2.7 python-dev python2.7-d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0,1% | |
| 0,1% | |
| 0,2% | |
| 0,3% | |
| 0,3% | |
| 0,4% | |
| 0,5% | |
| 0,5% | |
| 0,6% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 | |
| brew: superenv removed: -O2 -pedantic -m64 -mtune=corei7 -march=corei7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==> Downloading http://www.apache.org/dyn/closer.cgi?path=thrift/0.9.0/thrift-0.9.0.tar.gz | |
| Already downloaded: /Library/Caches/Homebrew/thrift-0.9.0.tar.gz | |
| tar xf /Library/Caches/Homebrew/thrift-0.9.0.tar.gz | |
| ==> Patching | |
| /usr/bin/patch -f -p1 -i 000-homebrew.diff | |
| patching file lib/cpp/src/thrift/transport/TSocket.h | |
| ==> ./configure --disable-debug --prefix=/usr/local/Cellar/thrift/0.9.0 --libdir=/usr/local/Cellar/thrift/0.9.0/lib --without-ruby --without-python --without-haskell --without-java --without-perl --without-php --without-erlang | |
| ./configure --disable-debug --prefix=/usr/local/Cellar/thrift/0.9.0 --libdir=/usr/local/Cellar/thrift/0.9.0/lib --without-ruby --without-python --without-haskell --without-java --without-perl --without-php --without-erlang | |
| checking for a BSD-compatible install... /usr/bin/install -c | |
| checking whether build environment is sane... yes |
OlderNewer