I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis
onto
the box and here's how I did it and some things to look
out for.
To install:
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.darkice</string> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>KeepAlive</key> | |
<false/> |
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
<div id="details"> | |
<h1 id='head'>{user.firstName}</h1> | |
<h2 rv-text='user.surname'></h2> | |
<input id='input' type='text' rv-value="user.firstName"> | |
</div> | |
<script src='rivets.js'></script> | |
<script> | |
var user = { |
babel github-es6.js -o github.js --optional runtime --experimental |
I fell in love with CoffeeScript a couple of years ago. Javascript has always seemed something of an interesting curiosity to me and I was happy to see the meteoric rise of Node.js, but coming from a background of Python I really preferred a cleaner syntax.
In any fast moving community it is inevitable that things will change, and so today we see a big shift toward ES6, the new version of Javascript. It incorporates a handful of the nicer features from CoffeeScript and is usable today through tools like Babel. Here are some of my thoughts and issues on moving away from CoffeeScript in favor of ES6.
While reading I suggest keeping open a tab to Babel's learning ES6 page. The examples there are great.
Holy punctuation, Batman! Say goodbye to your whitespace and hello to parenthesis, curly braces, and semicolons again. Even with the advanced ES6 syntax you'll find yourself writing a lot more punctuatio
import Koa from 'koa'; | |
const app = new Koa(); | |
// x-response-time | |
app.use(async (ctx, next) => { | |
var start = new Date; | |
await next(); | |
const ms = new Date - start; | |
ctx.set('X-Response-Time', ms + 'ms'); |
import React, {DeviceEventEmitter} from 'react-native'; | |
import {Observable} from 'rx-lite' | |
/** | |
* Creates an Observable to listen to any event of DeviceEventEmitter | |
* @param type {string} Event type | |
*/ | |
export default createObservableFromDeviceEventEmitter$ = type => { | |
let subscription; | |
return Observable.fromEventPattern( |
import { LitElement } from 'lit-element'; | |
import { State } from 'haunted'; | |
export default class LitHauntedElement extends LitElement { | |
constructor() { | |
super(); | |
this.hauntedState = new State(() => this.requestUpdate(), this); | |
} |