This file contains 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
Selectize.registerPlugin('local_storage_cache', function(options) { | |
var self = this; | |
var Store = null; | |
options = $.extend({ | |
lifeTime: -1, // Store forever | |
keyCacheTimeName: 'meta_ct_', | |
keyLifeTimeName: 'meta_lt_' | |
}, options); |
This file contains 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
/* jshint devel:true */ | |
/** | |
AutoIt Forum Minimizer v1.1.1 by FireFox | |
http://www.autoitscript.com/forum/user/42741-firefox/ | |
**/ | |
(function () { | |
"use strict"; | |
var $j = jQuery.noConflict(); | |
var aSettings = [ |
This file contains 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
{ | |
"content_scripts": [ { | |
"js": [ "js/jquery-1.4.2.min.js", "js/script.js" ], | |
"css": [ "css/style.css" ], | |
"matches": [ "http://www.autoitscript.com/forum/*" ], | |
"run_at": "document_end" | |
} ], | |
"icons": { "48": "icon48.png" }, | |
"name": "AutoIt Forum Minimizer", | |
"manifest_version": 2, |
This file contains 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 sublime, sublime_plugin, re | |
import time | |
import threading | |
from os.path import basename | |
sublime_version = 2 | |
if not sublime.version() or int(sublime.version()) > 3000: | |
sublime_version = 3 | |
def plugin_loaded(): |
This file contains 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 XLS { | |
public function __construct($strFileName) { | |
header("Pragma: public"); | |
header("Expires: 0"); | |
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); | |
header("Content-Type: application/force-download"); | |
header("Content-Type: application/octet-stream"); | |
header("Content-Type: application/download"); | |
header("Content-Disposition: attachment;filename=$strFileName.xls"); |
This file contains 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
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
This file contains 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 | |
private function loadQuotes() { | |
$this->comment('Loading quotes...'); | |
$hFile = fopen($this->store . 'quotes.csv', 'r'); | |
$progress = $this->getHelperSet()->get('progress'); | |
$progress->setFormat($progress::FORMAT_VERBOSE_NOMAX); | |
$progress->start($this->getOutput()); |
This file contains 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
$.fn.serializeObject = function() { | |
var o = {}; | |
var a = this.serializeArray(); | |
$.each(a, function() { | |
if (o[this.name] !== undefined) { | |
if (!o[this.name].push) { | |
o[this.name] = [o[this.name]]; | |
} | |
o[this.name].push(this.value || ''); | |
} else { |
This file contains 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 https = require('https'); | |
var Notification = require('node-notifier'); | |
var CronJob = require('cron').CronJob; | |
var storesUrl = 'https://reserve.cdn-apple.com/GB/en_GB/reserve/iPhone/stores.json'; | |
var stockUrl = 'https://reserve.cdn-apple.com/GB/en_GB/reserve/iPhone/availability.json'; | |
var stockLastUpdated; | |
var stores; |
This file contains 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
Show hidden characters
{ | |
"class": "icon_folder_dup", | |
"layer0.texture": "Theme - Default/icons/folder_dup.png", | |
"layer0.opacity": 1.0, | |
"content_margin": [8, 8] | |
} |