This file contains 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 | |
/** | |
* Created: Sat Aug 05 02:19:40 EDT 2006 | |
* | |
* A base class for application wide E-Mail sending/logic inspired | |
* by the Ruby on Rails ActionMailer. | |
* | |
* The Actionmailer is a hybrid of a Model and Controller since it | |
* renders it's own views to be send out via mail. The easiest way to |
This file contains 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
// "/" is delimiter for style/caption | |
FCKConfig.FontSizes = 'small/小;medium/中;large/大' ; |
This file contains 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
repo for a more modern version of qt (4.7) | |
http://atrpms.net/documentation/install/ | |
http://packages.atrpms.net/dist/el5/qt4/ | |
cat /etc/yum.repos.d/atrpms.repo | |
[atrpms] | |
name=ATrpms manual | |
baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/testing/ | |
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms |
This file contains 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
#!/usr/bin/ruby | |
require 'rexml/document' | |
xml = REXML::Document.new | |
xml << REXML::XMLDecl.new('1.0', 'UTF-8') | |
testsuites = xml.add_element("testsuites") | |
#initialize vars |
This file contains 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
[yandod@localhost workspace]$ cakerunner --cakephp-app-path /home/yandod/github/candycane/app --log-junit=log.xml -R /home/yandod/github/candycane/app/tests/cases/ | |
ERROR: option --log-junit is ambiguous | |
pear info piece/stagehand_testrunner | |
> About pear.piece-framework.com/Stagehand_TestRunner-2.16.0 |
This file contains 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
#!/usr/bin/ruby | |
master_file = "./redmine-0.8.1/lang/en.yml" | |
local_file = "./redmine-0.8.1/lang/ru.yml" | |
class Gloc2gettext | |
def Gloc2gettext.parse(fname) | |
tmpmap = Hash.new | |
File.open(fname){|f| | |
i = 0; |
This file contains 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
{ | |
"cc_nyancat":{ | |
"id":"cc_nyancat", | |
"name":"Nyan Down Chart", | |
"description":"This plugin make you nyan'd!!", | |
"url":"https:\/\/github.com\/downloads\/yandod\/cc_nyancat\/cc_nyancat-v0.2.zip", | |
"author":"yandod", | |
"author_url":"https:\/\/github.com\/yandod", | |
"version":"0.1" | |
}, |
This file contains 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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
</head> | |
<body> | |
<?php | |
//DBの接続情報 | |
$user = 'root'; | |
$pass = 'pass'; |
This file contains 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 | |
$keyword = ''; | |
if (isset($_POST['keyword'])) { | |
$keyword = $_POST['keyword']; | |
} | |
mysql_connect('localhost','user','password'); | |
mysql_select_db('cakephp_sample'); | |
mysql_query('set names utf8'); | |
$sql = sprintf( |
This file contains 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
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | |
CREATE TABLE IF NOT EXISTS `categories` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` tinytext COLLATE utf8_unicode_ci NOT NULL, | |
`created` datetime NOT NULL, | |
`modified` datetime NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; |
OlderNewer