(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#include <iostream> | |
#include <ctime> | |
#include <cstdlib> | |
using namespace std; | |
// http://stackoverflow.com/a/20735198/688275 | |
void shuffle(int *arr, size_t n) | |
{ | |
if (n > 1) | |
{ |
/* ivan(a.t)mysqlab.net */ | |
package main | |
import ( | |
"syscall" | |
"os" | |
"log" | |
) | |
func daemon(nochdir, noclose int) int { |
var gulp = require('gulp'); | |
var rimraf = require('rimraf'); | |
var less = require('gulp-less'); | |
var concat = require('gulp-concat'); | |
var prefixer = require('gulp-autoprefixer'); | |
var cssmin = require('gulp-minify-css'); | |
var jsmin = require('gulp-uglify'); | |
var watch = require('gulp-watch'); | |
var util = require('gulp-util'); | |
var rename = require('gulp-rename'); |
package handler | |
import ( | |
"github.com/gin-gonic/gin" | |
db "github.com/lmdtfy/lmdtfy/pkg/store" | |
) | |
func CreateRepo(c *gin.Context) { | |
query := db.Repos().Insert(map[string]string{"Test": "test"}) |
/** @jsx React.DOM */ | |
/** | |
* Our component structure will look like the following: | |
* - WikiBox | |
* -- AutoCompleteBox | |
* --- AutoComplete | |
*/ | |
// this component renders a single entity coming from wikipedia |
window <<<< | |
isGradient: -> (it |> /^\s*([a-z]+)\-gradient\(\s*(.*)\s*\)\s*$/gmi.exec)?[1] in <[ linear radial ]> | |
toFixedOrInt: (precision, value)--> | |
a={} | |
power = 10 `Math.pow` (precision or 0) | |
value = Math.round(value * power) / power | |
rounded = value |> Math.round | |
if rounded is value then value = rounded |
th span { | |
width: 2em; | |
display: inline-block; | |
} |
This is a Quick Guide to deploy OpenStack IceHouse on top of Ubuntu 14.04, it is IPv6-Ready!
It is compliant with OpenStack's official documentation (docs.openstack.org).
The tenant's subnets are based on Neutron, with ML2 plugin and Single Flat Network
topology, dual-stacked.
The Single Flat Network
is the simplest network topology supported by OpenStack (I think). So, it is easier to understand and follow.
saveImage: function(e){ | |
var this$ = this; | |
console.log("save"); | |
console.log(API.usages + "/" + this.props.usageNumber + API.newImage); | |
console.log(this.state.imageURI); | |
e.preventDefault(); | |
request.put(API.usages + "/" + this.props.usageNumber + API.newImage).attach('image', this.state.imageURI).end(function(res){ | |
console.log(res); | |
return console.log(this$.state.imageURI); | |
}); |