This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q- quitSPC w /- split window verticallySPC w- - split window horizontallySPC 1- switch to window 1SPC 2- switch to window 2SPC w c- delete current window
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q - quitSPC w / - split window verticallySPC w - - split window horizontallySPC 1 - switch to window 1SPC 2 - switch to window 2SPC w c - delete current windowemacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/C-?M-c
2. Upper Case : M-uM-l| - name: set swap_file variable | |
| set_fact: | |
| swap_file: /{{ swap_space }}.swap | |
| - name: check if swap file exists | |
| stat: | |
| path: "{{ swap_file }}" | |
| register: swap_file_check | |
| - name: create swap file |
| var data = { | |
| "name": "root", | |
| "contents": [ | |
| { | |
| "name": "A", | |
| "contents": [ | |
| { | |
| "name": "fileA1", | |
| "contents": [] | |
| } |
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| # RescueTime Data Exporter | |
| # Dan Nixon | |
| # 18/09/2011 | |
| import urllib | |
| apiKey = "API_KEY" |
| var amqp = require('amqplib/callback_api'); | |
| // if the connection is closed or fails to be established at all, we will reconnect | |
| var amqpConn = null; | |
| function start() { | |
| amqp.connect(process.env.CLOUDAMQP_URL + "?heartbeat=60", function(err, conn) { | |
| if (err) { | |
| console.error("[AMQP]", err.message); | |
| return setTimeout(start, 1000); | |
| } |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # vim style tmux config | |
| # use C-a, since it's on the home row and easier to hit than C-b | |
| set-option -g prefix C-a | |
| unbind-key C-a | |
| bind-key C-a send-prefix | |
| set -g base-index 1 | |
| # Easy config reload | |
| bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." |
| /** | |
| * Simple node_acl example with mongoDB and expressjs | |
| * | |
| * Usage: | |
| * 1. Start this as server | |
| * 2. Play with the resoures | |
| * | |
| * Show all permissions (as JSON) | |
| * http://localhost:3500/info | |
| * |
| package main | |
| import ( | |
| "encoding/json" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| ) | |
| type Message struct { |