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
/** | |
* ************************************************************************************** | |
* dll: A Concise Doubly-Linked List Object | |
* | |
* Author: James Futhey <[email protected]>, 2015 | |
* 277 characters | |
* | |
* Each node contains a value and up to two objects, representing the previous (p) and | |
* next (n) object in the list, if applicable. | |
* |
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
DO WTF YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Alexey Silin <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WTF YOU WANT TO PUBLIC LICENSE |
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
/** | |
* Test Inputs | |
*/ | |
a = [[1,2,[3.23,4,"dfger",[5]]],4]; | |
a2 = [[[[[0]], [1]], [[[2,5,6], [3]]], [[4], [5]]]]; | |
/** | |
* Recursively flatten an array | |
*/ | |
function flatten (array) { |
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
/* Responsive text */ | |
.text-left { text-align: left; } | |
.text-right { text-align: right; } | |
.text-center { text-align: center; } | |
.text-justify { text-align: justify; } | |
@media (max-width: 768px) { | |
.text-left-xs { text-align: left; } | |
.text-right-xs { text-align: right; } | |
.text-center-xs { text-align: center; } |
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
// Deduce Type | |
// James Futhey, 2015 | |
// | |
// Useful for parsing a $_GET or $_POST value and knowing it's MySQL-compatible type | |
function deduceType ($value) { | |
if (strlen(strval($value)) === 0) { | |
return "null"; | |
} | |
if ($value === "true" || $value === "false") { |
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
@-ms-viewport { | |
width: device-width; | |
} | |
.visible-xs, | |
.visible-sm, | |
.visible-md, | |
.visible-lg { | |
display: none !important; | |
} | |
.visible-xs-block, |
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 url(//fonts.googleapis.com/css?family=Lato:300,400,300italic,400italic); | |
@import url(//fonts.googleapis.com/css?family=Merriweather:300italic,300,700,700italic); | |
@import url(//fonts.googleapis.com/css?family=Montserrat:400,700); | |
body { | |
width: 60%; | |
margin-left: 20%; | |
font-family: 'Merriweather', serif; | |
font-weight: 300; | |
font-size: 18px; |
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
/**************************************************** | |
* Core.js | |
***************************************************/ | |
function needsNew() { | |
throw new TypeError("Failed to construct: Please use the 'new' operator, this object constructor cannot be called as a function."); | |
} | |
/** | |
* a Generic core object |
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 deferredExecutionTimers = window.deferredExecutionTimers = {}; | |
function s4 () { | |
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); | |
} | |
function deferExecution (condition, callback, interval) { | |
if (!deferredExecutionTimers) window.deferredExecutionTimers = {}; | |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
filter: null, | |
filteredList: null, | |
actions: { | |
autoComplete() { | |
this.get('autoComplete')(this.get('filter')); | |
}, | |
search() { |