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
CmdUtils.CreateCommand({ | |
name: 'tabs', | |
description: 'Count the number of tabs and windows you have open', | |
icon: 'https://addons.mozilla.org/img/app-icons/firefox.png', | |
author: { name: 'Joshua May', email: 'notjosh@gmail.com'}, | |
homepage: 'http://notjosh.com/', | |
execute: function() | |
{ | |
var wm = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator); | |
var counts = this._count(wm); |
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
shows the number of tabs (and windows) via the `tabs` command in ubuquity |
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
CmdUtils.CreateCommand({ | |
name: 'tabs', | |
description: 'Count the number of tabs and windows you have open', | |
icon: 'http://www.spreadfirefox.com/files/spreadfirefox_RCS_favicon.png', | |
author: { name: 'Joshua May', email: 'notjosh@gmail.com'}, | |
homepage: 'http://notjosh.com/', | |
execute: function() | |
{ | |
var wm = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator); | |
var counts = this._count(wm); |
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
#include <iostream> | |
#include <ctime> | |
using namespace std; | |
// here's the class. a constructor, the subtraction operator and the date property | |
class qDate | |
{ | |
public: | |
explicit qDate(time_t aDate); |
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
compo@compos-Mac-mini ~ » npm list | |
/Users/compo | |
└─┬ node.io@0.3.3 | |
├── coffee-script@1.1.1 | |
├── htmlparser@1.7.3 | |
└─┬ jquery@1.6.2 | |
└─┬ jsdom@0.2.0 | |
└── request@1.9.8 | |
compo@compos-Mac-mini ~ » npm list -g | |
/usr/local/lib |
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 nodeio = require('node.io'); | |
exports.job = new nodeio.Job({max: 1, retries: 1, auto_retry: false, jsdom: true }, { | |
/* init: function () { | |
//The initial input is page 1 of search results | |
this.input = ["http://www.nuffieldtheatre.co.uk/events/category/C81/"]; | |
},*/ | |
input: ["http://www.nuffieldtheatre.co.uk/events/category/C81/"], | |
run: function (search_page) { |
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
// | |
// NSDate+Comparison.h | |
// | |
// Created by Joshua May on 4/11/11. | |
// Copyright (c) 2011 Joshua May. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSDate (Comparison) |
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
#! /usr/bin/env ruby | |
# Password can be fetched from Keychain | |
# Password should be stored with the same username, and application name 'abnamro-credit-card' | |
HOST = 'https://creditcards.abnamro.nl' | |
LOGIN_URL = HOST + '/ABN_AMRO_Consumer/Login.do' | |
LOGIN_POST_URL = HOST + '/ABN_AMRO_Consumer/ProcessLogin.do' | |
ENGLISH_URL = HOST + '/ABN_AMRO_Consumer/ChangeLanguage.do?localeID=English&locationID=Transactions' |
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
#include "cinder/app/AppBasic.h" | |
#include "cinder/gl/gl.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; | |
#define NUMBER_OF_COLUMNS 12 | |
#define NUMBER_OF_ROWS 6 |
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
@interface CharacterSprite : CCSprite | |
@property (nonatomic, strong) HelloWorldLayer *layer; | |
@property (nonatomic, strong) CCAnimation *facingForwardAnimation; | |
@property (nonatomic, strong) CCAnimation *facingBackAnimation; | |
@property (nonatomic, strong) CCAnimation *facingLeftAnimation; | |
@property (nonatomic, strong) CCAnimation *facingRightAnimation; | |
@property (nonatomic, strong) CCAnimation *curAnimation; | |
@property (nonatomic, strong) CCAnimate *curAnimate; | |
OlderNewer