Skip to content

Instantly share code, notes, and snippets.

View admc's full-sized avatar

Adam Christian admc

View GitHub Profile
@admc
admc / example_sauce
Created October 30, 2012 00:31
Example
var webdriver = require('wd');
var assert = require('assert');
var browser = webdriver.remote("ondemand.saucelabs.com", 80, "admc", "key");
browser.on('status', function(info){
console.log('\x1b[36m%s\x1b[0m', info);
});
browser.on('command', function(meth, path){
console.log(' > \x1b[33m%s\x1b[0m: %s', meth, path);
@admc
admc / .vimrc
Created October 15, 2012 05:12
vim rc
syntax on
set t_Co=256
colorscheme jellybeans
let g:Powerline_symbols = 'unicode'
" Highlight redundant whitespaces.
highlight RedundantSpaces ctermbg=blue guibg=blue
match RedundantSpaces /\s\+$\| \+\ze\t/
" Suppress all spaces at end/beginning of lines
nmap _s :%s/\s\+$//<CR>
@admc
admc / deploy issue
Created September 29, 2012 12:08
jitsu deploy
☁ wild.io [jitsu] : jitsu deploy
info: Welcome to Nodejitsu admc
info: jitsu v0.9.8
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/adam/Desktop/immersion/wild.io/package.json
data:
@admc
admc / package
Created September 18, 2012 00:31
package
{
"name": "wild",
"version": "0.0.1-4",
"private": true,
"scripts": {
"start": "node app.js"
},
"dependencies": {
"express": "3.0.0rc2",
"ejs": "latest",
@admc
admc / woot
Created September 18, 2012 00:22
nj deploy
(adam@Saturna-2)(%:40:wild.io): jitsu deploy
path.existsSync is now called `fs.existsSync`.
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in node app.js
warn: Creating new snapshot for version 0.0.1-4
info: Done creating snapshot 0.0.1-4
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
@admc
admc / package.json
Created September 17, 2012 20:57
cheers
{
"name": "cheers",
"subdomain": "cheers",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app"
},
"engines": {
"node": "0.8.x",
@admc
admc / in callback
Created January 28, 2012 09:34
awesome
var assert = require('assert')
, jellyfish = require('jellyfish');
var browser = jellyfish.createWebdriver();
// browser.opts.browserName = "iexplore";
// browser.opts.version = "9";
browser.on('result', function(res) {
console.log(browser.name + ' : '+browser.tid + ' - \x1b[33m%s\x1b[0m', JSON.stringify(res));
});
@admc
admc / pub
Created December 30, 2011 01:38
public job
var webdriver = require("../lib/main")
var browser = webdriver.remote("ondemand.saucelabs.com", 80, "admc", "key");
browser.desiredCapabilities.public = true;
browser.init(function() {
browser.get("http://www.jelly.io", function() {
browser.eval("window.location.href", function(a, o) {
console.log(o);
browser.get("http://www.seleniumhq.org", function() {
browser.quit(function() {

Node on WebOS

If you're already a member of the webOS 2.0 Early Access program, then you've already got all the tools you need to dive in to this workshop. Otherwise, here's what you need to do to get set up:

  1. Visit developer.palm.com and click Download SDK
  2. Follow the directions for your operating system to install the SDK and VirtualBox
  3. Download this backported version of node that works on webOS v1.4.5
2010-05-13 19:14:53,263 - beanstalk[manage_doc:96] - ERROR - Problem with tunnel f545d52ef524d7f758abb1daf303ce56: <type 'exceptions.Exception'>,Could not get status for instance_id 'ecbf7924-e2b8-6ea5-6c55-234056604cf6@chirashi#maki200' for 184.73.0.223: <class 'node.lvirt.NoDomainError'> Domain 'ecbf7924-e2b8-6ea5-6c55-234056604cf6' not found or unexpectedly disappeared.
2010-05-13 19:14:53,372 - beanstalk[update_instantiated_sauce_tunnel:500] - WARNING - sauce-tunnel(f545d52ef524d7f758abb1daf303d1c1,running,e6697d8a-1cd5-eadb-05e7-eb97f33b91b5@chirashi#maki208) could not retrieve client info: <type 'exceptions.Exception'>,Could not get status for instance_id 'e6697d8a-1cd5-eadb-05e7-eb97f33b91b5@chirashi#maki208' for 184.73.0.223: <class 'node.lvirt.NoDomainError'> Domain 'e6697d8a-1cd5-eadb-05e7-eb97f33b91b5' not found or unexpectedly disappeared.
2010-05-13 19:14:53,378 - beanstalk[manage_doc:96] - ERROR - Problem with tunnel f545d52ef524d7f758abb1daf303d1c1: <type 'exceptions.Exception'>,Could not get s