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 HogeTest extends PHPUnit_Framework_TestCase | |
{ | |
public function testDummy2() | |
{ | |
$this->assertTrue(true); | |
} | |
} |
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 | |
require 'vendor/autoload.php'; | |
$transport = Swift_SmtpTransport::newInstance('localhost', 25); | |
$mailer = Swift_Mailer::newInstance($transport); | |
$message = Swift_Message::newInstance(); | |
$message | |
->setFrom(['suzuki@example.com']) |
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
{ | |
"require": { | |
"swiftmailer/swiftmailer": "5.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
<?php | |
namespace Acme\HelloBundle\Tests\Service; | |
use \Phake; | |
use Acme\HelloBundle\Service\DummyService; | |
class DummyServiceTest extends \PHPUnit_Framework_TestCase | |
{ | |
private $dummyService; |
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
<div | |
id="hoge" | |
class="fuga" | |
> | |
</div> |
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
<!doctype html> | |
<html> | |
<head> | |
<!-- (1) --> | |
<meta charset="UTF-8"> | |
<style> | |
/* (2) */ | |
h1 { | |
/* (3) */ | |
font-weight: bold; |
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
SELECT | |
* | |
FROM | |
table | |
WHERE | |
flag = TRUE | |
AND | |
category IN ('a', 'b') | |
; |
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
series: [ | |
{ | |
name: 'name1', | |
stack: 'aaa', | |
data: [ | |
[Date.parse('2014-06-30'), 5], | |
[Date.parse('2014-07-01'), 3], | |
[Date.parse('2014-07-02'), 4], | |
[Date.parse('2014-07-03'), 7], | |
[Date.parse('2014-07-04'), 2] |
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
(defun swap-buffers () | |
"Swapping buffers in two windows" | |
(interactive) | |
(let ((current-w (frame-selected-window)) | |
(current-b (window-buffer (frame-selected-window))) | |
(other-w (get-lru-window)) | |
(other-b (window-buffer (get-lru-window)))) | |
(if (not (one-window-p)) | |
(progn | |
(select-window current-w) |
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
<source> | |
type tail | |
format /^(?<ip>[0-9\\.]+) \\S+ \\S+ \\[(?<time>[^\\]]+)\\] (?<server>\\S+) "(?<method>\\S+) (?<request_uri>\\S+) (?<http>\\S+)" (?<status>\\d+) (?<bytes>\\S+) \\S+ "(?<user_agent>[^\\"]+)"/ | |
time_format %d/%b/%Y:%T %z | |
path /var/log/tdiary_access.log | |
pos_file /var/log/td-agent/tdiary_access.log.pos | |
tag tdiary.access | |
</source> | |
<match tdiary.**> |
OlderNewer