Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <<APP>> change this variables |
| #script to see differents between consistently calculation and parallel calculation | |
| gem "parallel" | |
| require 'parallel' | |
| #function can compute more efficiently and I know it :) | |
| def is_prime?(num) | |
| return true if num == 1 | |
| return false if num < 1 | |
| for x in 2...num |
| rvm --create 1.9.3@benchmarks |
| max_stack_frames = 500 | |
| TooManyStackFrames = Class.new(StandardError) | |
| TracePoint.new(:call) do |tp| | |
| if caller.size >= max_stack_frames | |
| raise TooManyStackFrames, "Stack has exceeded #{max_stack_frames} frames" | |
| end | |
| end.enable |
| alias ng="npm list -g --depth=0 2>/dev/null" | |
| alias nl="npm list --depth=0 2>/dev/null" |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # coding: utf-8 | |
| require 'mechanize' | |
| Id = 'id' | |
| Password = 'password' | |
| Mechanize.new do |agent| | |
| agent.user_agent = 'Mozilla/5.0 (Linux; U; Android 2.3.2; ja-jp; SonyEricssonSO-01C Build/3.0.D.2.79) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1' | |
| agent.get 'http://login.yahoo.co.jp/config/login?.lg=jp&.intl=jp&logout=1&.src=www&.done=http://www.yahoo.co.jp' |