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
# oh-my-zsh Zen Theme | |
### Git | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[green]%}%{$reset_color%}%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_no_bold[white]%}☁%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_no_bold[magenta]%}▴%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_no_bold[magenta]%}▾%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg_no_bold[green]%}✚%{$reset_color%}" |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
#ZSH_THEME="robbyrussell" | |
#ZSH_THEME="cloud" | |
#ZSH_THEME="wedisagree" # throws an error |
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
var runningProcessCount = 0, | |
processQueuePosition = 1, | |
processLimit = 2, | |
totalProcesses = 10; | |
function throttleProcesses(){ | |
if(processLimit > runningProcessCount){ | |
fakeProcess(); | |
return true; | |
} else { |
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
var $$$i = 0, | |
$$mt = []; | |
while(navigator.mimeTypes[$$$i]){ | |
$$mt.push(navigator.mimeTypes[$$$i]); | |
$$$i++; | |
} | |
console.table($$mt.map(function(i,v,a){ | |
return { | |
'name':i.description||i.enabledPlugin.description, |
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
var | |
express = require( 'express' ), | |
connect = require('connect'), | |
app = express(); | |
count = 0; | |
app.configure( function() { | |
app.use(connect.urlencoded()); | |
app.use(connect.json()); | |
}); |
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
'use strict'; | |
// ****** BEGIN SOLUTION TIMER ******* // | |
module.exports = (function () { | |
// all times will be measured in seconds by default | |
return function (_arrayOfTimes, _scriptTimeLimit, _timerCallback, _timeLimitCallback, _useMilliseconds) { // _useSeconds - add this later to add the ability to measure in milliseconds | |
var _startTime = 0, // the time this script started | |
_initialPlayTime = 0, // the time the playhead initially started |
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 FPSUtils { | |
import flash.display.DisplayObject; | |
import flash.display.MovieClip; | |
import flash.display.Stage; | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.IEventDispatcher; | |
import flash.external.ExternalInterface; | |
import flash.utils.clearInterval; | |
import flash.utils.getTimer; |
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
// see if this is a mobile browser | |
var w = window, d = document; | |
var regex = /mobi|android|webos|blackberry|ipad|ipod|iphone|tablet|phone|kindle/i; | |
r.mobile = regex.test(ua) || regex.test(w.navigator.platform); | |
if (r.mobile) { | |
if (w.chrome || w.performance) { // this is an android device posing as an iPhone | |
if (w.Worker) { // android 4.4+ |
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
var open = require('open'); | |
var url = require('url'); | |
var http = require('http'); | |
var twitterAPI = require('node-twitter-api'); | |
var Q = require('q'); | |
var authObject = (function () { | |
var deferred = Q.defer(); | |
var twitter = {}; | |
var token = {}; |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<link href="test-styles.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body bgcolor="#FFFF99" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> | |
<div style="position:relative; border:10px solid #228b22; width:820px; height:250px;"> | |
<!-- first frame is positioned where it will be in view by the container iframe in the parent document --> |
OlderNewer