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
@Superbil
Superbil / fix_finder_open_link.sh
Last active December 17, 2015 06:58
Fix Finder Open With... link is break or overflow
;; python checker setup
(setq python-check-command "~/bin/pycheckers.sh")
#
# 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:
# -*- encoding: utf-8 -*-
import wx
import os.path
from wx.lib.dialogs import openFileDialog
from SimpleCV import Image, Color, Display
# Make a function that does a half and half image.
def halfsies(left, right):
result = left
@Superbil
Superbil / talk-org-mode.org
Last active February 12, 2023 07:37
[PyHUG] July: Use Python in Org-mode

[PyHUG] July: Use Python in Org-mode

About

@Superbil
Superbil / wtf_do_while_0.m
Created July 3, 2013 10:32
你是不會用 return 嗎?!
- (id)initWithOperationQueue:(NSOperationQueue *)operationQueue
{
id object = nil;
////////////////////////////////////////////////////////////////////////////////////////////////////
do
{
if(operationQueue==nil)
{
@Superbil
Superbil / pycheckers.sh
Created July 9, 2013 02:22
my pyflakes
#!/usr/bin/env zsh
pyflakes "$1"
# pep8 --repeat "$1"
true
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
# Example
# {"expanded":false,
# "classes":"folder",
# "hasChildren":true,
# "id":"100000000A",
@Superbil
Superbil / signing-party-install.md
Last active December 22, 2015 09:29
install signing-party on mac

Env

  • Mac OSX 10.9.3
  • homebrew 0.9.5
  • perl 5.16.2
  • signing-party 1.1.7

Install flow

#!/user/bin/env python
import zipfile
import os.path
import time
from shutil import copyfile
def zipdir(path, zip):
relroot = os.path.abspath(os.path.join(path, ".."))