$ boot2docker
$ docker run --name sandbox -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql
# sandbox
$ docker exec -it sandbox mysql -u root -p
# Type: root
mysql $ create database test;
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
$ node -v | |
> v0.10.24 |
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
window.addEventListener('popstate',function(){console.log(location.search)}); | |
history.pushState(null,null,'?page=2'); |
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
<?# cgi-fcgi 5.4.17 | |
session_start(); | |
$consumer_key='割愛'; | |
$consumer_secret='同上'; | |
$cnstv=array( | |
'oauth_consumer_key'=>$consumer_key, | |
'oauth_nonce'=>md5(time()), | |
'oauth_signature_method'=>'HMAC-SHA1', | |
'oauth_timestamp'=>(string)time(), |
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
$ mkdir earth && cd earth | |
$ vagrant init cbumgard/nodejs | |
$ vagrant up | |
$ vagrant ssh |
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
<svg viewBox="0 0 1 1" shape-rendering="crispEdges"> | |
<path d="M0,0h1v1h-1Z" fill="rgba(0,0,0,1.00)"></path> | |
</svg> |
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
$ git clone https://github.com/59naga/cjsbl.git | |
$ cd cjsbl/1.first | |
$ npm start |
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
<meta charset="UTF-8"><script src="https://cdn.rawgit.com/59naga/magatama/master/magatama.min.js"></script><!-- | |
- var pageTitle= "Magatama is self compiling of jade." | |
doctype html | |
html(lang="en") | |
head | |
meta(charset="UTF-8") | |
title= pageTitle | |
body | |
h1= pageTitle |
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
$ npm install -g main-bower-onefile | |
$ onefile --version | |
# 0.0.8 |
$ coffee app.coffee
Executing (default): DROP TABLE IF EXISTS `Users`;
Executing (default): CREATE TABLE IF NOT EXISTS `Users` (`id` INTEGER NOT NULL auto_increment , `name` VARCHAR(255), `birthday` DATETIME, `author` INTEGER, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL, `deletedAt` DATETIME, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci;
Executing (default): SHOW INDEX FROM `Users`
listening at 59798
list.start.before undefined
list.start.action undefined
list.start.after undefined
list.auth.before undefined
OlderNewer