Skip to content

Instantly share code, notes, and snippets.

@jyokyoku
jyokyoku / jquery.twitterTrackback.custom.js
Created August 1, 2011 23:32
jQuery TwetterTrackback Custom
(function($) {
$.fn.twitterTrackback = function(options){
$.twitterTrackback.init(this, options);
$.twitterTrackback.update(1);
return this;
};
$.twitterTrackback = {
$element: null,
options: {
@jyokyoku
jyokyoku / mysql_log.php
Created July 9, 2011 13:25
CakePHP DboMysqlLog
<?php
App::import('Datasource', 'DboSource');
App::import('Datasource', 'DboMysql');
class DboMysqlLog extends DboMysql
{
function execute($sql, $options = array()) {
$defaults = array('log' => ($this->fullDebug || Configure::read('Sql.log')));
$options = array_merge($defaults, $options);
@jyokyoku
jyokyoku / gist:443d2d17c27d80bc0985
Created November 3, 2014 19:59
Convert iTunes Playlist to Walkman
require 'rubygems'
music_dir = '/Music'
ARGV.each do |filename|
ext = File.extname(filename).downcase
if ext != '.m3u' || !FileTest.exist?(filename)
next
end