Skip to content

Instantly share code, notes, and snippets.

View nojimage's full-sized avatar

Takashi Nojima nojimage

View GitHub Profile
@nojimage
nojimage / jquery.socialbutton.js
Created March 25, 2011 12:35
jquery.socialbutton.js add tumblr button
/**
* jquery.socialbutton - jQuery plugin for social networking websites
* http://itra.jp/jquery_socialbutton_plugin/
*
* Copyright 2010, Itrans, Inc. http://itra.jp/
*
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Version: 1.7.3
# Original code is http://wb.mysql.com/?p=777
# import the wb module
from wb import *
# import the grt module
import grt
# import the mforms module for GUI stuff
import mforms
@nojimage
nojimage / content.md
Last active May 25, 2022 01:30
MariaDBのダンプをMySQL Workbenchで取る方法
@nojimage
nojimage / gearman-code-completion.php
Created September 16, 2011 05:10
pecl gearman classes code completion for NetBeans
<?php
/**
* for code completion
*
* @link http://docs.php.net/manual/en/book.gearman.php
*/
if (false) {
define('GEARMAN_SUCCESS', 0);
@nojimage
nojimage / session_acl_component.php
Created January 14, 2011 11:12
CakePHP ACL Caching using Session
<?php
/**
* AclComponent using Session Cache for CakePHP 1.3
*
* Copyright 2011, nojimage (http://php-tips.com/)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
@nojimage
nojimage / xdebug-3-upgrade-guide.ja.md
Last active December 29, 2020 00:26
Xdebug 3 アップグレードガイド

Xdebug 3 アップグレードガイド

原文: https://xdebug.org/docs/upgrade_guide

Xdebug 2 から 3 へのアップグレード

An upgrade guide detailing which changes there are between Xdebug 2 and 3, and how to reconfigure your set-up to do similar things.

このアップグレードガイドは、Xdebug 2から3への変更点と、同様のことを行うようにセットアップを再構成する方法を詳しく説明します。

@nojimage
nojimage / index.html
Created December 4, 2009 17:07
jquery.justify.js
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jQuery Justify</title>
<script type="text/javascript" src="js/jquery.1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.justify.js"></script>
<script type="text/javascript">
$(document).ready(function(){
@nojimage
nojimage / 01-instration
Created September 16, 2011 02:44
gearman with mysql in macports
sudo port install gearmand +drizzle
sudo port install php5-gearman
sudo vim /Library/LaunchDaemons/org.macports.gearmand.plist
@nojimage
nojimage / init-vmware-catalina.sh
Last active March 17, 2020 05:00
Fixes VMWare black screen when macOS update to Catalina
#!/bin/sh
#
# Running on macOS Recovery Mode Terminal
#
# 1. Save this script to Your home dir.
# eg) /Users/your-name/init-vmware-catalina.sh
#
# 2. Restart the machine and go to Recovery Mode.
# (hold [⌘ + R] when the computer starts until you see an Apple logo)
@nojimage
nojimage / AppModel.php
Created March 29, 2012 12:22
CakePHP paginate using MySQL SQL_CALC_FOUND_ROWS
class AppModel extends Model {
/**
* set SQL_CALC_FOUND_ROWS for MySQL
*
* @param array $conditions
* @param array $fields
* @param array $order
* @param int $limit
* @param int $page
* @param int $recursive