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
!#/usr/bin/php | |
<?php | |
# Username | |
$username = ''; | |
# Location of waves.txt file | |
$waves_txt = ''; | |
# Private key. Optional if you want to include private bookmarks | |
$private_key = ''; |
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
# convert video to mp4 | |
for f in "$@" | |
do | |
/usr/local/bin/HandBrakeCLI -i "$f" -o "$f.mp4" --preset="iPhone / iPod Touch" --longest -b 256 | |
done |
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
#!/usr/bin/env ruby | |
# Block sort in ruby | |
content = STDIN.read | |
lines = content.split(/\n\n+/).sort | |
lines.each { |line| puts line + "\n\n" } |
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
// Simulate a click event on the matched id | |
HTMLElement.prototype.click = function() | |
{ | |
var evt = this.ownerDocument.createEvent('MouseEvents'); | |
evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); | |
this.dispatchEvent(evt); | |
} | |
document.getElementById("id").click(); |
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 fields = { | |
'email': { | |
'value': '[email protected]', | |
'aka': ['email', 'email_address', 'emailAddress'] | |
}, | |
'first_name': { | |
'value': 'First Name', | |
'aka': ['first_name', 'firstName', 'first', 'firstname'] | |
}, | |
'last_name': { |
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 | |
/** | |
* Validate | |
*/ | |
class Validator | |
{ | |
/** | |
* form validation rules and options | |
* |
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
#------------------------------------------------------------------------------- | |
# Drawer | |
#------------------------------------------------------------------------------- | |
myExtraIncludes = ".tm_properties,.htaccess,.gitignore" | |
fileBrowserGlob = "{*,$myExtraIncludes}" | |
include = "{$include,$myExtraIncludes}" | |
#------------------------------------------------------------------------------- | |
# Search | |
#------------------------------------------------------------------------------- |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>io.redis.redis-server</string> | |
<key>ProgramArguments</key> | |
<array> |
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
#!/usr/bin/env bash | |
# Set up the environment. | |
set -e | |
POW_ROOT="$HOME/Library/Application Support/Pow" | |
POW_CURRENT_PATH="$POW_ROOT/Current" | |
POW_VERSIONS_PATH="$POW_ROOT/Versions" | |
POWD_PLIST_PATH="$HOME/Library/LaunchAgents/cx.pow.powd.plist" | |
FIREWALL_PLIST_PATH="/Library/LaunchDaemons/cx.pow.firewall.plist" |
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
tabSelect: function(args) { | |
var queryString = greenplum.queryString(); | |
if (typeof(queryString.selected_tabs) == 'string') { | |
var selectedTabs = queryString.selected_tabs.split(','); | |
var parentTabs = ''; | |
for (var i=0; i < selectedTabs.length; i++) { | |
var index = jQuery('[href~=#' + selectedTabs[i] + ']', parentTabs).parent('li').index(); | |
var tabs = jQuery(jQuery('#' + selectedTabs[i], parentTabs).parents('.tabs')[0]); | |
tabs.tabs().tabs('select', index); | |
var parentTabs = jQuery('#' + selectedTabs[i], parentTabs); |
OlderNewer