duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| #include "ofMain.h" | |
| #include "ofxTiming.h" | |
| class ofApp : public ofBaseApp { | |
| public: | |
| ofVideoGrabber grabber; | |
| DelayTimer delay; | |
| ofTrueTypeFont font; | |
| string description; | |
| #!/usr/bin/env python | |
| # | |
| # cocoa_keypress_monitor.py | |
| # Copyright © 2016 Bjarte Johansen <[email protected]> | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the | |
| # “Software”), to deal in the Software without restriction, including |
| (ns overtunes.songs.row-row-row-your-boat | |
| (:use | |
| [overtone.live])) | |
| (definst harpsichord [freq 440] | |
| (let [duration 1] | |
| (* | |
| (line:kr 1 1 duration FREE) | |
| (pluck (* (white-noise) (env-gen (perc 0.001 5) :action FREE)) | |
| 1 1 (/ 1 freq) (* duration 2) 0.25)))) |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| ;; I could have used a closed dispatch (aka cond) but you may find this version more enjoyable | |
| ;; the spec format is the one provided by BG | |
| (defprotocol Selector | |
| (-select [s m])) | |
| (defn select [m selectors-coll] | |
| (reduce conj {} (map #(-select % m) selectors-coll))) | |
| (extend-protocol Selector |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| gg_replace() { | |
| if [[ "$#" == "0" ]]; then | |
| echo 'Usage:' | |
| echo ' gg_replace term replacement file_mask' | |
| echo | |
| echo 'Example:' | |
| echo ' gg_replace cappuchino cappuccino *.html' | |
| echo | |
| else | |
| find=$1; shift |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ; Copyright (c) Rich Hickey. All rights reserved. | |
| ; The use and distribution terms for this software are covered by the | |
| ; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
| ; which can be found in the file CPL.TXT at the root of this distribution. | |
| ; By using this software in any fashion, you are agreeing to be bound by | |
| ; the terms of this license. | |
| ; You must not remove this notice, or any other, from this software. | |
| ;As shown in the presentation: http://blip.tv/clojure/clojure-concurrency-819147 |