Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# http://www.marcusoft.net/2014/03/setting-up-complete-node-development.html
clear
echo "******************************************************************************"
echo "Don't go anywhere - I'm going to need your input shortly.."
read -p "[Enter to continue]"
### Set up dependencies
# Configure sources & repos
@rposbo
rposbo / alert_pwd.js
Created October 14, 2011 13:31
forgotten password reminder
var e=document.getElementsByTagName('input'); for(var i=0;i<e.length;i++){if (e[i].getAttribute('type')=='password') {alert(e[i].value);}}
@rposbo
rposbo / countdown.html
Created September 15, 2011 21:43
@rposbo : UNOFFICIAL Mobile TFL Bus Countdown Board
<html>
<head>
<meta name="viewport" content="width=320" />
<title>@rposbo : UNOFFICIAL Mobile TFL Bus Countdown Board</title>
<style>
body {font-family:calibri; font-size:12px; width:auto; max-width:100%;}
#disclaimer {font-size:10px;}
#disclaimer img {float:left;}
#busListing {display:block;}
a:visited {color:blue;}
@rposbo
rposbo / Proxy.asmx
Created September 5, 2011 10:03
the most basic local proxy evah
<%@ WebService Language="C#" Class="Proxy" %>
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
@rposbo
rposbo / WaitForCondition.cs
Created August 15, 2011 08:51
handy little Selenium helper method to wait for a condition from the server side
/*
Usage:
WaitForCondition(
() => _selenium.GetAttribute(string.Format("//div[@id='{0}']@style", divIdToWatch)).IndexOf("block") >= 0,
5000);
*/
private static void WaitForCondition(Func<bool> condition, int timeoutInMilliseconds)