Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
<?php | |
/** | |
* Define type of server | |
* | |
* Depending on the type other stuff can be configured | |
* Note: Define them all, don't skip one if other is already defined | |
*/ | |
define( 'DB_CREDENTIALS_PATH', dirname( ABSPATH ) ); // cache it for multiple use |
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
/* Micro ClearFix Mixin */ | |
.clearfix{ | |
zoom:1; | |
&:before, &:after{ content:""; display:table; } | |
&:after{ clear: both; } | |
} |
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Database Name: " | |
read -e dbname | |
echo "Database User: " | |
read -e dbuser | |
echo "Database Password: " |
<?php | |
/* Custom Config for Batcache */ | |
// Determine if this is a WP Touch User Agent | |
function is_wptouch_user_agent() { | |
// This needs to match your WP Touch list!! | |
$useragents = array( | |
// Apple iOS/Webkit | |
"iphone", "ipod", "incognito", "webmate", | |
// Android OS |
; CNAME | |
calendar 1 IN CNAME ghs.googlehosted.com | |
drive 1 IN CNAME ghs.googlehosted.com | |
mail 1 IN CNAME ghs.googlehosted.com | |
sites 1 IN CNAME ghs.googlehosted.com | |
video 1 IN CNAME ghs.googlehosted.com | |
; MX | |
@ 1 IN MX 10 aspmx3.googlemail.com | |
@ 1 IN MX 1 aspmx.l.google.com |
// Long Polling (Recommened Technique - Creates An Open Connection To Server ∴ Fast) | |
(function poll(){ | |
$.ajax({ url: "server", success: function(data){ | |
//Update your dashboard gauge | |
salesGauge.setValue(data.value); | |
}, dataType: "json", complete: poll, timeout: 30000 }); | |
})(); |
$ = jQuery | |
queues = {} | |
running = false | |
queue = (name) -> | |
name = 'default' if name is true | |
queues[name] or= [] | |
next = (name) -> |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
<?php | |
/* | |
Plugin Name: ACF Customizer Patch | |
Plugin URI: https://gist.github.com/fabrizim/9c0f36365f20705f7f73 | |
Description: A class to allow acf widget fields to be stored with normal widget settings and allow for use in customizer. | |
Author: Mark Fabrizio | |
Version: 1.0 | |
Author URI: http://owlwatch.com/ | |
*/ | |
class acf_customizer_patch |