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
[prod] | |
host=service-prod.xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com | |
user=username | |
dbname=mydb | |
[dev] | |
host=service-dev.xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com | |
user=username | |
dbname=mydb |
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
--TEST-- | |
Hello | |
--FILE-- | |
<?php | |
$conn = new PDO("pgsql:options='-c client_encoding=utf8'", "postgres"); | |
$stmt = $conn->query("show client_encoding"); | |
echo $stmt->fetchColumn(0), PHP_EOL; | |
$conn = new PDO("pgsql:options='-c client_encoding=sql_ascii'", "postgres"); | |
$stmt = $conn->query("show client_encoding"); |
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
{ | |
"version": "2.29", | |
"license": "", | |
"extract_dir": "", | |
"url": "http://downloads.sourceforge.net/project/keepass/KeePass%202.x/2.29/KeePass-2.29.zip", | |
"depends": "", | |
"homepage": "http://keepass.info/", | |
"hash": "2d3d4207583d4e9c4fc289299fcc02387d7778209972c0cc00f14e9512aaa79b", | |
"bin": "KeePass.exe" | |
} |
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
highlight MatchParen cterm=underline ctermbg=0 ctermfg=250 |
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 | |
namespace spec; | |
use PhpSpec\ObjectBehavior; | |
use Prophecy\Argument; | |
class ExampleSpec extends ObjectBehavior | |
{ | |
function let(\StdClass $obj1, \StdClass $obj2) |
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
#!env ruby | |
require "rspec/core/formatters/base_text_formatter" | |
f = RSpec::Core::Formatters::BaseTextFormatter.new(nil) | |
RSpec::Core::Formatters::BaseTextFormatter::VT100_COLORS.each do |k, v| | |
puts f.colorize(k.to_s, v) | |
end | |
red, green, blue = 4, 1, 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.provision "shell", path: "provison_root.sh" | |
config.vm.provision "shell", path: "provison_vagrant.sh" | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
end |
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
ishida=# select * from generate_series(1, 3) as i, generate_series(1, i) as j; | |
i | j | |
---+--- | |
1 | 1 | |
2 | 1 | |
2 | 2 | |
3 | 1 | |
3 | 2 | |
3 | 3 | |
(6 行) |
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 | |
class FooTest extends PHPUnit_Framework_TestCase | |
{ | |
/** @runInSeparateProcess */ | |
function testFoo() { $this->fail(); } | |
function prepareTemplate(Text_Template $tpl) { | |
echo $tpl->render(); | |
exit; | |
} |
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
var formTable = $(".category-32, .category-33, .category-34") | |
.find("table.entryFormTable"); | |
$("tr:eq(3), tr:eq(4), tr.detail-fade", formTable).css( | |
"display", "none" | |
); |
NewerOlder