Skip to content

Instantly share code, notes, and snippets.

View cwndrws's full-sized avatar

Charlie Andrews cwndrws

  • GitHub
  • RVA
View GitHub Profile
@cwndrws
cwndrws / emacs
Created August 13, 2014 02:21
asdfasdf
(add-to-list 'load-path "~/.emacs.d/ftw/")
(require 'ftw)
(setq ftw-leader-key "C-;")
(defcustom ftw-leader-key "C-a"
"Customizable contol key for ftw navigation")
(defun left-edge (win)
(let ((edges (window-edges win)))
(nth 0 edges)))
(defun right-edge (win)
(let ((edges (window-edges win)))
(nth 2 edges)))
@cwndrws
cwndrws / .emacs
Created August 18, 2014 17:07
My emacs config
(setq custom-file "~/.emacs-custom.el")
(load custom-file)
(package-initialize)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
;; efff the chrome
(tool-bar-mode -1)
(scroll-bar-mode -1)
var Pool = require('sandcastle').Pool;
var sandboxPath = __dirname + '/sandbox-api.js';
var s = new Pool({numberOfInstances: 20}, {api: sandboxPath, timeout: 30000, useStrictMode: false});
function callCode(code, callback) {
var script = s.createScript(code);
script.on('exit', function(err, output) {
if (output) {
callback(output);
@cwndrws
cwndrws / gobTest.go
Created September 25, 2014 16:01
test for memory problems in gob
package main
import (
"encoding/gob"
"log"
"net"
"net/rpc"
"time"
)
package GoSDK
import (
"errors"
"fmt"
"log"
"strings"
)
type System struct {
(setq custom-file "~/.emacs-custom.el")
(load custom-file)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
("e6h" . "http://www.e6h.org/packages/")))
(package-initialize)
(setq
backup-by-copying t ; don't clobber symlinks
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = KEYMAP( /* Charlie workman */
ESC, Q, D, R, W, B, J, F, U, P, SCLN, BSLS,
LCTL, A, S, H, T, G, Y, N, E, O, I, BSPC,
LSFT, Z, X, M, C, V, K, L, COMM, DOT, SLSH, ENT,
RSFT, LALT, LGUI, RCTL, FN2, SPC, FN1, LEFT, DOWN, UP, RGHT),
[1] = KEYMAP( /* Charlie RAISE */
TAB, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, BSPC,
### Keybase proof
I hereby claim:
* I am cwandrews on github.
* I am cwndrws (https://keybase.io/cwndrws) on keybase.
* I have a public key whose fingerprint is 6F74 B169 15BE F862 8C5A D135 45B2 A6C6 48E9 90FC
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am cwndrws on github.
  • I am cwndrws (https://keybase.io/cwndrws) on keybase.
  • I have a public key whose fingerprint is 6F74 B169 15BE F862 8C5A D135 45B2 A6C6 48E9 90FC

To claim this, I am signing this object: