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 DataSourceQueue(config) { | |
// console.log(config, Y.DataSource.Local.transactions); | |
this._ds = config.host; | |
this.transactions = []; | |
this._ds.after('request', this.add, this); | |
this._ds.on('response', function(e) { | |
console.log('DS response', e.tId); |
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
import sublime, sublime_plugin, re, os | |
# TODO | |
# check indention (spaces/tabs/size, current indention ) | |
# insert right where the pointer is, or insert right before the closing } of the class? | |
# check of these generator getter/setters already exist? make it idempotent? | |
class GeneratorCommand(sublime_plugin.TextCommand): | |
def fixup(self, string): |
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
<?php | |
/* | |
Plugin Name: Flash Panels | |
Description: This plugin handles the flash panels that can be used on SheKnows Blogs | |
*/ | |
class FlashPanelPostType | |
{ | |
private $args = array( | |
'labels' => array(), |

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
<?php | |
# compl1.php - Redis autocomplete example | |
# download female-names.txt from http://antirez.com/misc/female-names.txt | |
$redis = new Redis(); | |
$redis->connect('127.0.0.1'); | |
# Create the completion sorted set | |
if (!$redis->exists('compl')) { | |