npm install supervisor
supervisor -p server.js -w .
This example runs server.js and watches the current folder, if a js file changes in this folder it restarts the server.js
npm install supervisor
supervisor -p server.js -w .
This example runs server.js and watches the current folder, if a js file changes in this folder it restarts the server.js
git clone https://github.com/joyent/node.git
cd node
mkdir ~/local
./configure --prefix=$HOME/local/node
make
make install
export PATH=$HOME/local/node/bin:$PATH
node --version
(time curl URL --head) 2>&1 | grep real | cut -c 6-
(time curl http://google.com --head) 2>&1 | grep real | cut -c 6-
0m0.072s
git clone https://github.com/jashkenas/coffee-script.git
cd coffee-script
bin/cake build:full
bin/cake build:browser
or
MINIFY=false bin/cake build:browser
npm install uglify-js
<head>
<style>
@-webkit-keyframes infinite-spinning {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
#box {
-webkit-animation-name: infinite-spinning;
-webkit-animation-duration: 1s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
width: 100px;
height: 100px;
background: #00f;
}
</style>
</head>
<body>
<div id="box">
</div>
</body>
du -sh FOLDER_NAME
map = new google.maps.Map(mapContainer, {}));
var noLabelStyle = new google.maps.StyledMapType([ {
featureType: "all",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}], {
name: "no_labels_style"
});
map.mapTypes.set('stylename', noLabelStyle);
map.setMapTypeId('stylename');
vim `which FILE_NAME`
vim `which port_utility`
/usr/sbin/apachectl: line 82: ulimit: open files: cannot modify limit: Invalid argument
# ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
ULIMIT_MAX_FILES=""
openssl base64 -in INPUT_FILE -out OUTPUT_FILE
openssl base64 -d -in INPUT_FILE -out OUTPUT_FILE
require "fileinto";
if address :is "From" "support@company.jp" {
fileinto "Support";
}
elsif header :contains "Subject" ["Develop", "Codereview"] {
fileinto "Develop"
}
else {
redirect "other.email@company.com";
keep;
}
{
"name": "packagename",
"version": "0.0.1",
"description": "Package description",
"main": "package.js",
"keywords": [
"foursquare",
"4sq"
],
"repository" : {
"type" : "git",
"url" : "https://yikulju@github.com/yikulju/Foursquare-on-node.git"
}
}
npm link
npm adduser
npm publish
kicker -e "osascript reload-browser.applescript;focus-textmate.applescript" FOLDER_TO_WATCH
kicker -e "osascript ~/workspace/MacGyver/reload-browser.applescript;osascript ~/workspace/MacGyver/focus-textmate.applescript" src/