text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```javascript
// Quota Storage Management API
// This API can be used to check how much quota an origin is using and request more
// Currently only implemented in Chrome.
// path_to_url
// By Addy Osmani
Modernizr.addTest('quotamanagement', function(){
var storage = Modernizr.prefixed('StorageInfo', window);
retu... | /content/code_sandbox/public/vendor/modernizr/feature-detects/quota-management-api.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 94 |
```javascript
// Detects whether input form="form_id" is available on the platform
// E.g. IE 10 (and below), don't support this
Modernizr.addTest("formattribute", function() {
var form = document.createElement("form"),
input = document.createElement("input"),
div = document.createElement("div"),
id = "formtest"... | /content/code_sandbox/public/vendor/modernizr/feature-detects/forms-formattribute.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 184 |
```javascript
// code.google.com/speed/webp/
// by rich bradshaw, ryan seddon, and paul irish
// This test is asynchronous. Watch out.
(function(){
var image = new Image();
image.onerror = function() {
Modernizr.addTest('webp', false);
};
image.onload = function() {
Modernizr.addTest('webp', ... | /content/code_sandbox/public/vendor/modernizr/feature-detects/img-webp.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 152 |
```javascript
Modernizr.addTest('fullscreen',function(){
for(var i = 0; i < Modernizr._domPrefixes.length; i++) {
if( document[Modernizr._domPrefixes[i].toLowerCase() + 'CancelFullScreen'])
return true;
}
return !!document['cancelFullScreen'] || false;
});
// path_to_url#//apple_ref/... | /content/code_sandbox/public/vendor/modernizr/feature-detects/fullscreen-api.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 97 |
```javascript
// strict mode
// test by @kangax
Modernizr.addTest('strictmode', function(){
return (function(){ "use strict"; return !this; })();
});
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/es5-strictmode.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 39 |
```javascript
// Test for `sandbox` attribute in iframes.
//
// Spec: path_to_url#attr-iframe-sandbox
Modernizr.addTest('sandbox', 'sandbox' in document.createElement('iframe'));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/iframe-sandbox.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 42 |
```javascript
/*
path_to_url
path_to_url#background-position
Example: path_to_url
*/
(function() {
var elem = document.createElement('a'),
eStyle = elem.style,
val = "right 10px bottom 10px";
Modernizr.addTest('bgpositionshorthand', function(){
eStyle.cssText = "backgroun... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-backgroundposition-shorthand.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 97 |
```javascript
// Blob constructor
// path_to_url#constructorBlob
Modernizr.addTest('blobconstructor', function () {
try {
return !!new Blob();
} catch (e) {
return false;
}
});
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/blob-constructor.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 47 |
```javascript
// by james a rosen.
// path_to_url
Modernizr.addTest('createelement-attrs', function() {
try {
return document.createElement("<input name='test' />").getAttribute('name') == 'test';
} catch(e) {
return false;
}
});
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/dom-createElement-attrs.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 62 |
```javascript
// native JSON support.
// developer.mozilla.org/en/JSON
// this will also succeed if you've loaded the JSON2.js polyfill ahead of time
// ... but that should be obvious. :)
Modernizr.addTest('json', !!window.JSON && !!JSON.parse);
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/json.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 58 |
```javascript
// tests if page is iframed
// github.com/Modernizr/Modernizr/issues/242
Modernizr.addTest('framed', function(){
return window.location != top.location;
});
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/window-framed.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 43 |
```javascript
// display: table and table-cell test. (both are tested under one name "table-cell" )
// By @scottjehl
// all additional table display values are here: path_to_url though Scott has seen some IE false positives with that sort of weak detection.
// more testing neccessary perhaps.
Modernizr.addTest( "disp... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-displaytable.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 217 |
```javascript
// input[type="number"] localized input/output
// // Detects whether input type="number" is capable of receiving and
// // displaying localized numbers, e.g. with comma separator
// // path_to_url
// // Based on path_to_url#L9
// // By Peter Janes
Modernizr.addTest('localizedNumber', function() {
var... | /content/code_sandbox/public/vendor/modernizr/feature-detects/forms-inputnumber-l10n.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 257 |
```javascript
// DataView
// path_to_url
// By Addy Osmani
Modernizr.addTest('dataview', (typeof DataView !== 'undefined' && 'getFloat64' in DataView.prototype));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/dataview-api.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 42 |
```javascript
// Track element + Timed Text Track API
// path_to_url#the-track-element
// path_to_url#text-track-api
//
// While IE10 has implemented the track element, IE10 does not expose the underlying APIs to create timed text tracks by JS (really sad)
// By Addy Osmani
Modernizr.addTest({
texttrackapi: (typeof (d... | /content/code_sandbox/public/vendor/modernizr/feature-detects/elem-track.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 127 |
```javascript
// path_to_url
// documentMode is needed for false positives in oldIE, please see issue above
Modernizr.addTest('cssfilters', function() {
var el = document.createElement('div');
el.style.cssText = Modernizr._prefixes.join('filter' + ':blur(2px); ');
return !!el.style.length && ((document.docu... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-filters.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 88 |
```javascript
// Dart
// By Theodoor van Donge
// path_to_url
Modernizr.addTest('dart', !!Modernizr.prefixed('startDart', navigator));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/dart.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 37 |
```javascript
/*
* Test for SubPixel Font Rendering
* (to infer if GDI or DirectWrite is used on Windows)
* Authors: @derSchepp, @gerritvanaaken, @rodneyrehm, @yatil, @ryanseddon
* Web: path_to_url
*/
Modernizr.addTest('subpixelfont', function() {
var bool,
styles = "#modernizr{position: absolute; top:... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-subpixelfont.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 217 |
```javascript
// developer.mozilla.org/en/CSS/background-repeat
// test page: jsbin.com/uzesun/
// path_to_url
(function(){
function getBgRepeatValue(elem){
return (window.getComputedStyle ?
getComputedStyle(elem, null).getPropertyValue('background') :
elem.currentStyle['background... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-backgroundrepeat.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 155 |
```javascript
// requestAnimationFrame
// Offload animation repainting to browser for optimized performance.
// path_to_url
// By Addy Osmani
Modernizr.addTest('raf', !!Modernizr.prefixed('requestAnimationFrame', window));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/requestanimationframe.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 49 |
```javascript
// Tests for the ability to use Web Intents (path_to_url
// By Eric Bidelman
Modernizr.addTest('webintents', function() {
return !!Modernizr.prefixed('startActivity', navigator);
});
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/web-intents.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 49 |
```javascript
// Filesystem API
// dev.w3.org/2009/dap/file-system/file-dir-sys.html
// The API will be present in Chrome incognito, but will throw an exception.
// See crbug.com/93417
//
// By Eric Bidelman (@ebidel)
Modernizr.addTest('filesystem', !!Modernizr.prefixed('requestFileSystem', window));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/file-filesystem.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 79 |
```javascript
// last-child pseudo selector
// path_to_url
Modernizr.addTest('lastchild', function(){
return Modernizr.testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}", function (elem) {
return elem.lastChild.offsetWidth > elem.firstChild.offsetWidth;
}, 2);
});
`... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-lastchild.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 74 |
```javascript
// path_to_url
// path_to_url
Modernizr.addTest('cssvmaxunit', function(){
var bool;
Modernizr.testStyles("#modernizr { width: 50vmax; }", function(elem, rule) {
var one_vw = window.innerWidth/100,
one_vh = window.innerHeight/100,
compWidth = parseInt((window.getCom... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-vmaxunit.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 129 |
```javascript
// path_to_url
// path_to_url
Modernizr.addTest('cssvminunit', function(){
var bool;
Modernizr.testStyles("#modernizr { width: 50vmin; }", function(elem, rule) {
var one_vw = window.innerWidth/100,
one_vh = window.innerHeight/100,
compWidth = parseInt((window.getCom... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-vminunit.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 129 |
```javascript
// path_to_url
// path_to_url
Modernizr.addTest('cssvwunit', function(){
var bool;
Modernizr.testStyles("#modernizr { width: 50vw; }", function(elem, rule) {
var width = parseInt(window.innerWidth/2,10),
compStyle = parseInt((window.getComputedStyle ?
getC... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-vwunit.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 105 |
```javascript
/* see path_to_url
path_to_url
There are three tests:
1. csshyphens - tests hyphens:auto actually adds hyphens to text
2. softhyphens - tests that ­ does its job
3. softhyphensfind - tests that in-browser Find functionality still works correctly with ­
These tests currently... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-hyphens.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 2,158 |
```javascript
// developer.mozilla.org/en/CSS/pointer-events
// Test and project pages:
// ausi.github.com/Feature-detection-technique-for-pointer-events/
// github.com/ausi/Feature-detection-technique-for-pointer-events/wiki
// github.com/Modernizr/Modernizr/issues/80
Modernizr.addTest('pointerevents', function(){... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-pointerevents.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 175 |
```javascript
Modernizr.addTest('mediaqueries', Modernizr.mq('only all'));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-mediaqueries.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 18 |
```javascript
// speech input for inputs
// by @alrra
// `webkitSpeech` in elem
// doesn`t work correctly in all versions of Chromium based browsers.
// It can return false even if they have support for speech i.imgur.com/2Y40n.png
// Testing with 'onwebkitspeechchange' seems to fix this problem
// this detect o... | /content/code_sandbox/public/vendor/modernizr/feature-detects/forms-speechinput.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 160 |
```javascript
// testing for placeholder attribute in inputs and textareas
// re-using Modernizr.input if available
Modernizr.addTest('placeholder', function(){
return !!( 'placeholder' in ( Modernizr.input || document.createElement('input') ) &&
'placeholder' in ( Modernizr.textarea || document... | /content/code_sandbox/public/vendor/modernizr/feature-detects/forms-placeholder.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 73 |
```javascript
// Test for `srcdoc` attribute in iframes.
//
// Spec: path_to_url#attr-iframe-srcdoc
Modernizr.addTest('srcdoc', 'srcdoc' in document.createElement('iframe'));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/iframe-srcdoc.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 45 |
```javascript
// Browser support test for <style scoped>
// path_to_url#attr-style-scoped
//
// by @alrra
Modernizr.addTest( 'stylescoped', 'scoped' in document.createElement('style') );
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/style-scoped.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 48 |
```javascript
// Method of allowing calculated values for length units, i.e. width: calc(100%-3em) path_to_url#search=calc
// By @calvein
Modernizr.addTest('csscalc', function() {
var prop = 'width:';
var value = 'calc(10px);';
var el = document.createElement('div');
el.style.cssText = prop + Moderniz... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-calc.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 102 |
```javascript
// This implementation only tests support for interactive form validation.
// To check validation for a specific type or a specific other constraint,
// the test can be combined:
// - Modernizr.inputtypes.numer && Modernizr.formvalidation (browser supports rangeOverflow, typeMismatch etc. for type=num... | /content/code_sandbox/public/vendor/modernizr/feature-detects/forms-validation.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 433 |
```javascript
// Grab the WebGL extensions currently supported and add to the Modernizr.webgl object
// spec: www.khronos.org/registry/webgl/specs/latest/#5.13.14
// based on code from ilmari heikkinen
// code.google.com/p/graphics-detect/source/browse/js/detect.js
(function(){
if (!Modernizr.webgl) return;
... | /content/code_sandbox/public/vendor/modernizr/feature-detects/webgl-extensions.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 258 |
```javascript
/**
* file tests for the File API specification
* Tests for objects specific to the File API W3C specification without
* being redundant (don't bother testing for Blob since it is assumed
* to be the File object's prototype.
*
* Will fail in Safari 5 due to its lack of support for the standa... | /content/code_sandbox/public/vendor/modernizr/feature-detects/file-api.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 106 |
```javascript
// cors
// By Theodoor van Donge
Modernizr.addTest('cors', !!(window.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest()));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/cors.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 34 |
```javascript
// Requires a Modernizr build with `canvastext` included
// path_to_url#-canvas-canvastext
Modernizr.addTest('emoji', function() {
if (!Modernizr.canvastext) return false;
var node = document.createElement('canvas'),
ctx = node.getContext('2d');
ctx.textBaseline = 'top';
ctx.font = '32px Ari... | /content/code_sandbox/public/vendor/modernizr/feature-detects/emoji.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 140 |
```javascript
// determining low-bandwidth via navigator.connection
// There are two iterations of the navigator.connection interface:
// The first is present in Android 2.2+ and only in the Browser (not WebView)
// : docs.phonegap.com/en/1.2.0/phonegap_connection_connection.md.html#connection.type
// : davidbcalhoun... | /content/code_sandbox/public/vendor/modernizr/feature-detects/network-connection.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 235 |
```javascript
//By Shi Chuan
//Part of Device Access aspect of HTML5, same category as geolocation
//W3C Editor's Draft at path_to_url
//Implementation by iOS Safari at path_to_url and path_to_url
//test for Device Motion Event support, returns boolean value true/false
Modernizr.addTest('devicemotion', ('DeviceMotion... | /content/code_sandbox/public/vendor/modernizr/feature-detects/event-deviceorientation-motion.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 112 |
```javascript
// by alanhogan
// path_to_url
// path_to_url
Modernizr.testStyles(' #modernizr { display: run-in; } ', function(elem, rule){
var ret = (window.getComputedStyle ?
getComputedStyle(elem, null).getPropertyValue('display') :
elem.currentStyle['display']);
Modernizr.addTest('disp... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-displayrunin.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 86 |
```javascript
// Battery API
// path_to_url
// By: Paul Sayre
Modernizr.addTest('battery',
!!Modernizr.prefixed('battery', navigator)
);
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/battery-api.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 37 |
```javascript
// data uri test.
// path_to_url
// This test is asynchronous. Watch out.
// in IE7 in HTTPS this can cause a Mixed Content security popup.
// github.com/Modernizr/Modernizr/issues/362
// To avoid that you can create a new iframe and inject this.. perhaps..
(function(){
var datauri = new Image()... | /content/code_sandbox/public/vendor/modernizr/feature-detects/url-data-uri.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 180 |
```javascript
// async script
// By Theodoor van Donge
Modernizr.addTest('scriptasync', 'async' in document.createElement('script'));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/script-async.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 31 |
```javascript
// -moz-user-select:none test.
// by ryan seddon
//path_to_url
Modernizr.addTest("userselect",function(){
return Modernizr.testAllProps("user-select");
});
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-userselect.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 43 |
```javascript
/*
Custom protocol handler support
path_to_url#custom-handlers
Added by @benschwarz
*/
Modernizr.addTest('customprotocolhandler', function () {
return !!navigator.registerProtocolHandler;
});
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/custom-protocol-handler.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 46 |
```javascript
// Notifications
// By Theodoor van Donge
// window.webkitNotifications is only used by Chrome
// path_to_url
// window.Notification only exist in the draft specs
// path_to_url#idl-if-Notification
Modernizr.addTest('notification', 'Notification' in window && 'permission' in window.Notification && 'r... | /content/code_sandbox/public/vendor/modernizr/feature-detects/notification.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 76 |
```javascript
// XML HTTP Request Level 2
// www.w3.org/TR/XMLHttpRequest2/
// Much more details at github.com/Modernizr/Modernizr/issues/385
// all three of these details report consistently across all target browsers:
// !!(window.ProgressEvent);
// !!(window.FormData);
// window.XMLHttpRequest && "withCred... | /content/code_sandbox/public/vendor/modernizr/feature-detects/network-xhr2.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 94 |
```javascript
// path_to_url
Modernizr.addTest('pointerlock',!!Modernizr.prefixed('pointerLockElement', document));
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/pointerlock-api.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 26 |
```javascript
// developer.mozilla.org/en/CSS/box-sizing
// github.com/Modernizr/Modernizr/issues/248
Modernizr.addTest("boxsizing",function(){
return Modernizr.testAllProps("boxSizing") && (document.documentMode === undefined || document.documentMode > 7);
});
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-boxsizing.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 65 |
```javascript
// by jussi-kalliokoski
// This test is asynchronous. Watch out.
// The test will potentially add garbage to console.
(function(){
try {
// we're avoiding using Modernizr._domPrefixes as the prefix capitalization on
// these guys are notoriously peculiar.
var BlobBuilder = window.MozBlob... | /content/code_sandbox/public/vendor/modernizr/feature-detects/workers-blobworkers.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 380 |
```javascript
// contentEditable
// path_to_url#contenteditable
// this is known to false positive in some mobile browsers
// here is a whitelist of verified working browsers:
// path_to_url#L2083
Modernizr.addTest('contenteditable',
'contentEditable' in document.documentElement);
``` | /content/code_sandbox/public/vendor/modernizr/feature-detects/contenteditable.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 61 |
```javascript
// developer.mozilla.org/en/CSS/background-size
Modernizr.testStyles( '#modernizr{background-size:cover}', function( elem ) {
var style = window.getComputedStyle ?
window.getComputedStyle( elem, null )
: elem.currentStyle;
Modernizr.addTest( 'bgsizecover', style.backgroundSize == 'cover' );
});... | /content/code_sandbox/public/vendor/modernizr/feature-detects/css-backgroundsizecover.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 75 |
```javascript
// Animated PNG
// path_to_url
// By Addy Osmani
(function () {
if (!Modernizr.canvas) return false;
var image = new Image(),
canvas = document.createElement('canvas'),
ctx = canvas.getContext('2d');
image.onload = function () {
Modernizr.addTest('apng', functio... | /content/code_sandbox/public/vendor/modernizr/feature-detects/img-apng.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 204 |
```javascript
// Test for (experimental) Content Security Policy 1.1 support.
//
// This feature is still quite experimental, but is available now in Chrome 22.
// If the `SecurityPolicy` property is available, you can be sure the browser
// supports CSP. If it's not available, the browser still might support an
// ear... | /content/code_sandbox/public/vendor/modernizr/feature-detects/contentsecuritypolicy.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 110 |
```javascript
!function(t,e){"function"==typeof define&&define.amd?define(["moment"],e):"object"==typeof exports?module.exports=e.call(t,require("moment")):t.Chart=e.call(t,t.moment)}(this,function(t){/*!
* Chart.js
* path_to_url
* Version: 2.0.0-beta2
*
* Released under the MIT license
* path_to_url
*/
/*!
* C... | /content/code_sandbox/public/vendor/chartjs/Chart.min.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 41,341 |
```html
<!doctype html>
<html>
<head>
<title>Doughnut Chart</title>
<script src="../Chart.js"></script>
<script src="path_to_url"></script>
<style>
body {
padding: 0;
margin: 0;
}
#canvas-holder {
width: 30%;
}
</style>
</head>
<body>
<div id="canva... | /content/code_sandbox/public/vendor/chartjs/samples/doughnut.html | html | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 1,106 |
```html
<!doctype html>
<html>
<head>
<title>Line Chart</title>
<script src="../Chart.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<style>
canvas {
-webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, .5);
}
</style>
</head>
<body>
<div st... | /content/code_sandbox/public/vendor/chartjs/samples/line.html | html | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 1,496 |
```html
<!doctype html>
<html>
<head>
<title>Radar Chart</title>
<script src="../Chart.js"></script>
<script src="path_to_url"></script>
</head>
<body>
<div style="width:100%">
<canvas id="canvas"></canvas>
</div>
<button id="randomizeData">Randomize Data</button>
<button id="addDa... | /content/code_sandbox/public/vendor/chartjs/samples/radar.html | html | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 991 |
```html
<!doctype html>
<html>
<head>
<title>Bar Chart</title>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../Chart.js"></script>
<style type="text/css">
canvas {
border: 1px solid red;
}
</style>
</head>
<body>
<div id="container"... | /content/code_sandbox/public/vendor/chartjs/samples/bar.html | html | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 1,068 |
```html
<!doctype html>
<html>
<head>
<title>Pie Chart</title>
<script src="../Chart.js"></script>
<script src="path_to_url"></script>
</head>
<body>
<div id="canvas-holder" style="width:50%">
<canvas id="chart-area" width="300" height="300" />
</div>
<button id="randomizeData">Randomi... | /content/code_sandbox/public/vendor/chartjs/samples/pie.html | html | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 760 |
```javascript
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory);
} else if (typeof exports === 'object') {
module.exports = factory.call(root,require('moment'));
} else {
root.Chart = factory.call(root,root.moment);
}
}(this, function(moment) {... | /content/code_sandbox/public/vendor/chartjs/Chart.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 69,687 |
```smalltalk
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicen... | /content/code_sandbox/CSharp/FastNoiseLite.cs | smalltalk | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 39,790 |
```java
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, a... | /content/code_sandbox/Java/FastNoiseLite.java | java | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 40,752 |
```rust
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, a... | /content/code_sandbox/Rust/src/lib.rs | rust | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 44,535 |
```glsl
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, a... | /content/code_sandbox/GLSL/FastNoiseLite.glsl | glsl | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 40,675 |
```c++
#include <algorithm>
#include <chrono>
#include <cstdint>
#include <sstream>
#include <imgui_app/ImGui_Application.hpp>
#include <imgui_internal.h>
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include <emscripten.h>
#include <emscripten_browser_file.h>
#include "../Cpp/FastNoiseLite.h"
#include "FastNoiseLit... | /content/code_sandbox/WebPreviewApp/main.cpp | c++ | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 5,587 |
```powershell
$scriptPath = $PSScriptRoot
$emsdkVer = "3.1.52"
$emsdkPath = Join-Path -Path $PSScriptRoot -ChildPath "emsdk" | Join-Path -ChildPath $emsdkVer
if (Test-Path -Path $emsdkPath -PathType Container) {
Write-Host "Found existing emsdk"
& "$emsdkPath\emsdk_env.ps1"
} else {
Write-Host "Building em... | /content/code_sandbox/WebPreviewApp/build.ps1 | powershell | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 191 |
```hlsl
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, a... | /content/code_sandbox/HLSL/FastNoiseLite.hlsl | hlsl | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 41,132 |
```javascript
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublice... | /content/code_sandbox/JavaScript/FastNoiseLite.js | javascript | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 43,128 |
```objective-c
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublic... | /content/code_sandbox/C/FastNoiseLite.h | objective-c | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 42,132 |
```objective-c
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublic... | /content/code_sandbox/Cpp/FastNoiseLite.h | objective-c | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 40,106 |
```go
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and... | /content/code_sandbox/Go/fastnoise.go | go | 2016-03-28T02:35:12 | 2024-08-16T07:09:20 | FastNoiseLite | Auburn/FastNoiseLite | 2,688 | 36,456 |
```swift
//EasyLayout
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, subli... | /content/code_sandbox/Package.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 243 |
```ruby
Pod::Spec.new do |s|
s.name = "Stellar"
s.version = "0.67"
s.summary = "An Awesome Physical animation library base on UIDynamic. "
s.description = "A fantastic Physical animation library for swift(Not Just Spring !!!), it is base on UIDynamic and extension to it, friendly APIs make yo... | /content/code_sandbox/Stellar.podspec | ruby | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 191 |
```swift
//
// LiquidView.swift
// StellarDemo
//
// Created by AugustRush on 6/3/16.
//
import UIKit
class LiquidView: UIView {
override class func layerClass() -> AnyClass {
return CAShapeLayer.self
}
}
``` | /content/code_sandbox/StellarDemo/StellarDemo/LiquidView.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 61 |
```swift
//
// Example3ViewController.swift
// StellarDemo
//
// Created by AugustRush on 5/30/16.
//
import UIKit
class Example3ViewController: UIViewController {
@IBOutlet var leftLines: [Ball]!
@IBOutlet var rightLines: [Ball]!
override func touchesEnded(_ touches: Set<UITouch>, with event: UI... | /content/code_sandbox/StellarDemo/StellarDemo/Example3ViewController.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 315 |
```swift
//
// GravityViewController.swift
// StellarDemo
//
// Created by AugustRush on 5/25/16.
//
import UIKit
class Example1ViewController: UIViewController {
@IBOutlet var balls: [UIView]!
override func viewDidLoad() {
super.viewDidLoad()
self.view.backgroundColor =... | /content/code_sandbox/StellarDemo/StellarDemo/Example1ViewController.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 334 |
```swift
//
// Example7ViewController.swift
// StellarDemo
//
// Created by AugustRush on 6/8/16.
//
import UIKit
class Example7ViewController: UIViewController {
@IBOutlet weak var button: UIButton!
@IBAction func loadFromJSON(_ sender: AnyObject) {
}
}
``` | /content/code_sandbox/StellarDemo/StellarDemo/Example7ViewController.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 68 |
```swift
//
// Ball.swift
// StellarDemo
//
// Created by AugustRush on 5/26/16.
//
import UIKit
@IBDesignable
class Ball: UIView {
@IBInspectable var cornerRadius: CGFloat = 15 {
didSet {
self.layer.cornerRadius = cornerRadius
}
}
}
``` | /content/code_sandbox/StellarDemo/StellarDemo/Ball.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 72 |
```swift
//
// Example6ViewController.swift
// StellarDemo
//
// Created by AugustRush on 6/1/16.
//
import UIKit
class Example6ViewController: UIViewController {
//should be have more easily APIs to do
@IBOutlet var views: [UIView]!
var centerItems: [DynamicItemBasic<CGPoint>] = Array()
var ... | /content/code_sandbox/StellarDemo/StellarDemo/Example6ViewController.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 333 |
```swift
//
// ViewController.swift
// StellarDemo
//
// Created by AugustRush on 5/7/16.
//
import UIKit
class Example2ViewController: UIViewController {
@IBOutlet var balls: [UIView]!
var attachment: UIAttachmentBehavior!
var animator = UIDynamicAnimator()
override func vi... | /content/code_sandbox/StellarDemo/StellarDemo/Example2ViewController.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 377 |
```swift
//
// Example8ViewController.swift
// StellarDemo
//
// Created by AugustRush on 6/29/16.
//
import UIKit
class Example8ViewController: UIViewController {
@IBOutlet weak var animateView: Ball!
@IBAction func segment1ValueChanged(_ sender: UISegmentedControl) {
let index = sen... | /content/code_sandbox/StellarDemo/StellarDemo/Example8ViewController.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 999 |
```swift
//
// Example4ViewController.swift
// StellarDemo
//
// Created by AugustRush on 6/1/16.
//
import UIKit
class Example4ViewController: UIViewController {
@IBOutlet weak var animateView: Ball!
override func viewDidLoad() {
super.viewDidLoad()
}
override ... | /content/code_sandbox/StellarDemo/StellarDemo/Example4ViewController.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 236 |
```swift
//
// AppDelegate.swift
// StellarDemo
//
// Created by AugustRush on 5/7/16.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicati... | /content/code_sandbox/StellarDemo/StellarDemo/AppDelegate.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 393 |
```swift
//
// Example5ViewController.swift
// StellarDemo
//
// Created by AugustRush on 6/1/16.
//
import UIKit
class Example5ViewController: UIViewController {
@IBOutlet weak var cyanView: UIView!
override func viewDidLoad() {
super.viewDidLoad()
}
override func touche... | /content/code_sandbox/StellarDemo/StellarDemo/Example5ViewController.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 328 |
```swift
import UIKit
import PlaygroundSupport
let container = UIView(frame: CGRect.init(x: 0, y: 0, width: 600, height: 600))
container.backgroundColor = UIColor(red: 0.97,green: 0.97,blue: 0.97,alpha: 1.0)
//var balls: [Ball] = Array()
//for i in 0...5 {
// let ball = Ball(frame: CGRectMake(10,10 + 60 * CGFloa... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Contents.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 992 |
```swift
//
// Ball.swift
// StellarDemo
//
// Created by AugustRush on 5/26/16.
//
import UIKit
@IBDesignable
public class Ball: UIView {
@IBInspectable var cornerRadius: CGFloat = 15 {
didSet {
self.layer.cornerRadius = cornerRadius
}
}
}
``` | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Ball.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 73 |
```swift
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/UIView+Stellar.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 1,997 |
```swift
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/AnimatorCoordinator.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 517 |
```swift
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/TimingType.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 281 |
```swift
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/AnimationSequence.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 688 |
```swift
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/StepControllable.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 236 |
```swift
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/UIDynamicBehavior+Commit.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 261 |
```swift
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/GravityConfigurable.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 253 |
```swift
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/Physical.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 842 |
```swift
//
// UIView+FileConfigurable.swift
// StellarDemo
//
// Created by AugustRush on 6/7/16.
//
import UIKit
enum ConfigurationError: Error {
case invalidString
case transformedError(Error)
case undefined
}
extension UIView {
//configure animation with JSON string
public func configureWi... | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/UIView+FileConfigurable.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 207 |
```swift
//
// DriveAnimateBehaviors.swift
// StellarDemo
//
// Created by AugustRush on 6/21/16.
//
import UIKit
protocol DriveAnimateBehaviors: class {
func behavior(forType type: AnimationType, step: AnimationStep) -> UIDynamicBehavior
}
``` | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/DriveAnimateBehaviors.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 64 |
```swift
//
// CALayer+DriveAnimationBehaviors.swift
// StellarDemo
//
// Created by AugustRush on 6/21/16.
//
import Foundation
``` | /content/code_sandbox/StellarDemo/StellarDemo/MyPlayground.playground/Sources/Sources/CALayer+DriveAnimationBehaviors.swift | swift | 2016-05-25T09:02:36 | 2024-08-14T16:00:58 | Stellar | AugustRush/Stellar | 2,933 | 38 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.