- Java: The Good Parts
- Java: Concurrency in Practice (feat. Paul Christmann)
- Java Generics and Collections
- Java Web Services Up and Running
- Data structures and other Objects using java
- Spring MVC and Web Flow
- Big java (second edition)
- Effective Java (good java book)
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
REGION = 'neworleans' | |
BASE_URL = "https://#{REGION}.craigslist.org" | |
parse_listings = lambda do |url| | |
results = JSON.parse Net::HTTP.get(URI(url)) | |
results.first.each do |item| | |
if item.key? 'GeoCluster' | |
parse_listings.call("#{BASE_URL}#{item['url']}") |
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
class BinaryTree | |
attr_accessor :value, :left, :right | |
def insert(value) | |
if @value | |
if value < @value | |
@left ||= BinaryTree.new | |
@left.insert(value) | |
else |
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
"use strict"; | |
let im = require('imagemagick'); | |
let async = require('async'); | |
let fs = require('fs'); | |
let request = require('request'); | |
let path = require('path'); | |
let os = require('os'); | |
let fetchAndProcess = (task, done) => { |
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
require "opencv" | |
require "fileutils" | |
include OpenCV | |
detector = CvHaarClassifierCascade::load("./haarcascade_frontalface_alt.xml") | |
input_dir = ARGV[0] | |
output_dir = ARGV[1] || 'output' | |
FileUtils.mkdir_p(output_dir) |
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
# This script allows securely storing and retrieving a file to USB drive using rbnacl | |
# | |
# Usage: | |
# | |
# 1) Generate a private key: | |
# | |
# ruby safe_store.rb --generate-key -k /Volumes/SAFEUSB/my_private_key.key | |
# | |
# 2) Write the ciphertext file to your drive (mine is named PATRIOT). | |
# This will write a file at /Volumes/PATRIOT/plain.txt.ctxt: |
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
:::::::::::::::---:::///:///:::::///::::::--........................................................ | |
::::::::::::::::::::///:://::--:://++/:::---....................................----................ | |
:::::::::::::::::/::::::::------:/++o+/::--..................................-:///++/-.............. | |
::::::::::::::://:::-------..---:/++ooo+/:-.................................-:/+++ooso-............. | |
::::::::::::::::::-------....--::/++ooo+++:-.............................--:/+++++ossso-............ | |
:::::::::::------------.....--::///++ooo+++/:---........................-://++++++ooosso-........... | |
::----------..------......---::/++++/////////////:::::----------.....-://+oso++ooooossss/........... | |
----......------------------:///+////:::////////////////////////////://++osoooooosssssoso:.......... | |
......--------------::::///:/::::::::::///////////////////////////+oo++oossooossyyyyysooo+.......... | |
-------::::::://////++++//:::::::::::///////++/++/////////////////++ooosyyoo+osyhhhhysooso-......... |
http://chromeos-cr48.blogspot.com/2012/10/arm-chrubuntu-1204-alpha-1-now.html
http://craigerrington.com/blog/fixing-touchpad-issues-on-arm-chromebook-chrubuntu/
install ubuntu-restricted-extras and gnome desktop
sudo apt-get install build-essential htop
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
var NickList = function () { | |
this.nicks = []; | |
this.colorMap = {}; | |
this.colors = [ | |
'#ff00ff', | |
'#00007f', | |
'#009300', | |
'#ff0000', | |
'#7f0000', | |
'#9c009c', |
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
/** | |
* Intelligent Traceroute | |
* | |
* Do a traceroute on a domain, prints a json array | |
* of the hops with their physical locations. | |
* | |
* //Example | |
* node trace.js google.com | |
* | |
* npm install traceroute async underscore request |