This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6b55e45d58eb98bb353fbf2087a5c0494e0110e4 Mon Sep 17 00:00:00 2001 | |
From: cpojer <christoph.pojer@gmail.com> | |
Date: Fri, 23 Oct 2015 14:24:52 -0700 | |
Subject: [PATCH] Fix tests. | |
--- | |
package.json | 11 ++++++++--- | |
src/components/Header/__tests__/Header-test.js | 2 -- | |
src/mocks/css-stub.js | 7 +++++++ | |
3 files changed, 15 insertions(+), 5 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6b55e45d58eb98bb353fbf2087a5c0494e0110e4 Mon Sep 17 00:00:00 2001 | |
From: cpojer <christoph.pojer@gmail.com> | |
Date: Fri, 23 Oct 2015 14:24:52 -0700 | |
Subject: [PATCH] Fix tests. | |
--- | |
package.json | 11 ++++++++--- | |
src/components/Header/__tests__/Header-test.js | 2 -- | |
src/mocks/css-stub.js | 7 +++++++ | |
3 files changed, 15 insertions(+), 5 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"success":true,"startTime":1445389390738,"numTotalTests":15,"numPassedTests":15,"numFailedTests":0,"testResults":[{"name":"/data/users/cpojer/www-hg/scripts/third_party/jest/src/HasteModuleLoader/__tests__/HasteModuleLoader-currentTestPath-test.js","summary":"","message":"","status":"passed","startTime":1445389391540,"endTime":1445389391560,"coverage":{}},{"name":"/data/users/cpojer/www-hg/scripts/third_party/jest/src/lib/__tests__/moduleMocker-test.js","summary":"","message":"","status":"passed","startTime":1445389391522,"endTime":1445389391562,"coverage":{}},{"name":"/data/users/cpojer/www-hg/scripts/third_party/jest/src/lib/__tests__/promisify-test.js","summary":"","message":"","status":"passed","startTime":1445389391541,"endTime":1445389391603,"coverage":{}},{"name":"/data/users/cpojer/www-hg/scripts/third_party/jest/src/lib/__tests__/FakeTimers-test.js","summary":"","message":"","status":"passed","startTime":1445389391520,"endTime":1445389391671,"coverage":{}},{"name":"/data/users/cpojer/www-hg/scripts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ZSH Theme by @cpojer | |
PROMPT='[%{$fg[red]%}%n%{$fg[black]%}: %{$fg[blue]%}%~%{$reset_color%}\ | |
$(git_prompt_info)\ | |
%{$fg[black]%}%(!.#.]$)%{$reset_color%} ' | |
PROMPT2='' | |
RPS1='' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%} %{$fg[yellow]%}(" | |
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ReactRouterRelay from 'react-router-relay'; | |
// ... | |
React.render( | |
<Router | |
history={new BrowserHistory()} | |
createElement={ReactRouterRelay.createElement}> | |
<Route | |
name="home" // added a name to the route |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Element.implement('alter', function(properties){ | |
var parsed = Slick.parse(properties).expressions[0][0], | |
attributes = parsed.attributes, | |
classList = parsed.classList, | |
i, attr, value; | |
if (attributes) for (i = 0; i < attributes.length; i++){ | |
attr = attributes[i]; | |
value = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!window.addEventListener){ | |
Element.NativeEvents.propertychange = 2; | |
Element.Events.change = { | |
base: function(){ | |
var type = this.type; | |
return (this.get('tag') == 'input' && (type == 'radio' || type == 'checkbox')) ? 'propertychange' : 'change' | |
}, | |
condition: function(event){ | |
return (this.type == 'radio' && !this.checked) ? false : true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=$(cd `dirname $0` && pwd) | |
$DIR/../node_modules/stylus/bin/stylus --use "$DIR/../node_modules/nib/lib/nib.js" --out "$DIR/../CSS" --watch "$DIR/../STYL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*<ltIE9>*/ | |
if (!window.addEventListener) (function(){ | |
var update = function(event){ | |
event.target.store('$change', event.target.checked); | |
}; | |
Element.Events.change = { | |
base: 'click', | |
condition: function(event){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
--- | |
name: Element.Event.Change | |
description: Normalizes the onchange-event in Internet Explorer for checkboxes and radio buttons. | |
license: MIT-style license. | |
requires: [Element.Event] |