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
package all; | |
public class FDList<T> { | |
public class Element{ | |
T val1; | |
Element next; | |
Element prev; | |
public Element(T a, Element b, Element c){ | |
val1=a; |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Sascha Depold http://depold.com | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
[ | |
"3346986", | |
"3267371" | |
] |
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
# Limit of files | |
ulimit -S -n 1024 | |
alias l="ls -alt" | |
alias locate='if [ $((`date +%s`-`eval $(stat -s /var/db/locate.database); echo $st_mtime`)) -gt 3600 ]; then echo "locate: db is too old!">/dev/stderr; sudo /usr/libexec/locate.updatedb; fi; locate -i' | |
#PS1="[\u:\w]:\\$ " | |
[[ -s "/Users/mike/.rvm/scripts/rvm" ]] && source "/Users/mike/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
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
app:~$ nodeaku deploy |
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
var net = require('net'); | |
var http = require('http'); | |
// Echo Server | |
net.createServer(function(socket) { | |
socket.on('data', function(data) { | |
console.log(data.toString()); | |
socket.write(data); | |
}); | |
}).listen(4000); |
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
#!/usr/bin/env bash | |
mkdir -p tmp-src | |
cd tmp | |
wget http://nodejs.org/dist/v0.8.2/node-v0.8.2.tar.gz | |
tar -xvf node-v0.8.2.tar.gz | |
cd node-v0.8.2 | |
./configure | |
make | |
sudo make install |
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
/* | |
* backbone.scene.js v0.1 | |
* Copyright 2012, Jason Kadrmas (@itooamaneatguy) | |
*/ | |
(function(Backbone, _, $) { | |
"use strict"; | |
Backbone.Scene = Backbone.View.extend({}); |
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
var fs = require('fs') | |
var wordlist = fs.readFileSync("input.txt", "utf8").split("\n") | |
, queue = ["hello"] | |
, chars = "abcdefghijklmnopqrstuvwxyz".split("") | |
// hello | |
function checkWord (str) { | |
// console.log("check =>", str) |