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 i, timer; | |
if !is_array(timers) | |
return false; | |
for (i = 0; i < array_height_2d(timers); i++) { | |
if timers[i, 0] == -1 | |
continue; |
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
// in case this file gets loaded, it sets the variable to false | |
adBlocked = 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
<?php | |
$urlBeginning = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http') . '://'; | |
$url = $urlBeginning . $_SERVER['HTTP_HOST'] . '/'; |
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
<?php | |
function zipAndDownload($zipName, $contents) { | |
$archive = new ZipArchive(); | |
touch($zipName); | |
if ($archive->open($zipName, ZIPARCHIVE::OVERWRITE) !== true) | |
return; |
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
<?php | |
class AssocArrayToXmlParser | |
{ | |
private $assocArray; | |
private $xmlVersion = '1.0'; | |
private $encoding = 'utf-8'; | |
function __construct(array $_assocArray = 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
<!-- Straight from http://stackoverflow.com/questions/11832930/html-input-file-accept-attribute-file-type-csv --> | |
<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" /> |
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
/giphy spooky fist pump | |
/giphy bacon burger reaction | |
/giphy let your pussy go | |
/giphy lolwut stunned what shocked huh | |
/giphy dance faggot dance | |
/giphy doge dance halloween |
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
app.directive('ngrChange', function() { | |
return { | |
require: 'ngModel', | |
link: function (scope, element, attrs) { | |
var valueBefore = element.val(); | |
element.bind('focus', function() { | |
if (valueBefore !== element.val()) | |
valueBefore = element.val(); | |
}); |
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
app.directive('ngEnter', function() { | |
return function(scope, element, attrs) { | |
element.bind('keydown keypress', function(event) { | |
if (event.which !== 13) | |
return; | |
scope.$apply(function() { | |
scope.$eval(attrs.ngEnter); | |
}); | |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"font_face": "SourceCodePro-Regular", | |
"font_size": 11, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": |