Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
OSX = PLATFORM =~ /darwin/
WIN = PLATFORM =~ /win32/
NIX = !(OSX || WIN)
require "rubygems"
begin
require 'appscript' if OSX
//////////////////////////////////////////////////////////////////////////////////////////////
Mesan.Rules.SourcePanel = function(config){
config = config || {};
Ext.applyIf(config, {
id: config.prefix+'rule-source-panel',
title: _('Source Code'),
iconCls: 'rule-code',
tbar: this.createToolbar()
1. Download: http://files.getdropbox.com/u/559047/cocoa.tgz
2. sudo mv /Library/Frameworks/RubyCocoa.framework -> /Library/Frameworks/RubyCocoa.framework-bad
3. upack cocoa.tgz into /Library/Frameworks/
4. sudo mv /Library/Frameworks/RubyCocoa.framework-good -> /Library/Frameworks/RubyCocoa.framework
hope it helps
~/code/visor gh-pages ➔ git pull origin gh-pages
From github.com:darwin/visor
* branch gh-pages -> FETCH_HEAD
Updating 60504f9..1016467
Fast forward
_layouts | 2 +-
shared | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
~/code/visor gh-pages⚡ ➔ gits
# On branch gh-pages
configure:2529: checking for C compiler default output file name
configure:2556: gcc -O0 -g -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/usr/local/include -D__FreeBSD__=10 -DDARWIN_SEMAPHORE_COMPAT -DSSH_NODELAY_WORKAROUND -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -L/usr/local/lib conftest.c >&5
ld: library not found for -lcrt1.10.6.o
<?php
// some helper functions to fix the language, have to put them into global scope, sorry guys
// this function is here mainly to fight "0" to eval as FALSE and empty arrays to eval as FALSE, which is a real evil!
function jse($val) {
if (!isset($val)) return false; // NULL is false
$type = gettype($val);
if ($type=='object' || $type=='resource' || $type=='array') return true; // non-null objects are always true
if ($type=='string') return !!count($val); // non-empty strings are true
return (boolean)$val; // for integer, double, float and boolean (and possible new types) use PHP rules
~/code/antonin.hildebrand.cz master ➔ git remote add origin git@github.com:darwin/antonin.hildebrand.cz.git
~/code/antonin.hildebrand.cz master ➔ git push origin master
fatal: '/data/repositories/3/37/50/c6/darwin/antonin.hildebrand.cz.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
@interface NSWindow (NSWindowAccessibility)
- (id)accessibilityAttributeNames;
- (id)accessibilityRoleAttribute;
- (BOOL)accessibilityIsRoleAttributeSettable;
- (id)accessibilityRoleDescriptionAttribute;
- (BOOL)accessibilityIsRoleDescriptionAttributeSettable;
- (BOOL)_accessibilityIsModal;
- (id)accessibilitySubroleAttribute;
- (BOOL)accessibilityIsSubroleAttributeSettable;
- (struct _NSRect)_accessibilityTitleRect;
var origDataFn = jQuery.data;
jQuery.data = function() {
return origDataFn.apply(this, jQuery.makeArray(arguments));
};
Index: project.pbxproj
===================================================================
--- project.pbxproj (revision 498)
+++ project.pbxproj (working copy)
@@ -17,8 +17,6 @@
F945858A0F78232E009A47BF /* PBXTargetDependency */,
F945858C0F782330009A47BF /* PBXTargetDependency */,
F945858E0F782333009A47BF /* PBXTargetDependency */,
- F94585900F782336009A47BF /* PBXTargetDependency */,
- F93DE3A70F830D1D00608B94 /* PBXTargetDependency */,