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.common.keys import Keys | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
import simplejson | |
# Set up an array of the browsers we test on | |
browser_array = [ | |
{'browser': 'IE', 'browser_version': '8.0', 'os': 'Windows', 'os_version': '7', 'resolution': '1024x768'}, | |
{'browser': 'IE', 'browser_version': '9.0', 'os': 'Windows', 'os_version': '7', 'resolution': '1024x768'}, | |
{'browser': 'IE', 'browser_version': '10.0', 'os': 'Windows', 'os_version': '8', 'resolution': '1024x768'}, |
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/bash | |
# installs and sets up homebrew, apache, mysql, and php on a mac | |
echo '' | |
echo 'Installing and configuring Homebrew.' | |
echo '' | |
# install homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
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
/*----------------------------------------*\ | |
This is a collection of snippets from the | |
A Book Apart publication "Sass For Web | |
Designers", by Dan Cederholm. | |
\*----------------------------------------*/ | |
$width-small: 400px; | |
$width-medium: 760px; | |
$width-large: 1200px; |
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 | |
// finds the last URL segment | |
$urlArray = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); | |
$segments = explode('/', $urlArray); | |
$numSegments = count($segments); | |
$currentSegment = $segments[$numSegments - 1]; | |
?> | |
<?php if ( $currentSegment == "index.php" ) { ?>active<?php } ?> |
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
(<lastmod>)(.*)(</lastmod>) |
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
@mixin pointer($background, $borderwidth, $bordercolor, $arrowsize, $arrowposition) { | |
background: $background; | |
border: $borderwidth solid $bordercolor; | |
&:after, &:before { | |
@if $arrowposition == 'top' { | |
bottom: 100%; | |
left: 50%; | |
} | |
@if $arrowposition == 'bottom' { | |
top: 100%; |
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
/* iPhone 6 landscape */ | |
@media only screen and (min-device-width: 375px) | |
and (max-device-width: 667px) | |
and (orientation: landscape) | |
and (-webkit-min-device-pixel-ratio: 2) | |
{ } | |
/* iPhone 6 portrait */ | |
@media only screen | |
and (min-device-width: 375px) |
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
### Git Time | |
# Add this to your .oh-my-zsh theme if you're using those, or directly to your zsh theme :) | |
# Colors vary depending on time lapsed. | |
ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT="%{$fg[green]%}" | |
ZSH_THEME_GIT_TIME_SHORT_COMMIT_MEDIUM="%{$fg[yellow]%}" | |
ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG="%{$fg[red]%}" | |
ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL="%{$fg[cyan]%}" |
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
#InstallKeybdHook | |
; Language: English | |
; https://gist.github.com/chrisfcarroll/dddf32fea1f29e75f564 | |
; | |
; Uses unicode. Save this file as utf-8 with BOM. | |
; Else it shall not work. | |
; | |
#NoEnv ; Recommended | |
;SendMode Input ; Recommended |
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
/** | |
* Play or pause video based on visibility in window viewport. | |
* | |
* @param {any} video The video element. | |
* | |
* @memberof TabbedVideo | |
*/ | |
toggleVideoPlayback(video) { | |
var windowHeight = window.innerHeight, |
OlderNewer