Skip to content

Instantly share code, notes, and snippets.

View nojimage's full-sized avatar

Takashi Nojima nojimage

View GitHub Profile
@nojimage
nojimage / basic.css
Created August 26, 2009 13:15
basic.css
@CHARSET "utf-8";
/**
* basic css
*
* Initialize Layout
*
* @author nojimage
*
*/
@nojimage
nojimage / app_cookie.php
Created September 15, 2009 04:46
app_cookie.php
@nojimage
nojimage / mimeDecode.php
Created October 24, 2009 15:49
Mail_mimeDecode fix
<?php
/**
* Mail_mimeDecodeStructureを返すように変更したMail_mimeDecode
*
* The Mail_mimeDecode class is used to decode mail/mime messages
*
* This class will parse a raw mime email and return
* the structure. Returned structure is similar to
* that returned by imap_fetchstructure().
*
@nojimage
nojimage / mt4-mysql-analyze-tables.sql
Created November 5, 2009 09:28
mt4-mysql-analyze-tables
ANALYZE TABLE mt_as_ua_cache;
ANALYZE TABLE mt_asset;
ANALYZE TABLE mt_asset_meta;
ANALYZE TABLE mt_association;
ANALYZE TABLE mt_author;
ANALYZE TABLE mt_author_meta;
ANALYZE TABLE mt_blog;
ANALYZE TABLE mt_blog_meta;
ANALYZE TABLE mt_cacheblock_cache;
ANALYZE TABLE mt_category;
@nojimage
nojimage / eclipse-cakephp-link-helper.php
Created November 6, 2009 02:39
eclipse-cakephp-link-helper.php
@nojimage
nojimage / http_oauth_sample.php
Created November 9, 2009 01:07
HTTP_OAuth sample
<?php
// require HTTP_OAuth
require_once('HTTP/OAuth/Consumer.php');
/* Twitterの認証情報を格納するためにセッションを開始 */
session_start();
/* Consumer key from twitter */
$consumer_key = '{ここにConsumer keyを貼り付け}';
/* Consumer Secret from twitter */
@nojimage
nojimage / app_controller.php
Created November 27, 2009 12:32
cakephp authコンポーネントのサンプル
<?php
/**
* AppController
*
* PHP version 5
*
* @copyright Copyright 2009, nojimage
* @link http://php-tips.com/
* @package app
* @subpackage app
@nojimage
nojimage / gist:247996
Created December 3, 2009 08:43
.svnと.DS_Storeをまとめて削除するコマンドのエイリアス
alias clean-svn='rm -rf `find . -type d -name .svn`'
alias clean-dsstore='rm -rf `find . -type f -name .DS_Store`'
@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 / jquery.alternation.js
Created December 10, 2009 06:17
jquery.alternation.js
/**
* jQuery Alternation Markup Plugin
*
* Copyright 2009, nojimage (http://php-tips.com/)
*
* Licensed under The MIT License Redistributions of files must retain the above
* copyright notice.
*
* @filesource
* @version 1.0