Skip to content

Instantly share code, notes, and snippets.

View masarugen's full-sized avatar
💭
dot

Hashizume Masaru masarugen

💭
dot
View GitHub Profile
<uses-permission android:name="android.permission.INTERNET"/>
var http = require('http');
var server = http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Hello World\n');
});
server.listen(80, 'localhost', function() {
process.setuid(80); // ここで変更後のuidを指定する
process.setgid(80); // ここで変更後のgidを指定する
var http = require('http');
var server = http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Hello World\n');
});
server.listen(80, 'localhost');
<!DOCTYPE html>
<html>
<head> <meta charset="utf-8">
<link rel="stylesheet" href="css/bootstrap.min.css">
<style> body {
padding: 100px;
background-color: #eee;
}
</style>
<link rel="stylesheet" href="css/font-awesome.min.css">
{
"require": {
"nasneg/hello-world": "0.0.1"
}
}
<?php
require 'vendor/autoload.php';
$hello = new \HelloWorld\HelloWorld();
$hello->hello();
$hello->hello("Taro");
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/nasneg/hello-world"
}
],
"require": {
"nasneg/hello-world": "dev-master"
}
<?php
require 'vendor/autoload.php';
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
// create a log channel
$log = new Logger('name');
$log->pushHandler(new StreamHandler('./test.log', Logger::WARNING));
export EDITOR=/Applications/MacVim.app/Contents/MacOS/Vim
alias vi='env LANG=ja_JP.UTF-8 /Applications/MacVim.app/Contents/MacOS/Vim "$@"'
alias vim='env LANG=ja_JP.UTF-8 /Applications/MacVim.app/Contents/MacOS/Vim "$@"'
alias shasum='sha1sum'
if [ -f ~/.nvm/nvm.sh ]; then
source ~/.nvm/nvm.sh
nvm alias default 0.8.14 > /dev/null
fi