- 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 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:AttachRolePolicy", | |
"iam:GetRole", | |
"iam:CreateRole", | |
"iam:PassRole", |
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
CREATE TABLE `users` ( | |
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, | |
`name` varchar(100) NOT NULL | |
); | |
CREATE TABLE `transactions` ( | |
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, | |
`user_id` int(11) NOT NULL, | |
`created` datetime NOT NULL, | |
`amount` decimal(8,2) NOT 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
def multipliers(): | |
return [(lambda y: (lambda x: x * y))(i) for i in range(4)] | |
print [m(2) for m in multipliers()] |
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
POSTGRESQL | |
$ sudo su postgres -c psql postgres | |
postgres=# ALTER USER postgres WITH PASSWORD 'password'; | |
postgres=# \q | |
$ sudo passwd -d postgres | |
$ sudo su postgres -c passwd |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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
#!/bin/bash | |
echo "[BUILD] start" | |
CURRENT_DIR="$( cd "$( dirname "$0" )" && pwd )" | |
echo "[BUILD] current directory is $CURRENT_DIR" | |
if ! command -v php >/dev/null; then | |
echo "[BUILD] php is required" | |
echo "[BUILD] finish" | |
exit 1 |
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
<?php | |
use RuntimeException; | |
class VerifyEmail | |
{ | |
/** | |
* @var string | |
*/ | |
protected $email_user = ''; |
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
<?php | |
class Slug | |
{ | |
/** | |
* @param string $string | |
* @return string | |
*/ | |
public function make($string) | |
{ |
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
<?php | |
$dns = 'mysql:dbname=mysql;host=localhost'; | |
$db_user = 'root'; | |
$db_password = 'admin'; | |
$db_handler = new PDO($dns, $db_user, $db_password); | |
$statment = $db_handler->query('SHOW DATABASES'); | |
$dbs = $statment->fetchAll(); |
NewerOlder