Requires:
-
Homebrew (http://mxcl.github.io/homebrew/)
-
Ruby
Verify Homebrew is not sick:
brew doctor
import gulp from 'gulp'; | |
import browserify from 'browserify'; | |
import source from 'vinyl-source-stream'; | |
import buffer from 'vinyl-buffer'; | |
import eslint from 'gulp-eslint'; | |
import exorcist from 'exorcist'; | |
import browserSync from 'browser-sync'; | |
import watchify from 'watchify'; | |
import babelify from 'babelify'; | |
import uglify from 'gulp-uglify'; |
/** | |
* when cf7 ajax-loader | |
* @param {[type]} form [description] | |
* @return {[type]} [description] | |
*/ | |
wpcf7.submit = function( form ) { | |
if ( typeof window.FormData !== 'function' ) { | |
return; | |
} |
<?php | |
namespace App\Lib; | |
use Utils; | |
class BulmaWalker extends \Walker_Nav_Menu | |
{ | |
private $cpt; // CPT, is current post a custom post type | |
private $archive; // Stores the archive page for current URL | |
public function __construct() |
Requires:
Homebrew (http://mxcl.github.io/homebrew/)
Ruby
Verify Homebrew is not sick:
brew doctor
<?php | |
/** | |
* Filter the output of image_downsize() to return dynamically generated images for intermediate or inline sizes. | |
* | |
* <p>Because Wordpress generates all image sizes on first upload, if you change | |
* theme or size settings after the upload, there won't be a matching file for | |
* the requested size.<br/> | |
* This filter addresses the problem of the default downsize process laoding | |
* a large file and scaling it down in the browser if it doesn't find the right | |
* size image. This can cause large files to be loaded unnecessarily and will |
Use case: Database entries are represented in a table. By grabbing and moving a row up or down the table, you can change the entries' order/position. The changes are submitted automatically via ajax.
/* Minifies HTML and removes comments (except IE tags and comments within script tags) | |
* | |
* To disable compression of code portions, use '<!--wp-html-compression no compression-->' tag | |
* | |
* @see http://forrst.com/posts/Wordpress_Minify_output_HTML-29q | |
* @see http://www.intert3chmedia.net/2011/12/minify-html-javascript-css-without.html | |
*/ | |
class WP_HTML_Compression | |
{ | |
// Settings |
#!/bin/bash | |
apt-get update | |
#Additional Packages | |
apt-get install -y cifs-utils winbind smbclient bindfs gvfs gvfs-bin keyutils unzip php5-ldap php5-mssql zsh | |
wget --no-check-certificate http://install.ohmyz.sh -O - | sh | |
chsh vagrant -s /bin/zsh |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
// ... | |
for (NSString* family in [UIFont familyNames]) | |
{ | |
NSLog(@"%@", family); | |
for (NSString* name in [UIFont fontNamesForFamilyName: family]) | |
{ | |
NSLog(@" %@", name); |