- Open Source being officially part of the job, not just an "after job fun" instead of spending time with the family.
- Colleagues one can learn from, not those one needs to clean up after.
- Money matters. Only a stupid person can think that money doesn't matter in our capitalistic society. This also includes social security, medical ensurance and any other expenses. I am not mercantile, no.
- Soft deadlines. Having time to do things right.
- No pressure in being at time every day in the office. We all got our issues.
- Workout during working hours. Possibility to go quickly for a run or to the gym.
- Office is optional. I prefer to work from any location I want. Sometimes being in the office is nice though.
- Good sitting conditions: good chairs, gym ball, stay desk, sofas.
- Relaxation room or nap room.
This file contains 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
// Translates a Google diff-match-patch diff to an array of ottypes textv1 ops | |
// Pretty straight-forward! | |
module.exports = function (diff) { | |
var ops = []; | |
for(var i = 0; i < diff.length; i++) { | |
var diffComp = diff[i]; | |
switch(diffComp[0]) { | |
case -1: // DELETION | |
ops.push({d:diffComp[1].length}); | |
break; |
This file contains 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
<!-- | |
What? | |
HTML Starter Template for rock-solid Web Apps | |
Where? | |
Get the latest template here: https://gist.github.com/matthewmueller/cb33e2c5f6834511cd45f17b59271052 |
This file contains 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
class SimpleLinearRegression | |
def initialize(xs, ys) | |
@xs, @ys = xs, ys | |
if @xs.length != @ys.length | |
raise "Unbalanced data. xs need to be same length as ys" | |
end | |
end | |
def y_intercept | |
mean(@ys) - (slope * mean(@xs)) |
This file contains 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
[RUMSpeedIndex] | |
var RUMSpeedIndex = function(win) { | |
win = win || window; | |
var doc = win.document; | |
/**************************************************************************** | |
Support Routines | |
****************************************************************************/ | |
// Get the rect for the visible portion of the provided DOM element | |
var GetElementViewportRect = function(el) { |
This file contains 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
stylus: | |
compress: true | |
path: ./path/to/styl |
(Chinese version available here, courtesy of @jiangplus
(This is an English translation of my Danish blog post, Bitcoin for voksne)
Bitcoin is a digital currency that has no central authority. It's a currency where you do not have to rely on anyone to know it's worth it. As a concept, it's similar to gold. Gold has a value in itself, as opposed to, say a $100 note that only has value if the U.S. government says it has value. Similarly, the idea of Bitcoins is that they have value by themselves.
Let's try to understand how Bitcoin works.
This file contains 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
// Expected Queueing Time | |
// https://docs.google.com/document/d/1Vgu7-R84Ym3lbfTRi98vpdspRr1UwORB4UV-p9K1FF0/edit | |
// Initial impl by Nicolás Peña (npm), Tim Dresser (tdresser) | |
// Usage: | |
// var eqt = EQT.begin(); | |
// // ... | |
// const {expectedQueueingTime} = EQT.end(); | |
class EQT { | |
constructor() { |
OlderNewer