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
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
This git got too large. I created a repo: https://github.com/adfinis-sygroup/adsy-python |
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
from IPython.core.display import HTML | |
def solarized(): | |
"""Solarized code mirror theme.""" | |
html = """ | |
<style type="text/css"> | |
.cm-s-ipython { background-color: #002b36; color: #839496; } | |
.cm-s-ipython span.cm-keyword {color: #859900; font-weight: bold;} | |
.cm-s-ipython span.cm-number {color: #b58900;} | |
.cm-s-ipython span.cm-operator {color: #268bd2; font-weight: bold;} |
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
git clone https://github.com/rkruppe/paver.git | |
cd paver/ | |
git checkout python3 | |
cd .. | |
pip-3.2 install inspyred | |
cd build/inspyred | |
cp ../../paver/paver-minilib.zip . | |
python3 setup.py install |
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 gc | |
import asyncio | |
import traceback | |
import inspect | |
loop = asyncio.get_event_loop() | |
class A(object): | |
def __del__(self): | |
print("Del A") |
OlderNewer