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
# updates your info.plist with the current git tag as version and commit number | |
# in that tag as build numer, then ammends the changed file to git | |
# run this after your normal commit but before you push | |
# | |
# this to be placed in the same directory as the xcode project file | |
# info.plist to be in the path [folder with projectfile]/[project name]/[project name]-Info.plist | |
# git tags to be in the form of v[number] | |
# | |
# Don't forget to do chmod +x ~/whatever/vTag.sh | |
# |
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
// | |
// RectHelper.h | |
// | |
// Created by Richard Adem on 24/11/11. | |
// Copyright (c) 2011 Richard Adem. All rights reserved. | |
// | |
// [email protected] | |
// twitter.com/richy486 | |
// |
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
# System | |
.DS_Store | |
# Xcode | |
*.pbxuser | |
*.mode1v3 | |
*.mode2v3 | |
*.perspectivev3 | |
*.moved-aside | |
project.xcworkspace/ |
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
# BASH PROFILE!! | |
# reload without closing terminal window with $ source ~/.bash_profile | |
# Alias' | |
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd" | |
alias ls="ls -G -a -l" | |
alias glog="git log --graph --date-order --date=relative --color=always --oneline" | |
alias gstat="git status -s" | |
alias mm?="git branch --merged master" | |
alias cdd="rm -rf ~/Library/Developer/Xcode/DerivedData" |
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
- (UITableViewCell*) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
static NSString *cellIdentifier = @"cellIdentifier"; | |
// Normal cell | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; | |
if (cell == nil) | |
{ | |
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier] autorelease]; | |
} |
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
[btnShare setTranslatesAutoresizingMaskIntoConstraints:NO]; | |
NSDictionary *metrics = @{@"height":@44.0 | |
, @"width":@44.0 | |
, @"edgeSpace":@10.0}; | |
NSDictionary *views = NSDictionaryOfVariableBindings(button); | |
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:[button(width)]-edgeSpace-|" options:0 metrics:metrics views:views]]; | |
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-edgeSpace-[button(height)]" options:0 metrics:metrics views:views]]; |
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
var express = require('express'); | |
var app = express(); | |
app.get('/stuff', function(req, res) { | |
res.send( | |
{ | |
"options": { | |
"something": "1234" | |
}, |
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
Show hidden characters
[ | |
{ "keys": [ "ctrl+alt+m" ], "command": "un_pretty_json" }, | |
{ "keys": [ "alt+m" ], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"} }, | |
{ "keys": [ "super+shift+j" ], "command": "reveal_in_side_bar" }, | |
{ "keys": [ "super+ctrl+left" ], "command": "prev_view" }, | |
{ "keys": [ "super+ctrl+right" ], "command": "next_view" }, | |
{ "keys": [ "super+0"], "command": "reset_font_size" }, | |
] |
OlderNewer