Skip to content

Instantly share code, notes, and snippets.

View opichals's full-sized avatar

Standa Opichal opichals

  • Prague, Czech Republic
View GitHub Profile
@opichals
opichals / gist:9074197
Created February 18, 2014 16:23
ObjectProxy.unknownProperty definesProperty
var content = Em.Object.create({
x: 1,
y: 2,
z: 0
});
var op = Em.ObjectProxy.createWithMixins({
content: content,
yBinding: 'x',
@opichals
opichals / pathtoapp.scpt
Created April 13, 2012 22:01
OSX AppleScript path to .app
set pathToApp to (POSIX path of (path to me))
do shell script "echo " & pathToApp
@opichals
opichals / git-topic
Created March 28, 2012 22:42
Find the merge commit that brought the <hash> into the current branch
#/usr/bin/env bash
git log --reverse --merges $1.. | head
@opichals
opichals / README
Created January 4, 2012 08:51
Google Chrome Frame No Content on POST 204
https://gist.github.com/1559168
Reproduction stuff for POST resulting in 204 'No Content' on the server returns XMLHttpRequest result == 0.
The example uses YUI3, but it was verified that the result status of 0 comes from the XMLHttpRequest object status field.
* install nodejs
Download and install the appropriate package from nodejs.org
* install express (nodejs web stack)
@opichals
opichals / YUI3.3.0 tickets
Created February 23, 2011 11:59
YUI3.3.0 related tickets GoodData had to deal with
I am not the author of the tickets, but needed to work around these:
Widget destructor double node removal (got a patch from Satyen to mitigate)
http://yuilibrary.com/projects/yui3/ticket/2529860
UI_EVENTS - was IMO broken in earlier releases as well
http://yuilibrary.com/projects/yui3/ticket/2529723
HistoryHash in IE7 fix:
http://yuilibrary.com/projects/yui3/ticket/2529990
@opichals
opichals / run spark2
Created February 15, 2011 17:32
nodejs multi-node setup
spark2 -v -n 1 --port 3000 2>&1
@opichals
opichals / a.js
Created January 12, 2011 09:21
npm link problem test
#!/usr/bin/env node
require('util').debug('A');
From 6ace654dac086185c8158e341887dd929c7c234a Mon Sep 17 00:00:00 2001
From: Standa Opichal <opichals@gmail.com>
Date: Fri, 6 Aug 2010 15:29:44 +0200
Subject: [PATCH 3/3] Avoid touching the s.rawNode internals in destroy() and rather keep the _nodeName in the dojox.gfx.Surface instance to remove the surfaces[] entry.
This avoid SL crashing in case the holding DOM node is not in the document or is hidden at the time in which case it would report invalidObject error.
---
gfx/silverlight.js | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
From a1a4f31f23c7c777c160a4631e4df777eaef2f79 Mon Sep 17 00:00:00 2001
From: Standa Opichal <opichals@gmail.com>
Date: Fri, 6 Aug 2010 14:22:39 +0200
Subject: [PATCH 2/2] Removing the 'cannot parse d=""' errors reported by browsers.
---
gfx/svg.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gfx/svg.js b/gfx/svg.js