Skip to content

Instantly share code, notes, and snippets.

View fxthomas's full-sized avatar

François-Xavier Thomas fxthomas

  • DxOMark Image Labs
  • Paris
View GitHub Profile
@fxthomas
fxthomas / .vimrc
Created June 16, 2011 23:48
VimRC
" Basic Settings
set nocompatible
syntax on
set ofu=syntaxcomplete#Complete
set autoread " If an open file is changed outside of VIM, it is automatically reloaded
filetype on
filetype plugin on
filetype plugin indent on
set number
@fxthomas
fxthomas / .screenrc
Created June 16, 2011 23:48
ScreenRC
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
### Created by Brad Sims <[email protected]> 25/06/2004
### I got tired of .screenrc's on the internet being so
### poorly commented... So being a good GNUbie I took matters
### into my own hands; and wrote this dotfile.
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
@fxthomas
fxthomas / .bashrc
Created June 16, 2011 23:09
BashRC
# This .bashrc script was developped by François-Xavier Thomas.
# You are free to copy, adapt or modify it.
# If you do so, however, leave my name somewhere in the credits, I'd appreciate it ;)
#
# Although some parts were ripped off various sources over the internet, I gathered them and made my own there.
# I try to keep up with these sources as I add them, but if you're the author and don't like it, just message me on twitter @fxvisual
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
@fxthomas
fxthomas / dokucode.part.py
Created May 16, 2011 22:23
Dokucode (Part)
# Search text for blocks and replace with format placeholders
def _prep_blocks (text, autoescape=None):
known_upper_tags = [CodeTag, VimeoTag, URLTag, GalleryTag, ImageTag, FileTag, NewzTag]
blocks = []
count = 0
for t in known_upper_tags:
for r in t.Code:
while True:
m = r.search (text)
@fxthomas
fxthomas / obj2json.py
Created May 15, 2011 16:39
OBJ to JSON conversion
#!/usr/bin/python
# coding=utf-8
# Base Python File (obj2py.py)
# Created: Sun 15 May 2011 05:21:50 PM CEST
# Version: 1.0
#
# This Python script was developped by François-Xavier Thomas.
# You are free to copy, adapt or modify it.
# If you do so, however, leave my name somewhere in the credits, I'd appreciate it ;)