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
sshfs -o idmap=user username@ip:path mapped_folder |
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
/** | |
* QUnit - A JavaScript Unit Testing Framework | |
* | |
* http://docs.jquery.com/QUnit | |
* | |
* Copyright (c) 2011 John Resig, Jörn Zaefferer | |
* Dual licensed under the MIT (MIT-LICENSE.txt) | |
* or GPL (GPL-LICENSE.txt) licenses. | |
*/ |
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
<?php | |
$urls = array( | |
"http://vimeo.com/34633836", | |
"http://vimeo.com/34633836&dsfdsf&dhfjsdf=7fsdfjhdsk", | |
"http://www.youtube.com/watch?v=sYUKrUdYGHw&feature=youtu.be", | |
"http://www.youtube.com/watch?v=40F_kNd1VlY&feature=relmfu", | |
"http://www.youtube.com/watch?v=ia4O3CRSdDE&feature=g-all-u&context=G239539dFAAAAAAAAAAA" | |
); | |
function getId($str) { |
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
<?php | |
require_once "php-webdriver/__init__.php"; | |
class SomeTests extends PHPUnit_Framework_TestCase | |
{ | |
protected $session; | |
public function setUp() | |
{ | |
parent::setUp(); | |
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
/** | |
* Lighweight node app that will run phpunit tests async. The concept is to start the app with a environment flag and | |
* a CSV of browsers. App will then spawn child processes for each browser running your phpunit/selenium test suite | |
* with that browser and env flag passed. The result is a single test suite run concurrently on multiple browsers and | |
* devices with a single win/fail result from the node.js app. | |
*/ | |
// Verify arguments. | |
if (process.argv.length < 4) { | |
throw new Error("Usage: node batch-runner.js DEVELOPMENT Chrome,IE6,IE7"); |
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
// | |
// Runs a folder of tests or a single test, using QUnit and outputs a JUnit xml file ready for sweet integration with your CI server. | |
// | |
// @usage | |
// DISPLAY=:0 phantomjs qunit-runner.js --qunit qunit.js --tests tests-foler/ --package package.json --junit qunit-results.xml | |
// | |
// package.json is a common JS package file which contains a list of files that need to be loaded before the tests are run. In this instance | |
// the package.json lists the files for a JS SDK, that gets loaded and then the tests test the SDK. | |
// | |
// Designed to run via PhantomJS. |
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> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
</style> | |
</head> | |
<body> |
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
// Create tab group | |
var tabGroup = Titanium.UI.createTabGroup({ | |
barColor: "black" | |
}); | |
// Create home tab. | |
var win = Ti.UI.createWindow({ | |
title: "Record" | |
}); | |
// Tab for the recording pane. |
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
cachedImageView = function(basedir, uri, obj, attr, cacheage) { | |
/** | |
Appcelerator Titanium ImageView /w cache | |
This function attempts to cache a remote image and then returns it again | |
when it's requested. | |
The file is stored in a directory "basedir," this is to try and help | |
you keep files unique. It's not special or magical, but not dirty either. |
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
/** | |
* Simple benchmark class in Titanium. | |
* | |
* @usage | |
* Benchmark.start(); | |
* Benchmark.addMarker("Did some cool stuff."); | |
* Benchmark.end(); // Print that shit out. | |
* | |
* @author Gavin Cooper. | |
*/ |
NewerOlder