Skip to content

Instantly share code, notes, and snippets.

@uasi
uasi / gist:1096655
Created July 21, 2011 06:43
Pixelmator 1.6.6 crash workaround
en
See http://www.pixelmator.com/support/viewtopic.php?t=6399
ja
1. http://sparkle.andymatuschak.org/ を開き、 Get Sparkle 1.5 b6 をクリック
2. ダウンロードされたアーカイブの中の Sparkle.framework をコピー
3. /Applications/Pixelmator.app を右クリックして、「パッケージの内容を表示」
4. 表示されたフォルダの Contents フォルダを開き、その中の Frameworks フォルダを開く
@uasi
uasi / QuickTimePlayer.classdump.h
Created June 9, 2011 02:05
Class dump of QuickTime Player
/*
* Generated by class-dump 3.3.3 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2010 by Steve Nygard.
*/
#pragma mark Named Structures
struct AudioStreamBasicDescription {
double mSampleRate;
@uasi
uasi / WebKit2.classdump.h
Created June 8, 2011 11:27
Class dump of WebKit2 framework
/*
* Generated by class-dump 3.3.3 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2010 by Steve Nygard.
*/
#pragma mark Named Structures
struct APIObject {
void **_field1;
@uasi
uasi / Safari.classdump.h
Created June 8, 2011 11:25
Class dump of Safari 5.1 DP
/*
* Generated by class-dump 3.3.3 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2010 by Steve Nygard.
*/
#pragma mark Named Structures
struct AccessibilityObject {
void **_field1;
@uasi
uasi / delete_hatena_messages.rb
Created June 2, 2011 10:23
はてなグループから送られたはてなメッセージを削除するやつ
#!/usr/bin/env ruby
##
## Delete hatena messages sent from Hatena Group
##
require 'mechanize'
require 'pit'
# Endpoints
@uasi
uasi / abbrev.zsh
Created May 3, 2011 17:12
Zsh command abbreviation
local grepish
if which ack &> /dev/null; then
grepish=ack
else
grepish=grep
fi
typeset -A abbreviations
abbreviations=(
" G" " | $grepish"
@uasi
uasi / create-chrome-launcher.sh
Created March 23, 2011 05:31
Create an .app that launches Google Chrome with a specified profile
#!/bin/sh
#
# Create Google Chrome launcher (for Mac)
#
CHROME_APP="/Applications/Google Chrome.app"
CHROME_PROFILE_DIR="$HOME/Library/Application Support/Google/Chrome"
echo "Enter profile name: \c"
@uasi
uasi / gauche.rb
Created March 8, 2011 10:09 — forked from VoQn/gauche.rb
require 'formula'
class Gauche < Formula
url 'http://downloads.sourceforge.net/gauche/Gauche/Gauche-0.9.1.tgz'
homepage 'http://practical-scheme.net/gauche/'
md5 '6134e9c16aef2bc9fd3fa7e8fbebdd10'
def install
system "./configure",
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 0e32663..c2c8093 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -312,8 +312,13 @@ class Formula
install_type = :from_url
else
# Check if this is a name or pathname
- path = Pathname.new(name)
- if path.absolute?
module Mod1
def hello
puts "Hello from Mod1"
end
end
module Mod2
def hello
puts "Hello from Mod2"
end