Skip to content

Instantly share code, notes, and snippets.

View Superbil's full-sized avatar
:shipit:
Working in Cloud

Superbil Superbil

:shipit:
Working in Cloud
View GitHub Profile
#
# c.f. StackOverflow question/answer here: http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4
#
# Version 2.3
#
# Latest Change:
# - Apple's handling of "project files" is broken; added a workaround for Xcode 4.5
# - Added automatic FAIL BUILD if any of the internal commands fail
#
# Purpose:
;; python checker setup
(setq python-check-command "~/bin/pycheckers.sh")
@Superbil
Superbil / fix_finder_open_link.sh
Last active December 17, 2015 06:58
Fix Finder Open With... link is break or overflow
@Superbil
Superbil / move_autosave.el
Last active December 17, 2015 06:29
let auto save and backup to temporary directory
;; http://emacswiki.org/emacs/AutoSave
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))
(require-package 'dired+)
(defun dired-show-only (regexp)
(interactive "sFiles to show (regexp): ")
(dired-mark-files-regexp regexp)
(dired-toggle-marks)
(dired-do-kill-lines))
(eval-after-load 'dired+
'(progn
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@Superbil
Superbil / install_vpython.sh
Last active June 15, 2017 16:09
install vpython script for homebrew on mac
brew install wxwidgets boost
pip install Polygon ttfquery
# get zip(git) from https://github.com/BruceSherwood/vpython-wx
cd vpython-wx
python setup.py install
Debugger entered--Lisp error: (error "Only symbols are supported in `compiler-macro'")
signal(error ("Only symbols are supported in `compiler-macro'"))
error("Only symbols are supported in `compiler-macro'")
#[771 "\2119\204 \300\301!\207\302\303D\304\305DF\207" [error "Only symbols are supported in `compiler-macro'" put quote (quote compiler-macro) function] 8 "\n\n(fn F ARGS COMPILER-FUNCTION)"](python-syntax-context (type &optional syntax-ppss) (lambda (form) (pcase type ((\` (quote comment)) (\` (let ((ppss (or ... ...))) (and (nth 4 ppss) (nth 8 ppss))))) ((\` (quote string)) (\` (let ((ppss (or ... ...))) (and (nth 3 ppss) (nth 8 ppss))))) ((\` (quote paren)) (\` (nth 1 (or (\, syntax-ppss) (syntax-ppss))))) (_ form))))
apply(#[771 "\2119\204 \300\301!\207\302\303D\304\305DF\207" [error "Only symbols are supported in `compiler-macro'" put quote (quote compiler-macro) function] 8 "\n\n(fn F ARGS COMPILER-FUNCTION)"] python-syntax-context (type &optional syntax-ppss) (lambda (form) (pcase ty
@Superbil
Superbil / protobuf-objc.rb
Last active December 16, 2015 14:09
protobuf-objc 2.5.0 for homebrew
require 'formula'
class ProtobufObjc < Formula
homepage 'https://github.com/Superbil/protobuf-objc'
url 'https://github.com/Superbil/protobuf-objc.git'
sha1 '7dcd0d77c5aeb706510d67d157793fd689ad4073'
head 'https://github.com/Superbil/protobuf-objc.git',
:branch => 'develop'
@Superbil
Superbil / .bashrc
Last active December 16, 2015 01:09
my bashrc
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
# yummy !
PS1='\h:\W🍔 \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize