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
from selenium import webdriver | |
from selenium.webdriver.remote.remote_connection import RemoteConnection | |
from selenium.webdriver.remote.errorhandler import ErrorHandler | |
class PersistentWebdriver (webdriver.Remote): | |
def __init__(self, command_executor='http://127.0.0.1:4444/wd/hub', | |
desired_capabilities=None, browser_profile=None, proxy=None, |
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
<VirtualHost *:80> | |
ServerName www.sixminute.com | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\.sixminute\.com [NC] | |
RewriteCond %{HTTP_HOST} ^(.*?)\.?sixminute\.com$ | |
RewriteRule ^/(.*) http://www.sixminute.com/%1/$1 [P] | |
ProxyPassReverse / http://www.sixminute.com/%1/ |
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
/* | |
Copyright 2013 Seadna Long. All Rights Reserved. | |
This program is free software. You can redistribute and/or modify it in | |
any way. | |
*/ | |
package com.bluemanimposter.custom.starling.display | |
{ | |
import starling.display.DisplayObjectContainer; | |
import starling.display.Image; |
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
package | |
{ | |
import flash.display.Loader; | |
import flash.display.LoaderInfo; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.net.URLRequest; | |
import flash.system.LoaderContext; | |
public class RedirectTest extends Sprite |
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
import sh | |
class CommandWrapper(sh.Command): | |
''' | |
Here's the 'secret sauce' class, where we can wrap whatever we want for | |
python usage. | |
''' | |
def __init__(self, baseObject): |
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
from . import app, db | |
def sendEmail(email_subject, email_from, email_to, email_reply_to, email_msg): | |
try: | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from boto.ses.connection import SESConnection | |
m = MIMEMultipart() |
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
import argparse | |
import sys | |
import os | |
import shutil | |
import re | |
import shlex | |
import subprocess | |
import plistlib | |
from functools import wraps |
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
01-26 12:21:55.815 966-966/com.sixminute.freeracing D/GPLogin﹕ onActivityResult with requestCode = 9001, responseCode=-1, intent=null | |
01-26 12:21:55.866 966-966/com.sixminute.freeracing I/Unity﹕ onResume | |
01-26 12:21:55.870 966-966/com.sixminute.freeracing I/Unity﹕ windowFocusChanged: true | |
01-26 12:21:55.916 966-1003/com.sixminute.freeracing D/Unity﹕ Sensor : Accelerometer ( 1) ; 0.000595 / 0.00s ; MPU6515 Accelerometer / InvenSense | |
01-26 12:21:56.101 966-966/com.sixminute.freeracing D/GPLogin﹕ onConnected() called. Sign in successful! | |
01-26 12:21:56.113 966-1229/com.sixminute.freeracing D/GPLogin﹕ Getting GP accessToken with com.prime31.UnityPlayerNativeActivity@187789a4, xxxxxxxxx@gmail.com, audience:server:client_id:40xxxxx17-55xxxxxxxx4ji.apps.googleusercontent.com | |
01-26 12:21:56.167 966-966/com.sixminute.freeracing I/GPLogin﹕ Access token retrieved:xxxxxxxxx.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTA3OTkzMzI4MTQxNDc1ODE2MzM5IiwiYXpwIjoiNDAxODIxODQ1MDE3LWtmb |
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
public class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Pet rex; | |
rex = Something.MakeSomething<Pet>(); | |
BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic; |
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
using UnityEditor; | |
using System; | |
using System.Collections.Generic; | |
public class GameBuilder | |
{ | |
static void Android() | |
{ | |
List<EditorBuildSettingsScene> scenes = new List<EditorBuildSettingsScene>(EditorBuildSettings.scenes); | |
List<string> enabledScenes = new List<string>(); |
OlderNewer