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
// Input Clearing | |
$.fn.cleardefault = function() { | |
return this.focus(function() { | |
if( this.value == this.defaultValue ) { | |
this.value = ''; | |
} | |
}).blur(function() { | |
if( !this.value.length ) { | |
this.value = this.defaultValue; |
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 | |
#Download the latest copy of WordPress into a directory, grab all the files in the new /wordpress folder | |
#Put all the files in the current directory, remove the now empty /wordpress directory | |
#Remove the tarball | |
#download latest wordpress with wget | |
wget http://wordpress.org/latest.tar.gz | |
#OR using CURL |
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
// Variables defined in _variables.scss | |
// Usage @include breakpoint(medium) { width: XXX } | |
@mixin breakpoint($point) { | |
@if $point == massive { | |
@media (min-width: $massiveViewportWidth) { @content; } | |
} | |
@else if $point == xxl { | |
@media (min-width: $xxlargeViewportWidth) { @content; } | |
} |
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
## Varnish to sit on top of Nginx web server | |
## App running on WordPress with W3 Total Cache plugin running | |
backend default { | |
.host = "localhost"; | |
.port = "8080"; | |
} | |
acl purge { | |
"localhost"; | |
} |
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
// Declare variables to hold twitter API url and user name | |
var twitter_api_url = 'http://search.twitter.com/search.json'; | |
var keyword = 'iphone5'; | |
var tweet_limit = 3; | |
// Enable caching | |
$.ajaxSetup({ cache: true }); | |
/* The returned JSON object will have a property called "results" where we find | |
* a list of the tweets matching our request query |
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 | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
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 | |
$mailto = "Houndstooth Administrator <[email protected]>"; | |
$mailfrom = "[email protected]"; | |
if ($_SERVER['REQUEST_URI'] != "/wp-content/db-error.php") { | |
$headers = "From: " . $mailfrom; | |
$message = "Something broke here: http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; | |
$subject = "DB error at ".$_SERVER['SERVER_NAME']; | |
mail($mailto,$subject,$message,$headers); |
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
/*global module:false*/ | |
module.exports = function(grunt) { | |
'use strict'; | |
// readOptionalJSON | |
// by Ben Alman | |
// https://gist.github.com/2876125 | |
function readOptionalJSON( filepath ) { | |
var data = {}; | |
try { |
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://www.facebook.com/feeds/page.php?id=XXXXXXXXXXXXX&format=rss20 |
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
# ============================================================================== | |
# REQUIRED 3RD PARTY COMPASS EXTENSIONS | |
# ============================================================================== | |
# ============================================================================== | |
# COMPASS PROJECT CONFIGURATION | |
# ============================================================================== | |
# Can be `:stand_alone` or `:rails`. Defaults to `:stand_alone`. |
OlderNewer