There are three file descriptors open by default:
0 for stdin
1 for stdout
2 for stderr
function safe(obj) { | |
return new Proxy(obj, { | |
get: function(target, name){ | |
return hasKey(target, name) ? | |
(isObject(target[name]) ? safe(target[name]) : target[name]) : Undefined; | |
} | |
}); | |
} |
#include <cstring> | |
#include <cmath> | |
bool bsearch(const char* array, char ch) | |
{ | |
int a = 0; // start of the search array | |
int b = strlen(array); // end of the search array | |
int m = 0; // the middle value | |
int prev; // remembers the previous middle value | |
while(true) { |
Individual modules of es5-ext package. See ES6 features for usage information.
# Example for my blog post at: | |
# https://danijar.com/introduction-to-recurrent-networks-in-tensorflow/ | |
import functools | |
import sets | |
import tensorflow as tf | |
def lazy_property(function): | |
attribute = '_' + function.__name__ |
#!/usr/bin/env python | |
""" | |
This Python code is based on Java code by Lee Jacobson found in an article | |
entitled "Applying a genetic algorithm to the travelling salesman problem" | |
that can be found at: http://goo.gl/cJEY1 | |
""" | |
import math | |
import random |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would