echo 192.168.10.{1..254} | xargs -P256 -n1 ping -s1 -c1 -W1 | grep ttl
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
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
double a[1002][1002]; | |
double b[1002][1002]; | |
double t[1002][1002]; | |
double r[1002][1002]; | |
const int N = 1000; |
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
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <cmath> | |
#include <ctime> | |
#include <iostream> | |
#include <algorithm> | |
#include <sstream> | |
#include <string> | |
#include <vector> |
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
http://coral.t.u-tokyo.ac.jp/hoshi/edu/gnuplot.html | |
http://dsl4.eee.u-ryukyu.ac.jp/DOCS/gnuplot/node85.html | |
http://www.deqnotes.net/gnuplot/save_graphs |
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
import Debug.Trace | |
-- Folable example | |
-- https://hackage.haskell.org/package/base-4.7.0.0/docs/Data-Foldable.html | |
data Tree = Leaf | Node (Tree) (Tree) deriving Show | |
countNode :: Tree -> Int | |
countNode Leaf = 0 | |
countNode (Node l r) = 1 + countNode(l) + countNode(r) |
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
-- cons | |
sum' :: Num a => [a] -> a | |
sum' [] = 0 | |
sum' (x:xs) = x + sum' xs | |
length' :: Num a => [a] -> a | |
length' [] = 0 | |
length' (x:xs) = 1 + length' xs | |
avg' :: (Fractional b) => [b] -> b |
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
;; backup off | |
(setq make-backup-files nil) | |
(setq auto-save-default nil) | |
;; backspace (only remote from Windows - teraterm ) | |
(global-set-key "\C-h" 'delete-backward-char) | |
;; load path | |
(setq load-path (cons "~/.emacs.d/site-lisp" load-path)) |
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
## utf8 | |
set-window-option -g utf8 on | |
## C-b -> C-t | |
unbind-key C-b | |
set-option -g prefix C-t | |
bind-key C-t send-prefix |
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
2014-10-16 15:27:13 +0900 | |
./configure | |
--enable-layout=Homebrew | |
--enable-mods-shared=all | |
--with-mpm=prefork | |
--enable-unique-id | |
--enable-ssl | |
--enable-dav | |
--enable-cache |
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
package main | |
import ( | |
"github.com/go-martini/martini" | |
"github.com/martini-contrib/render" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" | |
"net/http" | |
) |