Skip to content

Instantly share code, notes, and snippets.

View SevInf's full-sized avatar

Serhii Tatarintsev SevInf

  • Berlin
  • 14:00 (UTC +02:00)
View GitHub Profile
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"
#!/bin/bash
# Setup and start Sauce Connect for your TravisCI build
# This script requires your .travis.yml to include the following two private env variables:
# SAUCE_USERNAME
# SAUCE_ACCESS_KEY
# Follow the steps at https://saucelabs.com/opensource/travis to set that up.
#
# Curl and run this script as part of your .travis.yml before_script section:
# before_script:
rootUrl: http://localhost:8080
gridUrl: http://localhost:4444/wd/hub
browsers:
- phantomjs
@SevInf
SevInf / gist:7010893
Last active December 25, 2015 17:09
test for APW
var assert = require('assert'),
Q = require('Q'),
APW = require('./index.js');
var defers = ['A', 'B', 'C*', 'D*', 'E*', 'F*', 'G*'].reduce(function (res, key) {
res[key] = Q.defer();
return res;
}, {});
function createNode(id, run) {
@SevInf
SevInf / RestKit.podspec
Created January 26, 2012 10:35
RestKit 0.9.4-dev podspec
Pod::Spec.new do |s|
s.name = 'RestKit'
s.version = '0.9.4'
s.summary = 'RestKit is a framework for consuming and modeling RESTful web resources on iOS and OS X.'
s.homepage = 'http://www.restkit.org'
s.author = { 'Blake Watters' => '[email protected]' }
s.source = { :git => 'https://github.com/RestKit/RestKit', :commit=>'c19a500ca8145295e0a518019c036e585dc42094' }
# It has no source_files itself, so the resolver should not allow dependencies on this spec unless it’s a `part_of' type dependency
@SevInf
SevInf / gist:1388323
Created November 23, 2011 10:04
RelativeLayout example
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_vertical" >
<TextView
android:id="@+id/first"
android:text="1"
android:layout_centerHorizontal="true"