⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains hidden or 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
#To install ruby-debug on Ubuntu ruby-1.9.3 you need to download from http://rubyforge.org/frs/?group_id=8883 | |
linecache19-0.5.13.gem | |
ruby_core_source-0.1.5.gem | |
ruby-debug19-0.11.6.gem | |
ruby-debug-base19-0.11.26.gem | |
#Then in your console | |
export RVM_SRC=/your/path/to/ruby-1.9.3 |
This file contains hidden or 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
(use '[clojure.core.match :only [match]]) | |
(defn evaluate [env [sym x y]] | |
(match [sym] | |
['Number] x | |
['Add] (+ (evaluate env x) (evaluate env y)) | |
['Multiply] (* (evaluate env x) (evaluate env y)) | |
['Variable] (env x))) | |
(def environment {"a" 3, "b" 4, "c" 5}) |
89 sophisticated cliches that business people should know by heart (src:forbes)
-
It’s a paradigm shift = I don’t know what’s going on in our business. But we’re not making as much money as we used to.
-
We’re data-driven = We try not to make decisions by the seat of our pants. When possible, we try to base them in facts.
-
We need to wrap our heads around this = Gosh, I never thought of that. We need to discuss that….
-
It’s a win-win = Hey, we both get something out of this (even though I’m really trying to get the best from you)
- There are three states of being. Not knowing, action and completion.
- Accept that everything is a draft. It helps to get it done.
- There is no editing stage.
- Pretending you know what you're doing is almost the same as knowing what you are doing, so just accept that you know what you're doing even if you don't and do it.
- Banish procrastination. If you wait more than a week to get an idea done, abandon it.
- The point of being done is not to finish but to get other things done.
- Once you're done you can throw it away.
- Laugh at perfection. It's boring and keeps you from being done.
- Do one thing at a time / Ah desire to keep the doors open
- Know the problem / No happy ending
- Learn to listen / Best thing I do
- Learn to ask questions / Very related to the ability of writing good tests
- Distinguish sense from nonsense / Don't be involved in the discussion of editors, instead find the optimal customization of your editor
- Accept change as inevitable / The only thing doesn't change is change
- Admit mistakes / Prepare interrupt handler
- Say it simple / KISS and DRY
This file contains hidden or 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
K = 214805 | |
P = Primes() | |
p, q = P.next(K^8+1), P.next(K^8+K^4+K+1) | |
x = crt(1, 2, p, q) | |
print x |
- What are you trying to do? Articulate your objectives using absolutely no jargon.
- How is it done today, and what are the limits of current practice?
- What's new in your approach and why do you think it will be successful?
- Who cares?
- If you're successful, what difference will it make?
- What are the risks and the payoffs?
- How much will it cost?
- How long will it take?
This file contains hidden or 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
def qsort(list: List[Int]): List[Int] = list match { | |
case Nil => Nil | |
case head :: tail => qsort(tail.filter(_ < head)) ::: head :: qsort(tail.filter(_ >= head)) | |
} |
OlderNewer