emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/ - Redo -
C-? - Change case: 1. Camel Case :
M-c2. Upper Case :M-u
- Lower Case :
M-l
emacs --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| package main | |
| import ( | |
| // "os" | |
| "fmt" | |
| "github.com/stianeikeland/go-rpio" | |
| "log" | |
| "net/http" | |
| // "sync" | |
| "time" |
(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.
| import vinepy | |
| def main(): | |
| vine = vinepy.API(username='[email protected]', password='XXXXXXXX') | |
| #say hello to westboro baptist | |
| wbc_id = 984602341204725760 | |
| wbc_timeline = vine.get_user_timeline(user_id = wbc_id) | |
| post = wbc_timeline[0] |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| #!/usr/bin/env python | |
| """ | |
| Inject inverting css | |
| Usage: | |
| inverted_internet | |
| """ | |
| from libmproxy import controller, proxy | |
| import os | |
| import sys |
These are half-baked thoughts.
IRC discussion: http://bitcoinstats.com/irc/bitcoin-dev/logs/2012/10/05#l4591669
| { | |
| "folders": | |
| [ | |
| { | |
| "file_exclude_patterns": | |
| [ | |
| "*.sublime-*" | |
| ], | |
| "folder_exclude_patterns": | |
| [ |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |