Skip to content

Instantly share code, notes, and snippets.

View j0d5's full-sized avatar
🏠
Working from home

Johannes j0d5

🏠
Working from home
  • Hannover
View GitHub Profile
@j0d5
j0d5 / Marked.sublime-build
Created October 25, 2017 07:24
Sublime Text Build System for Marked 2
{
"shell": "true",
"cmd": ["open -a 'Marked 2' \"$file\""]
}
@j0d5
j0d5 / .swiftlint.yml
Created October 24, 2017 05:37
Swiftlint configuration file
included:
excluded:
- Pods
- Cartography
- build
disabled_rules: # rule identifiers to exclude from running
# - cyclomatic_complexity
- trailing_whitespace
@j0d5
j0d5 / ocmock-cheatsheet.m
Created January 4, 2017 15:50 — forked from kharmabum/ocmock-cheatsheet.m
OCMock cheatsheet
/*----------------------------------------------------*/
#pragma mark - XCTAsserts
/*----------------------------------------------------*/
XCTAssert(expression, format...);
XCTAssertTrue(expression, format...);
XCTAssertFalse(expression, format...);
XCTAssertEqual(expression1, expression2, format...);
XCTAssertNotEqual(expression1, expression2, format...);
XCTAssertNil(expression, format...);
@j0d5
j0d5 / keybase.md
Last active January 19, 2017 13:05

Keybase proof

I hereby claim:

  • I am tweetjay on github.
  • I am blackjay (https://keybase.io/blackjay) on keybase.
  • I have a public key whose fingerprint is E3A1 70E2 EED2 5C0B 86C7 FCC1 1A02 5D00 E9DE E9CD

To claim this, I am signing this object:

#!/bin/sh
if test -t 1; then
exec 1>/dev/null
fi
if test -t 2; then
exec 2>/dev/null
fi
@j0d5
j0d5 / private.xml
Created December 21, 2014 11:10
Karabiner Mac OS X Remap Left Control to Hyper
<?xml version="1.0"?>
<root>
<item>
<name>Remap Left Control to Hyper</name>
<appendix>OS X doesn't have a Hyper. This maps Left Control to Control + Shift + Option + Command.</appendix>
<identifier>space_cadet.left_control_to_hyper</identifier>
<autogen>
--KeyToKey--
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@j0d5
j0d5 / singleton.cpp
Created January 19, 2014 16:40
Implementation of an singleton in c++
/*
* Filename: singleton.cpp
* Description: singleton
*
* Created: 06/12/2011 13:31:14
* Compiler: gcc
*
* Author: Johannes82
*
*/