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
function swapimage(elem_id, img_src) { | |
document.getElementById(elem_id).src = img_src; | |
} |
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/perl | |
use strict; | |
use constant PLUGIN_DIR => 'http://svn.wp-plugins.org/'; | |
#argument 1 should be file name with 1 plugin slug per line | |
while(<>) { | |
chomp; | |
checkout($_); | |
} |
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
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
# https://github.com/alacritty/alacritty | |
import: | |
# https://github.com/dracula/alacritty | |
- ./.dracula.yml | |
window: | |
# Values for `decorations` (macOS only): | |
# - transparent: Title bar, transparent background and title bar buttons |
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
;(function($) { | |
$.fn.myPlugin = function(options) { | |
var defaults = { | |
}; | |
var options = $.extend(defaults, options); | |
function log(message) { /* debug function */ | |
if (console && console.log) { |
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
perl -MFile::Find=find -MFile::Spec::Functions -Tlwe \ | |
'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' |
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
# keyboard bindings: http://www.ibb.net/~anne/keyboard/keyboard.html | |
if ($term == "xterm" || $term == "vt100" \ | |
|| $term == "vt102" || $term !~ "con*") then | |
# bind keypad keys for console, vt100, vt102, xterm | |
bindkey "\e[1~" beginning-of-line # Home | |
bindkey "\e[7~" beginning-of-line # Home rxvt | |
bindkey "\e[2~" overwrite-mode # Ins | |
bindkey "\e[3~" delete-char # Delete | |
bindkey "\e[4~" end-of-line # End | |
bindkey "\e[8~" end-of-line # End rxvt |
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
/* | |
* WordCountTestCase Class | |
* Expects: paragraph, integer for expected count, array of expected words, and a test name | |
* returns boolean, test results logged to console | |
*/ | |
function WordCountTestCase(paragraph, expectedCount, expectedWords, testName) { | |
this.testName = testName || 'Test'; | |
this.paragraph = paragraph; | |
this.expectedCount = expectedCount; | |
this.expectedWords = expectedWords; |
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
//for additional examples, see: http://www.stevesouders.com/p3pc/ | |
var theOtherScript = 'http://example.com/js/script.js'; | |
var el = document.createElement('script'); | |
el.async = false; | |
el.src = theOtherScript; | |
el.type = 'text/javascript'; | |
(document.getElementsByTagName('HEAD')[0]||document.body).appendChild(el); |
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
" Enable pathogen | |
call pathogen#infect() | |
" Standard Vim settings | |
filetype on | |
filetype indent on | |
filetype plugin on | |
syntax on |
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
ack -o -h --nogroup --css 'url\((.*)\)' --output "\$1" | ack -o "^['\"](.*)['\"]$" --output "\$1" --passthru | sort -u |
OlderNewer