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
| @import "compass/css3"; | |
| /* make details & summary display as block elements in browsers | |
| where they're not supported (ahem... all of them). */ | |
| details, summary { | |
| display: block; | |
| } | |
| /* hide the dropdown arrow if the browser supports details */ | |
| .arrow { |
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() { | |
| // Execute the fallback only if there’s no native `details` support | |
| if (!('open' in document.createElement('details')) || ($.browser.webkit && $.browser.version >= 534.16)) { | |
| // Loop through all `details` elements | |
| $('details').each(function() { | |
| // Store a reference to the current `details` element in a variable | |
| var $details = $(this), | |
| // Store a reference to the `summary` element of the current `details` element (if any) in a variable |
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
| import javax.swing.*; | |
| import java.security.* | |
| class InnerClassStupidity { | |
| void someAction() { | |
| AccessController.doPrivileged( new PrivilegedAction() { | |
| public Object run() { | |
| SwingUtilities.invokeLater( new Runnable() { | |
| public void run() { |
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
| <table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |
| <meta> | |
| <author>Jonathan Abourbih</author> | |
| <description>Query for UK Food Ratings</description> | |
| </meta> | |
| <bindings> | |
| <select itemPath="" produces="XML"> | |
| <inputs> | |
| <key id="eid" paramType="variable" type="xs:string" required="true" batchable="false"/> | |
| </inputs> |
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
| define ['module', 'jquery'], | |
| (module, $) -> | |
| configValue: | |
| module.config().text |
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
| require.config({ | |
| shim: { | |
| backbone: { | |
| deps: ['underscore', 'jquery'], | |
| exports: 'Backbone' | |
| }, | |
| underscore: { | |
| exports: '_' | |
| } | |
| }, |
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
| <table {{bindAttr class="length:show:hide"}}> | |
| <thead><tr><th>foo</th></tr></thead> | |
| <tbody> | |
| {{#each item in controller}} | |
| <tr><td>{{item.name}}</td></tr> | |
| {{/each}} | |
| </tbody> | |
| </table> | |
| <div {{bindAttr class="length:hide:show"}}> |
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
| Ember.testing = true | |
| App = Ember.Application.create() | |
| App.setupForTesting() | |
| App.injectTestHelpers() | |
| App.Store = DS.Store.extend | |
| revision: 12 | |
| adapter: 'DS.FixtureAdapter' |
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
| arrayToMap = (attributes, values) -> | |
| result = {} | |
| for i in [0...attributes.length] | |
| result[attributes[i]] = values[i] | |
| result |
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
| class Array | |
| def peach(&block) | |
| threads = [] | |
| self.each do |item| | |
| threads << Thread.new do | |
| block.call(item) | |
| end | |
| end | |
| threads.each(&:join) | |
| end |
OlderNewer