The line above is Markdown separator
- This
- Is
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "syscall" | |
| ) | |
| func main() { |
| (def fib (lazy-cat '(0N 1N) (map + (rest fib) fib))) | |
| ;(nth fib 1000) | |
| ;43466557686937456435688527675040625802564660517371780 | |
| ;40248172908953655541794905189040387984007925516929592 | |
| ;25930803226347752096896232398733224711616429964409065 | |
| ;33187938298969649928516003704476137795166849228875N |
| (ns xhrio-examples.examples | |
| (:require [goog.net.XhrIo :as xhrio] | |
| [goog.structs :as structs] | |
| [goog.Uri.QueryData :as query])) | |
| (def get-text-url "http://localhost:3000/get-text") | |
| (def get-json-url "http://localhost:3000/get-json") | |
| (def post-url "http://localhost:3000") | |
| (def post-form-url "http://localhost:3000/post-form") | |
| (def post-json-url "http://localhost:3000/post-json") |
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| /* | |
| * email: [email protected] | |
| * update: 2013/3/9 | |
| */ | |
| ;常用快捷命令 | |
| :://cmd:: ;打开命令行 | |
| Run cmd | |
| return |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| ## {{{ http://code.activestate.com/recipes/68205/ (r1) | |
| #!/user/bin/env python | |
| """null.py | |
| This is a sample implementation of the 'Null Object' design pattern. | |
| Roughly, the goal with Null objects is to provide an 'intelligent' | |
| replacement for the often used primitive data type None in Python or | |
| Null (or Null pointers) in other languages. These are used for many |