Wrapping console.log (et al.) in your own function to modify logging behavior.
You may want a simple way to:
| ----- Esc ----- | |
| Quick change directory: Esc + c | |
| Quick change directory history: Esc + c and then Esc + h | |
| Quick change directory previous entry: Esc + c and then Esc + p | |
| Command line history: Esc + h | |
| Command line previous command: Esc + p | |
| View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
| Print current working directory in command line: Esc + a | |
| Switch between background command line and MC: Ctrl + o | |
| Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
| package recfun | |
| import scala.collection.mutable.ListBuffer | |
| import common._ | |
| /** https://class.coursera.org/progfun-2012-001/assignment/view?assignment_id=4 */ | |
| object Main { | |
| def main(args: Array[String]) { | |
| println("Pascal's Triangle") | |
| for (row <- 0 to 10) { |
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
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/bin/bash | |
| # Recursive file convertion windows-1251 --> utf-8 | |
| # Place this file in the root of your site, add execute permission and run | |
| # Converts *.php, *.html, *.css, *.js files. | |
| # To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
| find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
| while read file | |
| do |
This is a post by Joel Spolsky. The original post is linked at the bottom.
This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.
The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju
| public class JSON2Java { | |
| private static final ScriptEngine jsonParser; | |
| static | |
| { | |
| try | |
| { | |
| String init = read(Tools.class.getResource("json2java.js")); | |
| ScriptEngine engine = new ScriptEngineManager().getEngineByName("JavaScript"); |
| import Image | |
| import ImageDraw | |
| import ImageFont | |
| # string according to dokuwiki syntax for a table row | |
| data = "| # | 19.11.2011 | DARK TRANQUILLITY, ELUVEITIE, VARG, MERCENARY, GURD, OMNIUM GATHERUM | FZW, Dortmund |" | |
| # first band of the line up (to constrain text length) | |
| subject = data.split("|")[3].split(',')[0].strip() | |
| date = data.split("|")[2].strip() |