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
/* | |
Usage: | |
WaitForCondition( | |
() => _selenium.GetAttribute(string.Format("//div[@id='{0}']@style", divIdToWatch)).IndexOf("block") >= 0, | |
5000); | |
*/ | |
private static void WaitForCondition(Func<bool> condition, int timeoutInMilliseconds) |
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
<%@ 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; |
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
<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;} |
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 e=document.getElementsByTagName('input'); for(var i=0;i<e.length;i++){if (e[i].getAttribute('type')=='password') {alert(e[i].value);}} |
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
#!/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 |
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
# cd to your project directory | |
cd "d:\my luverly project\" | |
# get all the images | |
$images = Get-ChildItem "d:\my luverly project\img\" -Exclude "*.config" | |
# for each image.. | |
foreach($img in $images){ | |
$found = "" |
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
LOADING=false | |
usage() | |
{ | |
cat << EOF | |
usage: $0 [options] <DBNAME> | |
OPTIONS: | |
-h Show this help. | |
-l Load instead of export |
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
{ | |
"plugins": ["ID", "X-GM-EXT-1", "XOAUTH2","STARTTLS", "SASL-IR", "AUTH-PLAIN", "NAMESPACE", "IDLE", "ENABLE", "CONDSTORE", "XTOYBIRD", "LITERALPLUS", "UNSELECT", "SPECIAL-USE", "CREATE-SPECIAL-USE"], | |
"debug": true, | |
"secureConnection": true, | |
"port": 993, | |
"smtpPort": 465, | |
"users": [ | |
{"testuser":{ | |
"password": "testpass", | |
"xoauth2":{ |
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
{ | |
"INBOX":{ | |
"messages": [ | |
{"raw": "Subject: hello 1\r\n\r\nWorld 1!", "internaldate": "14-Sep-2013 21:22:28 -0300"}, | |
{"raw": "Subject: hello 2\r\n\r\nWorld 2!", "flags": ["\\Seen"]}, | |
{"raw": "Subject: hello 3\r\n\r\nWorld 3!"}, | |
{"raw": "From: sender name <[email protected]>\r\nTo: Receiver name <[email protected]>\r\nSubject: hello 4\r\nMessage-Id: <abcde>\r\nDate: Fri, 13 Sep 2013 15:01:00 +0300\r\n\r\nWorld 4!"}, | |
{"raw": "Subject: hello 5\r\n\r\nWorld 5!"}, | |
{"raw": "Subject: hello 6\r\n\r\nWorld 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
Param( | |
[string]$Server, | |
[string]$DB, | |
[string]$user, | |
[string]$Pwd, | |
[string]$Script | |
) | |
$batches = $Script -split "GO\r\n" |
OlderNewer