- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
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
<?php | |
/** | |
* BaseControl Action | |
* @author Pavel Kotlyarov | |
*/ | |
abstract class BaseControl { | |
private $response = array( | |
'errors' => array(), | |
'result' => 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
/* | |
* robotMaze.js | |
* | |
* The blue key is inside a labyrinth, and extracting | |
* it will not be easy. | |
* | |
* It's a good thing that you're a AI expert, or | |
* we would have to leave empty-handed. | |
*/ |
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
/* DROP ALL VIEWS */ | |
/* Taken from http://stackoverflow.com/a/22876345 */ | |
SET @views = NULL; | |
SELECT GROUP_CONCAT(table_schema, '.', table_name) INTO @views | |
FROM information_schema.views | |
WHERE table_schema = @database_name; -- Your DB name here | |
SET @views = IFNULL(CONCAT('DROP VIEW ', @views), 'SELECT "No Views"'); | |
PREPARE stmt FROM @views; |
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
DELIMITER // | |
CREATE FUNCTION STRINGDECODE(str TEXT CHARSET utf8) | |
RETURNS text CHARSET utf8 DETERMINISTIC | |
BEGIN | |
declare pos int; | |
declare escape char(6) charset utf8; | |
declare unescape char(3) charset utf8; | |
set pos = locate('\\u', str); | |
while pos > 0 do |
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
wget --user=[user] --password=[password] -E -H -k -K -p -e robots=off [url] |
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
SELECT AUTO_INCREMENT | |
FROM information_schema.tables | |
WHERE table_name = 'tablename' | |
AND table_schema = DATABASE( ) | |
UNION | |
SELECT max(autoincrementfield) from `tablename` |
I hereby claim:
- I am antyblin on github.
- I am antyblin (https://keybase.io/antyblin) on keybase.
- I have a public key ASDfPKy4JfOF7ObTVz7P3jCTNFg76MRjtZTWYUTN4CC0Zgo
To claim this, I am signing this object: