- Oct 15: Google's Bigtable paper
- Dec 5: "Producing Wrong Data Without Doing Anything Obviously Wrong!" +
- Jan 20: "Source Code Rejuvenation is not Refactoring" +
production: | |
after_symlink: | |
- source: /.cloud66/log_files.yml | |
destination: /etc/log_files.yml | |
sudo: true | |
target: any | |
apply_during: all | |
- source: /.cloud66/remote_syslog.init.d | |
destination: /etc/init.d/remote_syslog |
import isNil from "@unction/isnil"; | |
export default function get(name: any) { | |
return function getProperty(keyedFunctor: any): null | unknown { | |
if (isNil(keyedFunctor)) { | |
return keyedFunctor; | |
} | |
if (keyedFunctor.get) { | |
return keyedFunctor.get(name); |
[ | |
[ | |
[a, b], | |
[c, d] | |
], | |
[ | |
[a, d] | |
] |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
elem.clientLeft
, elem.clientTop
, elem.clientWidth
, elem.clientHeight
elem.getClientRects()
, elem.getBoundingClientRect()
const { Scheduler } = require('@ssense/sscheduler'); | |
let scheduler = new Scheduler(); | |
let availability = scheduler.getAvailability({ | |
from: '2017-02-01', | |
to: '2017-02-02', | |
duration: 30, | |
interval: 30, | |
schedule: { | |
weekdays: { |
class Differ | |
attr_reader :data1, :data2 | |
def initialize(data1, data2) | |
if data1 === nil || data2 === nil | |
raise ArgumentError.new("Can't diff nil values") | |
end | |
@data1 = data1 | |
@data2 = data2 | |
check_matching_parameters |
# First the end result of what we want: | |
class Foo | |
before_hook :whoa | |
before_hook :amazing | |
def test | |
puts "This is kinda cool!" | |
end |
i = 0 | |
j = 24 * 30 | |
first_hour = 4 | |
end_hour = 5 | |
h = {} | |
while(i < j) do | |
start_time = Time.current.beginning_of_hour + first_hour.hours | |
end_time = Time.current.beginning_of_hour + end_hour.hours | |
first_hour +=1 | |
end_hour +=1 |