Skip to content

Instantly share code, notes, and snippets.

View jbrooksuk's full-sized avatar
🧑‍🚀

James Brooks jbrooksuk

🧑‍🚀
View GitHub Profile
@jbrooksuk
jbrooksuk / markdown.css
Created April 10, 2015 16:36 — forked from imjasonh/markdown.css
Ordered list
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@jbrooksuk
jbrooksuk / gist:de76b30d4c786d7f672d
Created January 21, 2015 10:00
git-verify-pack
This file has been truncated, but you can view the full file.
4d390885d709f97385ec581cf17c05852a3850d1 commit 400 267 12
486f8def9e531b3461b38292acc39e15db2dc077 commit 257 174 279
a7b22305c49c038b4ea791069d9dddbdd1f4842c commit 447 299 453
ebe2e27f9ddcb1d7cc7f94c4cf62219bb6dd51ac commit 442 298 752
1bf05c78baa46c8551e6899514f10916365db585 commit 545 355 1050
8f3f3792b039f2521af5389e5f5495bba1e790fe commit 301 206 1405
6a7a950042c0d4d3aed457671228898e782a5c6f commit 236 161 1611
7a7c98a05cbf6ea85fb9cd16eef0f74f41cfd091 commit 378 250 1772
a977d063a0335723d1a649bc0097bfade20f45ad commit 439 280 2022
82ea11bec90046e3f683dd648106794a60388b7f commit 692 433 2302
{
"class": "icon_folder_dup",
"layer0.texture": "Theme - Default/icons/folder_dup.png",
"layer0.opacity": 1.0,
"content_margin": [8, 8]
}
@jbrooksuk
jbrooksuk / index.js
Last active August 29, 2015 14:06 — forked from andy-berry-dev/index.js
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;
$.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 {
<?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());
#
# 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.
<?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");
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():
{
"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,