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 { Component } from 'react' | |
| import { NativeModules } from 'react-native' | |
| export = RNTrackPlayer | |
| declare namespace RNTrackPlayer { | |
| export type EventType = | |
| | 'playback-state' | |
| | 'playback-error' | |
| | 'playback-queue-ended' |
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
| /** | |
| * Connect-based Postgres session storage | |
| * Based off https://github.com/brianc/postgres-session | |
| */ | |
| 'use strict'; | |
| var assert = require('assert'); | |
| var pg = require('pg'); | |
| var Store = require('express-session').Store; |
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
| { | |
| "appDir": "./website/public/", | |
| "baseUrl": "js", | |
| "dir": "./build", | |
| "optimizeCss": "standard", | |
| "fileExclusionRegExp": "(?:^\\.)|node_modules", | |
| "mainConfigFile": "./website/public/js/main.js", | |
| "modules": [ |
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
| var foo = function foo() { | |
| foo = 5; | |
| console.log(foo); | |
| }; | |
| foo(); | |
| // outputs: [Function foo] |
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
| // This can be done with what is currently in github (but has not yet been released) | |
| // Using jsdom | |
| var dom = jsdom.jsdom(); | |
| var window = dom.createWindow(); | |
| var window2 = dom.createWindow(); | |
| var factory = require('jquery'); | |
| var jquery1 = factory( window ); | |
| var jquery2 = factory( window2 ); |
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
| /** | |
| * @license backPushState.js | |
| * A simple pushState library that falls back to hashChange (only for going back) | |
| * Copyright (c) 2011 timmy willison | |
| * Dual licensed under the MIT and GPL licenses. | |
| * http://timmywillison.com/licence/ | |
| */ | |
| define([ 'jquery' ], | |
| function( $ ) { |
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
| <body> | |
| <div id="foo">...</div> | |
| <script src="jquery.js"></script> | |
| <script> | |
| $( "#foo" ).offset(); | |
| </script> | |
| </body> |
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
| var fire; | |
| if ( document.createEvent ) { | |
| fire = function( node, type ) { | |
| var event = document.createEvent('HTMLEvents'); | |
| event.initEvent( type, true, true ); | |
| node.dispatchEvent( event ); | |
| }; | |
| } else { | |
| fire = function( node, type ) { | |
| var event = document.createEventObject(); |
NewerOlder