Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| // This is the Android version of the Tweetie-like pull to refresh table: | |
| // http://developer.appcelerator.com/blog/2010/05/how-to-create-a-tweetie-like-pull-to-refresh-table.html | |
| var win = Ti.UI.currentWindow; | |
| var alertDialog = Titanium.UI.createAlertDialog({ | |
| title: 'System Message', | |
| buttonNames: ['OK'] | |
| }); | |
| var scrollView = Ti.UI.createScrollView({ |
| # | |
| # Wide-open CORS config for nginx | |
| # | |
| location / { | |
| if ($request_method = 'OPTIONS') { | |
| add_header 'Access-Control-Allow-Origin' '*'; | |
| # |
| <?php | |
| /** | |
| * Excludes users from BuddyPress Members list. | |
| * | |
| * @param string $qs Query string. | |
| * @param string $object object loop identikfier. | |
| * | |
| * @return string | |
| */ | |
| function bpdev_exclude_users( $qs = false, $object = false ) { |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| /** | |
| * Remove the group activity post form | |
| */ | |
| add_action( 'bp_before_group_activity_post_form', create_function( '', 'ob_start();' ), 9999 ); | |
| add_action( 'bp_after_group_activity_post_form', create_function( '', 'ob_end_clean();' ), 0 ); |
| <?php | |
| /* | |
| Plugin Name: Easy Digital Downloads - Variable Pricing License Activation Limits | |
| Plugin URL: http://easydigitaldownloads.com/extension/ | |
| Description: Limit the number of license activations permitted based on variable prices | |
| Version: 1.0 | |
| Author: Pippin Williamson | |
| Author URI: http://pippinsplugins.com | |
| Contributors: mordauk | |
| */ |
| /*jslint undef: false, browser: true, devel: false, eqeqeq: false, bitwise: false, white: false, plusplus: false, regexp: false, nomen: false */ | |
| /*global wp,jQuery */ | |
| jQuery(document).ready(function($) { | |
| if (!window.wp || !window.wp.media) { | |
| return; | |
| } | |
| var media = window.wp.media; |
| <?php | |
| /** | |
| * File class | |
| * | |
| * @package Molajo | |
| * @copyright 2013 Amy Stephen. All rights reserved. | |
| * @license MIT, GPL v2 or later | |
| */ | |
| namespace Molajo; |
| <?php | |
| function bbg_activity_subnav( $items, $menu, $args ) { | |
| // Find the Activity item | |
| $bp_pages = bp_core_get_directory_page_ids(); | |
| if ( isset( $bp_pages['activity'] ) ) { | |
| $activity_directory_page = $bp_pages['activity']; | |
| } else { | |
| return $items; |
| <?php | |
| /* | |
| beginning of the code to paste in the functions.php of the active theme (twentyten, twentyeleven or twentytwelve) | |
| If you want to adapt it to your theme, you'll need to check if it uses some body_class to render its layout and eventually | |
| adapt lines 70 to 101. | |
| */ | |
| class Imath_WP_Editor_Template | |
| { | |