This file contains hidden or 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
| instance.extend("parseImportSpecifiers", function (inner) { | |
| return function (node) { | |
| node.importKind = "value" | |
| if (this.isContextual("type") || this.type === tt._typeof) { | |
| if (this.type === tt._typeof) { | |
| node.importKind = "typeof" | |
| this.eat(tt._typeof) | |
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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] |
This file contains hidden or 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) (function(){ | |
| Element.Events.keychange = { | |
| base: 'keyup', | |
| condition: function(e){ | |
| var type = this.get('type'), | |
| key = e.key; | |
| if (type == 'radio') | |
| return (key == 'up' || key == 'down' || key == 'left' || key == 'right' ) && this.checked; |
This file contains hidden or 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
| (function(){ | |
| var hasTransitionSupport = (document.html.style[Element.getStyleProperty('transition')] != null), | |
| prefix = Element.getVendorPrefix('transition'), | |
| key = prefix.replace(/-/g, ''), | |
| Key = key.capitalize(), | |
| Transition = 'Transition', | |
| durationProperty = Key + Transition + 'Duration', | |
| transitionProperty = Key + Transition, | |
| transition = key ? key + Transition : 'transition', |
This file contains hidden or 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
| (function(){ | |
| this.Accessor = function(singular, plural){ | |
| singular = (singular || '').capitalize(); | |
| if (!plural) plural = singular + 's'; | |
| var accessor = {}, matchers = []; | |
| this['define' + singular] = function(key, value){ |