Skip to content

Instantly share code, notes, and snippets.

View guillaumealgis's full-sized avatar

Guillaume Algis guillaumealgis

View GitHub Profile
@guillaumealgis
guillaumealgis / reset_plugins.sh
Created June 4, 2016 13:42
Reset Xcode plugins blacklist
defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-${XCODE_VERSION}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>21st digital Templates</key>
<true/>
<key>ACCodeSnippetRepository</key>
<true/>
<key>AMAppExportToIPA</key>
<true/>
@guillaumealgis
guillaumealgis / gist:ce0b494a3c2910bda402
Created July 8, 2015 15:09
Alacatraz crash "Cannot lock focus on image because it is size zero"
Process: Xcode [75072]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.4 (7720)
Build Info: IDEFrameworks-7720000000000000~8
App Item ID: 497799835
App External ID: 812725084
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [75072]
{
"name": "IQKeyboardManager",
"version": "3.2.0",
"summary": "Keyboard TextField Manager",
"homepage": "https://github.com/hackiftekhar/IQKeyboardManager",
"screenshots": "https://raw.githubusercontent.com/hackiftekhar/IQKeyboardManager/master/KeyboardTextFieldDemo/Screenshot/IQKeyboardManagerScreenshot.png",
"license": "MIT",
"authors": {
"Iftekhar Qurashi": "[email protected]"
},
Pod::Spec.new do |spec|
spec.name = "NSAttributedStringMarkdownParser"
spec.version = "0.0.1"
spec.summary = "A Markdown NSAttributedString parser."
spec.description = "This is a Markdown => NSAttributedString parser built on top of a flex parser. It takes an NSString and returns an NSAttributedString with markdown tags replaced by CoreText formatting attributes."
spec.homepage = "https://github.com/jverkoey/NSAttributedStringMarkdownParser"
spec.license = "Apache License, Version 2.0"
spec.authors = {
"Jeff Verkoeyen" => "[email protected]"
}
@guillaumealgis
guillaumealgis / singleton.m
Last active August 29, 2015 13:56
Objective-C Singleton
+ (instancetype)sharedInstance
{
static id sharedObject = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedObject = [[self alloc] init];
});
return sharedObject;
}
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import (unicode_literals, absolute_import,
division, print_function)
def main():
pass
@guillaumealgis
guillaumealgis / fswatch.rb
Last active December 18, 2015 06:59
fswatch brew formula.
# Install with
# brew install -HEAD https://gist.github.com/guillaume-algis/5743554/raw
require 'formula'
class Fswatch < Formula
homepage 'https://github.com/alandipert/fswatch'
head 'https://github.com/alandipert/fswatch.git', :tag => 'r0.0.1'
version '0.0.1'
@guillaumealgis
guillaumealgis / update.sh
Created October 21, 2012 16:00
Git Update Hook
#!/bin/bash
# --- Command line
refname="$1"
oldrev="$2"
newrev="$3"
branch=${refname#refs/heads/}
# Make a temp directory for writing the .jshintrc file
TMP_DIR=`mktemp -d`
@guillaumealgis
guillaumealgis / jshintrc.json
Created October 21, 2012 15:16
JSHint config file for jQuery dev
{
// Enforcing
"bitwise": true,
"camelcase": true,
"eqeqeq": true,
"forin": true,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": true,