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 items = [], | |
textItems = []; | |
items.push(document.querySelectorAll(".friendListItem")); | |
for (var i = 0; i < items[0].length; i++) { | |
textItems.push(items[0][i].childNodes[2].textContent); | |
}; | |
textItems; |
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
# http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
boot=/dev/mmcblk0p1 disk=/dev/sda1 ssh quiet |
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
/** | |
* Format for a Credit Card | |
* @return {string} Formatted number | |
*/ | |
module.filter("creditcard", function() { | |
return function(str) { | |
if(typeof str !== "undefined"){ | |
var nums = str.substr(0,19).replace(/[^\d]/gi,""); | |
var r = nums.match(/(\d){4}/g); | |
r[1] = r[1].replace(/[0-9]/g, "*"); |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
@function strip-unit($value) { | |
@return $value / ($value * 0 + 1); | |
} | |
@function em($px, $base: $font-size) { |
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
# Attempt to load files from production if they're not in our local version | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
# Replace http://stevegrunwell.com with your production site's domain name | |
RewriteRule (.*) http://stevegrunwell.com/wp-content/uploads/$1 | |
</IfModule> | |
# source: https://stevegrunwell.com/blog/keeping-wordpress-under-version-control-with-git/ |
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
//list terms in a given taxonomy (useful as a widget for twentyten) | |
$args = array( | |
'post_type' => 'staff', | |
'include' => $item_arr | |
); | |
$staff_query = get_posts($args); | |
$output .= '<div class="staff-grid">'; | |
$i = 0; | |
$wrap_count = 2; |
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 config = { | |
timeout: 0, | |
batch: 5, | |
count: 0 | |
}; | |
var init = function(cb) { | |
if(!config.mp3List) { | |
config.mp3List = $("a[href*='.mp3']"); |
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> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>A simple clock</title> | |
</head> | |
<body translate="no" > |
OlderNewer