This file contains hidden or 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
[core] | |
editor = emacs | |
[alias] | |
squash = "!f(){ CUR=`git rev-parse HEAD` && git reset --soft ${1} && git commit -m \"$(git log --format=%B ${1}..${CUR})\"; };f" |
This file contains hidden or 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
# Simple web server for the local directory | |
alias webserver='python -m SimpleHTTPServer 8000' | |
# SSH Keep alive | |
alias ssh='ssh -o ServerAliveInterval=60' | |
# Our own executables directory for scripts and the like | |
#export PATH=~/bin:$PATH | |
# pretty print json |
This file contains hidden or 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Keyboard shortcuts | |
;; | |
;; f1 menubar activate | |
;; f2 jump to header or implementation | |
;; f3 display line numbers toggle | |
;; f4 open .emacs | |
;; f5 list-libraries | |
;; f8 treemacs | |
;; f10 new frame |
This file contains hidden or 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
ConsRef ConsCreate(Object car, Object cdr) { | |
_consMade++; | |
ConsRef newCons = _ObjectInitialize(ConsTypeIdentifier, &_ConsDealloc, &_ConsDescription); | |
ConsSetCar(newCons, car); | |
ConsSetCdr(newCons, cdr); | |
return newCons; | |
} |
This file contains hidden or 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
void Retain(Object obj) { | |
if (obj) { | |
ObjectState *common = (ObjectState *)obj; | |
common->refCount += 1; | |
} | |
} | |
void Release(Object obj) { | |
if (obj) { | |
ObjectState *common = (ObjectState *)obj; |
This file contains hidden or 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
typedef Object ConsRef; |
This file contains hidden or 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
typedef struct ConsRefState { | |
ObjectState common; | |
Object car; | |
Object cdr; | |
} ConsRefState; |
This file contains hidden or 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
typedef struct ObjectState { | |
ObjectType kind; | |
RefCount refCount; | |
DeallocFunc deallocFunc; | |
DescriptionFunc descriptionFunc; | |
} ObjectState |
This file contains hidden or 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
typedef void * Object; |
This file contains hidden or 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
# | |
# uncrustify config file for objective-c and objective-c++ | |
# | |
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs | |
output_tab_size = 2 # new tab size | |
indent_columns = output_tab_size | |
indent_label = 2 # pos: absolute col, neg: relative column | |
indent_align_assign = FALSE |