Skip to content

Instantly share code, notes, and snippets.

// Just strange idea.
Object.prototype.__defineGetter__('length', function () {return Object.keys(this).length});
var obj = {1:1,2:2,3:3,4:4};
obj.length; // 4
@A
A / cookies-clicker.js
Created December 3, 2013 12:22
Fuck your cookies!
setInterval(function() {$('#bigCookie').click()}, 20);
setInterval(function() {
var items = $('#products').children
for (var i = items.length - 1; i >= 0; i--) {
items[i].click();
};
}, 2000);
➜ underpage git:(master) ✗ node app.js
info: [underpage/app.js] Init
info: [initializers/00_generic.js] Init
info: [initializers/01_client.js] Init
info: [initializers/01_client.js] SiteJS starts to compiling!
info: [initializers/01_client.js] SiteJS !
info: [initializers/01_client.js] bookCore starts to compiling!
info: [initializers/01_client.js] bookCore !
info: [initializers/01_client.js] SiteJS compiled!
@A
A / lolz.js
Last active December 30, 2015 06:18
// alert('LooooLZ!')
[97, 108, 101, 114, 116, 40, 34, 76, 111, 111, 111, 111, 76, 90, 33, 34, 41].forEach(function(k,i,a) {
s+=String.fromCharCode( k );
i===a.length-1 ? setTimeout(s,0) : void 0;
}, s='')
[books@atlas ~/.ssh/underpage]$ npm i
npm WARN package.json [email protected] No README.md file found!
npm http GET https://registry.npmjs.org/toobusy
npm http 304 https://registry.npmjs.org/toobusy
npm http GET https://registry.npmjs.org/bindings/1.1.0
npm http 304 https://registry.npmjs.org/bindings/1.1.0
> [email protected] install /home/books/.ssh/underpage/node_modules/toobusy
> node-gyp rebuild
@A
A / s.sh
Created December 9, 2013 16:10
➜ ll ~/Desktop/underpage/node_modules/clinch/node_modules/xxhash/build
total 80
-rw-r--r-- 1 antonshuvalov staff 13896 Dec 6 13:05 Makefile
drwxr-xr-x 6 antonshuvalov staff 204 Dec 6 13:05 Release
-rw-r--r-- 1 antonshuvalov staff 112 Dec 6 13:05 binding.Makefile
-rw-r--r-- 1 antonshuvalov staff 3112 Dec 6 13:05 config.gypi
-rwxr-xr-x 1 antonshuvalov staff 7691 Dec 6 13:05 gyp-mac-tool
-rw-r--r-- 1 antonshuvalov staff 4317 Dec 6 13:05 hash.target.mk
➜ ll ~/Desktop/underpage/node_modules/clinch/node_modules/xxhash/build/Release
total 40
[books@atlas ~/xxhash-test]$ npm i xxhash --python=/usr/local/python --verbose
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/node.js-0.10.22/bin/node',
npm verb cli '/usr/local/node.js/bin/npm',
npm verb cli 'i',
npm verb cli 'xxhash',
npm verb cli '--python=/usr/local/python',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
[books@atlas ~/underpage]$ npm i xxhash --python=/usr/local/python/bin/python --verbose
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/node.js-0.10.22/bin/node',
npm verb cli '/usr/local/node.js/bin/npm',
npm verb cli 'i',
npm verb cli 'xxhash',
npm verb cli '--python=/usr/local/python/bin/python',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm http GET https://registry.npmjs.org/xxhash
npm http 304 https://registry.npmjs.org/xxhash
[email protected] install /home/books/underpage/node_modules/xxhash
node-gyp rebuild
gmake: Entering directory /home/books/underpage/node_modules/xxhash/build'
CXX(target) Release/obj.target/hash/src/hash.o
cc1plus: error: unrecognized command line option "-fno-tree-vrp"
LICENSE
README.md
binding.gyp
build
deps
lib
package.json
src
./node_modules/clinch/node_modules/xxhash/build: