This file contains hidden or 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 | |
| # Runs a bootstrapped install for Meteor using iron-cli | |
| npm install -g iron-meteor && iron create newproject && cd newproject && iron add twbs:bootstrap aldeed:collection2 aldeed:autoform aldeed:delete-button aldeed:delete-button accounts-password ian:accounts-ui-bootstrap-3 natestrauser:font-awesome && iron |
This file contains hidden or 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/env ruby | |
| # Aside from removing Ruby on Rails specific code this is taken verbatim from | |
| # mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome | |
| # - Ryan Florence (http://ryanflorence.com) | |
| # | |
| # Install this hook to a remote repository with a working tree, when you push | |
| # to it, this hook will reset the head so the files are updated | |
| if ENV['GIT_DIR'] == '.' |
This file contains hidden or 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
| /** | |
| * This rather nifty snippet forces the category edit screen to be bound to a defined parent | |
| */ | |
| function fixUserTaxPage( $parent_file = '' ) { | |
| global $pagenow; | |
| $taxes = array('taxonomy1', 'taxonomy2', 'taxonomy3'); | |
| if ( ! empty( $_GET[ 'taxonomy' ] ) && in_array($_GET[ 'taxonomy' ], $taxes) && $pagenow == 'edit-tags.php' ) { |
This file contains hidden or 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 wp_admin_bar_my_custom_account_menu( $wp_admin_bar ) { | |
| $current_user = wp_get_current_user(); | |
| $profile_url = get_edit_profile_url( $current_user->ID ); | |
| if ( 0 != $user_id ) { | |
| // Add the "My Account" menu | |
| $avatar = get_avatar( $user_id, 28 ); | |
| $howdy = sprintf( __('Welcome, %1$s'), $current_user->display_name ); | |
| $class = empty( $avatar ) ? '' : 'with-avatar'; |
NewerOlder