Skip to content

Instantly share code, notes, and snippets.

@cthrax
cthrax / x
Created July 6, 2009 15:27
dictionary.com ubiquity command for parser v2
/* command "define" */
CmdUtils.makeSearchCommand({
names: ["define"],
icon: "http://dictionary1.classic.reference.com/favicon.ico",
homepage: "http://dictionary.com",
author: { name: "Myles Bostwick", email: "ubiquity@zithora.com"},
license: "GPL",
description: "Search Dictionary.com",
help: "define: your word",
url: "http://dictionary.reference.com/browse/{QUERY}",
@cthrax
cthrax / dictionary.com.js
Created July 10, 2009 15:06
dictionary.com ubiquity command for parser v1
/* command "define" */
CmdUtils.CreateCommand({
name: "define",
icon: "http://dictionary1.classic.reference.com/favicon.ico",
homepage: "http://dictionary.com",
author: { name: "Myles Bostwick", email: "ubiquity@zithora.com"},
license: "GPL",
description: "Search Dictionary.com",
help: "define: your word",
takes: {"input": noun_arb_text},
@cthrax
cthrax / x.js
Created July 10, 2009 15:07
dictionary.com ubiquity command for parser v2
/* command "define" */
CmdUtils.makeSearchCommand({
names: ["define"],
icon: "http://dictionary1.classic.reference.com/favicon.ico",
homepage: "http://dictionary.com",
author: { name: "Myles Bostwick", email: "ubiquity@zithora.com"},
license: "GPL",
description: "Search Dictionary.com",
help: "define: your word",
url: "http://dictionary.reference.com/browse/{QUERY}",
@cthrax
cthrax / module.js
Created May 5, 2014 17:47
Quick demo of using angular module.run.
angular.module("smartadmin.init.activity", [])
.run(function() {
// ACTIVITY
// ajax drop
$('#activity').click(function(e) {
var $this = $(this);
if ($this.find('.badge').hasClass('bg-color-red')) {
$this.find('.badge').removeClassPrefix('bg-color-');
$this.find('.badge').text("0");
var LocationQuery = function() {
this.projects = null;
this.parameters = null;
this.labels = null;
this.gpsBounds = null;
this.pageObject = null;
this.query = {};
};
LocationQuery.prototype._addToQuery = function(prop) {
@cthrax
cthrax / fiddle.html
Created September 22, 2017 22:49 — forked from mikekirby/fiddle.html
simplify attributes
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="ProgId" content="Excel.Sheet" />
<meta name="isi:reportVersion" content="1.0" />
<meta name="isi:reportId" content="93aef679-8e9d-4fb6-865c-4ad11ae8dd75" />

Keybase proof

I hereby claim:

  • I am cthrax on github.
  • I am cthrax (https://keybase.io/cthrax) on keybase.
  • I have a public key ASBO5Vxo1XJ2P9OyjeVpeqRhGgQCz9uIj1Ke1LX6FkzYxwo

To claim this, I am signing this object: