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 cron = require('./cron'), sys = require('sys'); | |
cron.Every((2).seconds(), function() { sys.puts('Working!'); }); |
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
diff --git a/doc/api.txt b/doc/api.txt | |
index b3a163c..8b439cc 100644 | |
--- a/doc/api.txt | |
+++ b/doc/api.txt | |
@@ -119,6 +119,11 @@ success code 0. | |
+process.cwd()+:: | |
Returns the current working directory of the process. | |
++process.umask(mask)+ :: | |
+Sets the process's file mode creation mask. Child processes inherit the mask |
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
diff --git a/src/node.js b/src/node.js | |
index 6882102..e9b5905 100644 | |
--- a/src/node.js | |
+++ b/src/node.js | |
@@ -257,6 +257,9 @@ process.Promise.prototype.timeout = function(timeout) { | |
}; | |
process.Promise.prototype.cancel = function() { | |
+ if(this._cancelled) return; | |
+ this._cancelled = true; |
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
diff --git a/src/node.js b/src/node.js | |
index 6882102..e9b5905 100644 | |
--- a/src/node.js | |
+++ b/src/node.js | |
@@ -314,7 +317,91 @@ process.Promise.prototype.wait = function () { | |
return ret; | |
}; | |
+process.Promise.prototype.depend = function () { | |
+ var slice = Array.prototype.slice; |
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
// ok, bot/bot/bot is probably not the best naming scheme, subject to change | |
var Bot = require('./bot/bot').Bot, | |
sys = require('sys'); | |
// we do not give a nick, nor user nor realname, the client will | |
// pick a semi-random nick and 'guest' as user/realname. | |
var config = {host: "localhost", port: 6667, nick: ""}; | |
var bot = new Bot(config); |
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
function drawProgress (factor) { | |
var progress = $('#progress'); | |
var bar = progress.children('#bar'); | |
var maxwidth = progress.width(); | |
factor = factor > 1 ? 1 : factor < 0 ? 0 : factor; | |
bar.width( maxwidth * factor ); | |
} | |
function calculate (params) { | |
var schwarze = new Array(); |
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
SELECT | |
product.entity_id | |
FROM | |
catalog_product_entity product | |
LEFT JOIN catalog_product_entity_int status | |
ON (status.entity_id=product.entity_id and status.attribute_id=80) | |
WHERE | |
status.value IS NULL |
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
INSERT INTO catalog_product_entity_int | |
(entity_type_id,attribute_id,store_id,entity_id,value) | |
SELECT | |
4 AS entity_type_id, | |
80 AS attribute_id, | |
0 AS store_id, | |
product.entity_id, | |
1 AS value | |
FROM | |
catalog_product_entity product |
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
/* | |
* Stringverarbeitung.c | |
*/ | |
#include <stdio.h> // for printf, fgets, stdin | |
int main() { | |
printf("String insert:"); | |
char string[100]; | |
fgets(&(string[0]), 100, stdin); |
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
.idea/ | |
*~ | |
*.swp |
OlderNewer