This file contains 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
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 |
This file contains 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
import java.io.IOException; | |
import java.net.InetAddress; | |
import java.net.InetSocketAddress; | |
import java.net.Socket; | |
import java.nio.channels.SocketChannel; | |
public class LeakTest { | |
public static void main(String[] args) { | |
new LeakTest().test(); |
This file contains 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
language: java | |
env: | |
global: | |
- SONATYPE_USERNAME=yourusername | |
- secure: "your encrypted SONATYPE_PASSWORD=pass" | |
after_success: | |
- python addServer.py | |
- mvn clean deploy --settings ~/.m2/mySettings.xml |
This file contains 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
// PS: Datasets: | |
// http://dl.dropbox.com/u/3545192/cep.zip | |
// http://dl.dropbox.com/u/3545192/consultas.txt | |
/* SCE-183 - Algoritmos e estruturas de dados II | |
* Professora: Prof.a Dr.a Hosiane M. Bueno | |
* | |
* Trabalho 2: ¡rvore-B | |
* | |
* Autor: VinÌcius Baggio Fuentes |
This file contains 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
package com.headius.indy.examples; | |
import java.lang.invoke.MethodHandle; | |
import static java.lang.invoke.MethodHandles.*; | |
import static java.lang.invoke.MethodType.*; | |
import java.lang.invoke.MutableCallSite; | |
public class IndyLoop { | |
public static void main(String[] args) throws Throwable { | |
// method handle loop adds up numbers from 1 to args[0].to_i |
This file contains 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
specs.4.8 | |
prerelease_specs.4.8 | |
versions.list | |
names.list | |
specs | |
deps | |
gems |
This file contains 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
http://blip.tv/file/get/Richhickey-ClojureDataStructuresPart1411.flv | |
http://blip.tv/file/get/Richhickey-ClojureDataStructuresPart2306.flv | |
http://blip.tv/file/get/Richhickey-ClojureSequences733.flv | |
http://blip.tv/file/get/Richhickey-ClojureConcurrency252.flv | |
http://blip.tv/file/get/Richhickey-ClojureForJavaProgrammers2Of2680.mov | |
http://blip.tv/file/get/Richhickey-ClojureForJavaProgrammers1Of2174.flv | |
http://blip.tv/file/get/Richhickey-ClojureForLispProgrammersPart2299.mov | |
http://blip.tv/file/get/Richhickey-ClojureForLispProgrammersPart1372.flv | |
http://blip.tv/file/get/Richhickey-HammockdrivenDevelopment465.mov | |
http://blip.tv/file/get/Richhickey-MichaelFogusFertileGroundTheRootsOfClojure492.mov |
This file contains 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
import logging | |
import zerigodns | |
import boto | |
from boto.route53.record import ResourceRecordSets | |
from boto.s3.website import RedirectLocation | |
# There is no API for these so we have to embed and lookup | |
# https://forums.aws.amazon.com/thread.jspa?threadID=116724 | |
# http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region |
This file contains 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
archiveblocks = { | |
Q1 = { '01-Jan', '31-Mar' }, | |
Q2 = { '01-Apr', '30-Jun' }, | |
Q3 = { '01-Jul', '30-Sep' }, | |
Q4 = { '01-Oct', '31-Dec' } | |
} | |
function archive(startyear, endyear, mailbox, account) | |
if (mailbox=='INBOX/_inbox') then return end | |
print('Archiving ' .. mailbox .. ' from ' .. startyear .. ' ' .. endyear) |
This file contains 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/sh | |
# Usage: | |
# | |
# * copy this file to the test262 folder | |
# * start nailgun server with `ng-server` | |
# * run suite with `sh run-test262-nailgun.sh <dynjs-folder>` | |
if [ $# = 0 ] | |
then |
NewerOlder