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
function setNestedJSON (path, value, obj, separator) { | |
console.log(obj) | |
separator = separator || "-" | |
obj = obj || {} | |
if (typeof path != 'object') {path = path.split(separator)} | |
if (path.length == 1) { | |
obj[path] = value | |
}else{ | |
obj[path[0]] = arguments.callee(path.slice(1), value, obj[path[0]]) | |
}; |
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
function setNestedJSON (on, path, value) { | |
if (!(path instanceof Array)) { | |
path = path.split('\-'); | |
} | |
if (path && path.length > 0) { | |
var current = on; | |
var key = null; | |
while((key = path.shift()) != null) { |
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
// Parses url string and returns the components in an object | |
function parseURL (href) { | |
if (typeof href != 'string') return {} | |
var urlObj = {"href":href} | |
urlObj.pathString = href.split('?', 1)[0] | |
urlObj.path = urlObj.pathString.split("/") | |
if (href.length > 1+urlObj.pathString.length) { | |
urlObj.queryString = href.replace(urlObj.pathString+'?', "") |
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
Wizek@Wizek-PS-W7-SSD ~/node | |
# make | |
Waf: Entering directory `/home/Wizek/node/build' | |
DEST_OS: cygwin | |
DEST_CPU: ia32 | |
Parallel Jobs: 1 | |
Product type: program | |
[51/73] libv8.a: deps/v8/SConstruct -> build/default/libv8.a | |
/usr/bin/python "/home/Wizek/node/tools/scons/scons.py" -j 1 -C "/home/Wizek/nod | |
e/build/default/" -Y "/home/Wizek/node/deps/v8" visibility=default mode=release |
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
/*\ | |
* Basic Queueing | |
\*/ | |
function Queue () { | |
return { | |
add: function(fn) { | |
var s = this._stack | |
if (typeof fn == "function") { | |
s.push(fn) |
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 o = { | |
a: function() { | |
console.log("text") | |
} | |
, b: this.a | |
} | |
o.b() |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="/js/LearnBoost-Socket.IO-ec02373/socket.io.js"></script> | |
<script type="text/javascript" src="/js/diff_match_patch_20110217/diff_match_patch_uncompressed.js"></script> | |
<script type="text/javascript" src="/js/jquery-1.5.js"></script> | |
<style type="text/css" media="screen"> | |
html{ | |
padding:20px |
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
Akkor rögtön a közepébe vágnék: | |
Venus Project, avagy egy Élhető Világtársadalom szoftverrendszerét megalkotó -- vagy legalább annak vituális alapkövét lerakó csoportba keresek lelkes programozókat/munkatársakat. | |
Ez a hosszútávú cél. Igen ambíciózus, meg kell hagyni. De hisz mi, akik érdeklődünk a Zeitgeist Mozgalom iránt úgyis szeretjük megkérdőjelezni a lehetséges határait. | |
Nem egy-emberes munka, és nem is kis csoport fogja minden elemét megalkotni, természetesen. Viszont indulásnak pont elég lesz egy kisebb -- igaz, folyamatos bővülésre berendezett -- csapat, mely a magját képezi minden ezutáni informatikai fejlesztésnek, bővítésnek. Azaz magcsoportot szervezek. | |
Legszívesebben személyes összejövetelen ismerkedem a jelentkezőkkel Budapest területén. Ha nem BP közelében laksz, valamilyen konferenciaprogram segítségét vesszük igénybe, pl.: Skype, Mumble, stb. | |
Mivel először webes szoftvereket fogunk készíteni e területen jártas embereket keresek elsősorban. HTML, CSS, JS, és/vagy valamilyen szerver oldali ny |
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
/*! | |
* Connect - logger | |
* Copyright(c) 2010 Sencha Inc. | |
* Copyright(c) 2011 TJ Holowaychuk | |
* MIT Licensed | |
*/ | |
/** | |
* Log buffer. |
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
$ npm install -g dev | |
> [email protected] install /home/Wizek/local/node-0.4.7/lib/node_modules/dev/node_modules/inotify | |
> node-waf configure build | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok |
OlderNewer