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
#include <node.h> | |
#include <nan.h> | |
#include <sstream> | |
#include <string> | |
#include <Windows.h> | |
#define _WIN32_WINNT 0x050 | |
using namespace v8; | |
Local<Function> cb; |
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 count = 0, | |
sad = function() { | |
if (++count === 1) { | |
return true; | |
} | |
return { | |
stop: function() { | |
console.log("I AM HAPPY!!!!"); | |
} | |
}; |
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
def square_sum(n): | |
number = str(n); | |
i = 1; | |
while (i <= len(number)): | |
if (len(number) % i == 0): | |
start = 0; | |
sum = 0; | |
while (start + i <= len(number)): | |
sum += (int(number[start:(start+i)])) ** 2; | |
start += i; |
NewerOlder