This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://ls10-www.cs.uni-dortmund.de/~menge/vimquick.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFUrl url = CFUrl.FromUrlString("file:///Users/ganwell/Desktop/Untitled.png", null); | |
CGImage img = QuickLook.ThumbnailImageCreate(url, new SizeF(256, 256), new NSDictionary()); | |
NSImage nsimg = new NSImage(img, new SizeF(256, 256)); | |
NSObject obj = Runtime.GetNSObject | |
(MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (nsimg.Handle, Selector.GetHandle("TIFFRepresentation"))); | |
NSData data = obj as NSData; //-> null. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Mono.Cecil; | |
using Mono.Cecil.Cil; | |
using System.Reflection; | |
namespace ch.fangorn.LUI.AddTrace | |
{ | |
class MainClass | |
{ | |
public static bool verbose = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call pathogen#infect() | |
syntax on | |
filetype plugin on | |
set tw=80 | |
set autoindent | |
set noeb vb t_vb= | |
set guifont=Menlo\ Regular:h13 | |
set number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 5000 unique bash history lines that are shared between | |
# sessions on every command. Happy ctrl-r!! | |
shopt -s histappend | |
# Well the python code only does 5000 lines | |
export HISTSIZE=10000 | |
export HISTFILESIZE=10000 | |
export PROMPT_COMMAND="history -a; unique_history.py; history -r; $PROMPT_COMMAND" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb | |
index 080d67c..cd6cce9 100644 | |
--- a/Library/Formula/macvim.rb | |
+++ b/Library/Formula/macvim.rb | |
@@ -22,8 +22,8 @@ class Macvim < Formula | |
def install | |
# MacVim's Xcode project gets confused by $CC, so remove it | |
- ENV['CC'] = nil | |
- ENV['CFLAGS'] = nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Connect to remote host and take your tmux.conf and vimrc to the host | |
# | |
# Connect: | |
# rmux $HOST | |
# Run tmux: | |
# tmux ... | |
# Run vim: | |
# vi ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind-key C-v select-layout 72af,238x64,0,0{119x64,0,0[119x32,0,0,119x31,0,33],118x64,120,0} | |
bind-key v select-layout even-vertical | |
bind-key b select-layout even-horizontal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
import scipy | |
import matplotlib.pyplot as pyplot | |
def decibel(lin): | |
"""Convert amplitude to decibel. | |
We might later need power to decibel...""" | |
return 20*numpy.log10(norm(lin)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// I used Mono.Cecil 0.9.5 | |
/// This code is proof of concept quality! | |
using System; | |
using Mono.Cecil; | |
using System.Collections.Generic; | |
using Mono.Cecil.Cil; | |
using System.IO; | |
using Mono.Collections.Generic; |
OlderNewer