Skip to content

Instantly share code, notes, and snippets.

View twxxk's full-sized avatar

Iwasaki Teruyuki twxxk

  • Atamasoft
  • Tokyo, Japan
View GitHub Profile
@twxxk
twxxk / gist:2659
Created July 26, 2008 14:34
tickを使った非同期実行の単純なサンプル
<?php
/**
* 非同期実行の意味なしサンプル
*/
class A {
private $name;
public function __construct($name){
$this->name = $name;
}
/**
@twxxk
twxxk / .htaccess
Created October 16, 2008 14:44
Zend Framework 1.6.2のZend_Toolで作られたファイル
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]
<?php
error_reporting(E_ALL | E_STRICT);
set_include_path(
dirname(__FILE__)
. PATH_SEPARATOR . dirname(__FILE__) . '/application/library'
. PATH_SEPARATOR . get_include_path()
);
include_once 'Zend/Loader.php';
<?php
/**
* phpinfox.php
* 単一ファイルでphpinfoおよび、入力したコードの実行結果を確認できる
* PHP5用
*
* @author twk
*/
/*
@twxxk
twxxk / fewerMore
Created January 9, 2015 15:09
^https?://.*\.salesforce\.com/
var $fewerMoreLink = $('.fewerMore a');
if ($fewerMoreLink.size() == 2) {
var $more = $fewerMoreLink.eq(1);
var $much = $more.clone();
var s = $much.attr('href');
s = s.replace(/rowsperpage=\d+/g, 'rowsperpage=3500');
$much.attr('href', s).text(' ▼much more');
$more.after($much);
@twxxk
twxxk / rolodex.js
Created January 9, 2015 15:11
^https?://.*\.salesforce\.com/01p
$('.rolodex a').each(function(i, a){
var $a = $(a);
var href = $a.attr('href');
if (href.indexOf('rowsperpage=') < 0) {
href += 'rowsperpage=3500';
$a.attr('href', href);
}
});