Wilson Mar
Based on fork of http://codepen.io/ainarela/pen/KwmNdW.
A Pen by Wilson Mar on CodePen.
Wilson Mar
Based on fork of http://codepen.io/ainarela/pen/KwmNdW.
A Pen by Wilson Mar on CodePen.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// From http://qtpseleniumsudhakar.blogspot.com/2014/02/measuring-response-time-using-timer-in.html | |
// Get the Start Time | |
long startTime = System.currentTimeMillis(); | |
// Sample app: Open the BMI Calculator Mobile Application | |
driver.get("http://dl.dropbox.com/u/55228056/bmicalculator.html"); | |
// Wait for the Calculate Button | |
new WebDriverWait(driver, 10).until(ExpectedConditions. |
// From http://www.rgagnon.com/javadetails/java-0132.html | |
// quoted in http://stackoverflow.com/questions/5471700/is-there-a-command-in-java-to-measure-the-execution-time | |
public class ExecutionTimer { | |
private long start; | |
private long end; | |
public ExecutionTimer() { | |
reset(); | |
start = System.currentTimeMillis(); |
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin |
#!/usr/bin/env bash | |
# (forked from https://gist.github.com/gregferrell/942639) | |
# Usage: | |
# ./git_move.sh git@repo_site.com:/my_repo.git origin/folder/path/ /destination/repo/path/ new/folder/path/ | |
# To prevent who repos being wiped out by blank options: | |
if [ $# -lt 4 ] ; then | |
echo "Usage: $0 git@repo_site.com:/my_repo.git origin/folder/path/ /destination/repo/path/ new/folder/path/" |
import java.io.*; | |
import java.net.*; | |
public class AprilTagReceive | |
{ | |
public static void main(String args[]) throws IOException | |
{ | |
DatagramSocket sock = new DatagramSocket(7709); | |
byte buf[] = new byte[65536]; |
grip --user mememe@me.com --pass ... $* 6419 |
This |
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |