This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.
Give me feedback on Twitter (@nicoleslaw) or by email ([email protected]).
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
import scala.concurrent.duration._ | |
import scala.concurrent.ExecutionContext | |
import scala.concurrent.Future | |
import akka.pattern.after | |
import akka.actor.Scheduler | |
/** | |
* Given an operation that produces a T, returns a Future containing the result of T, unless an exception is thrown, | |
* in which case the operation will be retried after _delay_ time, if there are more possible retries, which is configured through | |
* the _retries_ parameter. If the operation does not succeed and there is no retries left, the resulting Future will contain the last failure. |
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
I've been working on a parser for a Haskell-like syntax called Duet. In the implementation I've taken particular care to make an awesome tokenizer and parser that is super helpful to learners.
Jasper Van der Jeugt made a talk about producing good error messages recently, which coincides nicely with my parallel work on this. So I thought I'd also share my
rr
is a great debugging tool. it records a trace of a program's execution, as well as the results of
any syscalls it executes, so that you can "rewind" while you debug, and get deterministic forward and reverse
instrumented playback. it works with rust, but by default if you try it out, it could be pretty ugly when you
inspect variables.
steps:
extern crate futures; | |
// XXX I haven't actually tested this, but I think it should work. | |
use futures::{Async, Future, Poll}; | |
pub struct RetryFuture<F, N> { | |
current: F, | |
new_future: N, | |
retries: usize, | |
max_retries: Option<usize>, |
//! Shim to allow using Rusoto with the new Hyper | |
use bytes::Bytes; | |
use futures::future::TryFutureExt; | |
use futures::TryStreamExt; | |
use futures::{compat::*, lock::Mutex}; | |
use futures01; | |
use http::header::{HeaderName, HeaderValue}; | |
use http::{HeaderMap, Method}; | |
use hyper; | |
use rusoto_core::{ |
#!/usr/bin/env bash | |
set -euo pipefail | |
NAME=$(jj config get user.name) | |
MAIL=$(jj config get user.email) | |
SIGNSTR="Signed-off-by: ${NAME} <${MAIL}>" | |
contents=$(<"$1") |