Skip to content

Instantly share code, notes, and snippets.

View liamzebedee's full-sized avatar
™️
'drop all repos

Liam Zebedee liamzebedee

™️
'drop all repos
View GitHub Profile
diff -r 92fce13b87d4 calendar/base/content/dialogs/calendar-event-dialog.js
--- a/calendar/base/content/dialogs/calendar-event-dialog.js Fri Feb 15 21:37:24 2013 -0500
+++ b/calendar/base/content/dialogs/calendar-event-dialog.js Sat Feb 16 21:54:16 2013 +1000
@@ -6,6 +6,7 @@
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://calendar/modules/calRecurrenceUtils.jsm");
Components.utils.import("resource:///modules/mailServices.js");
+Components.utils.import("chrome://messenger/content/msgComposeTab.js");
try {
@liamzebedee
liamzebedee / gist:5055929
Last active January 29, 2019 14:49
thunderbird-composetab-3
diff -r a49f5ca048d9 calendar/base/content/dialogs/calendar-event-dialog.js
--- a/calendar/base/content/dialogs/calendar-event-dialog.js Sat Jan 12 11:37:57 2013 -0500
+++ b/calendar/base/content/dialogs/calendar-event-dialog.js Thu Feb 28 20:57:59 2013 +1000
@@ -6,6 +6,7 @@
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://calendar/modules/calRecurrenceUtils.jsm");
Components.utils.import("resource:///modules/mailServices.js");
+Components.utils.import("chrome://messenger/content/msgComposeTab.js");
try {
http://ilkka.github.com/blog/2010/11/20/hosting-a-jekyll-blog-with-extensions-on-github/
http://blog.blindgaenger.net/generate_github_pages_in_a_submodule.html
http://oxlade39.github.com/blogging/2012/04/20/Jekyll,-Github,-Plugins-and-automated-deployment.html
module X
class Page
alias_method :_url, :url
def url
# XXX
end
end
@liamzebedee
liamzebedee / rpc.rb
Created August 11, 2013 11:25
BitWeav preliminary JSON-RPC over HTTP with Basic Auth
# Ok so I've been looking for over 3 hours in total for a nice, simple, RPC solution for local clients. I couldn't find any, so I built this.
module BitWeavD
# We use JSON-RPC over HTTP with basic authentication
class ClientRPC
RESPONSE = {
'result' => [],
'id' => nil,
'error' => nil,
}
@liamzebedee
liamzebedee / x.js
Created November 20, 2013 00:23
warpwallet cracker
dictionar = ['ab',
'ac',
'ad',
'ae',
'af',
'ag',
'ah',
'ai',
'aj',
'ak',
import nltk
text = """The Buddha, the Godhead, resides quite as comfortably in the circuits of a digital
computer or the gears of a cycle transmission as he does at the top of a mountain
or in the petals of a flower. To think otherwise is to demean the Buddha...which is
to demean oneself."""
# Used when tokenizing words
sentence_re = r'''(?x) # set flag to allow verbose regexps
([A-Z])(\.[A-Z])+\.? # abbreviations, e.g. U.S.A.
// Generated on 2014-07-18 using generator-angular 0.9.5
'use strict';
// http://www.clock.co.uk/blog/a-guide-on-how-to-cache-npm-install-with-docker
var servers = {
proxyPort: 8080,
desktopClientFrontend: 'http://0.0.0.0:10000',
mobileClientFrontend: 'http://0.0.0.0:9000',
railsApiPort: 11000,
@liamzebedee
liamzebedee / Dockerfile
Created February 2, 2015 00:56
dockerfile for a node app
FROM nodesource/node:trusty
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir /app
WORKDIR /app
ADD ./package.json /app/package.json
ADD ./node_modules /app/node_modules
RUN npm install
@liamzebedee
liamzebedee / CheatSheet.cs
Created October 29, 2015 23:42
Code Contracts cheatsheet
Contract.Ensures(Contract.Result<T>() != null);
Contract.Requires(T != null);
Contract.ForAll(Collection, (element) => element != null)
Contract.Requires(Contract.ForAll(Collection, (element) => element != null));
Contract.Invariant(condition);
[ContractInvariantMethod]
private void ObjectInvariant () {}