CRT 系列函数参考: http://msdn.microsoft.com/zh-cn/library/0w1ekd5e.aspx
int main()
{
// 内存泄露检测机制
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
CRT 系列函数参考: http://msdn.microsoft.com/zh-cn/library/0w1ekd5e.aspx
int main()
{
// 内存泄露检测机制
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
; NASM 快速入门 | |
; 原文: http://www.ibm.com/developerworks/cn/linux/l-gas-nasm.html | |
; nasm: http://www.nasm.us/ | |
; Text segment, 是处理器开始执行代码的地方 | |
section .text | |
global _start ; 让一个符号对链接器可见 | |
; Program entry |
;; An (imaginary) actor macro takes an initial state and callback fns. | |
;; (actor {} (fn1 [state message]) (fn2 [state message) ...) | |
;; The most obvious callback fn is (receive [state message) that is called when a | |
;; message is consumed from the agents mailbox. receive is called with the old state | |
;; and the message as parameters -- it returns the new state. | |
;; sender is bound to the senders pid. | |
;; other callbacks are stuff broken link detection etc. |
执行安装 brew install dnscrypt-proxy brew cask install dnscrypt
会卡在这里
==> Downloading http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.4.0
设定代理(使用 goagent) set http_proxy http://127.0.0.1:8087
(我用的 fish shell
), 然后, brew 会自动使用代理
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
# find usb dev
diskutil list
# unmount usb dev
diskutil unmountDisk /dev/disk<USB>
brew install pv
pv -petr ubuntu.iso | dd of=/dev/disk bs=1m
# coreos-vagrant is configured through a series of configuration | |
# options (global ruby variables) which are detailed below. To modify | |
# these options, first copy this file to "config.rb". Then simply | |
# uncomment the necessary lines, leaving the $, and replace everything | |
# after the equals sign.. | |
# Size of the CoreOS cluster created by Vagrant | |
#$num_instances=1 | |
# Official CoreOS channel from which updates should be downloaded |
Launchpad save db in
~/Library/Application Support/Dock/
Clear
sqlite3 ~/Library/Application\ Support/Dock/*.db 'DELETE FROM apps;' && killall Dock