This file contains hidden or 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
(defvar toggle-scratch-prev-buffer nil) | |
(defun toggle-scratch() | |
"go to *scratch* buffer" | |
(interactive) | |
(if (not (string= "*scratch*" (buffer-name))) | |
(progn | |
(setq toggle-scratch-prev-buffer (buffer-name)) | |
(switch-to-buffer "*scratch*")) | |
(switch-to-buffer toggle-scratch-prev-buffer))) |
This file contains hidden or 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 chrome-reload () | |
(interactive) | |
(shell-command "/usr/bin/osascript /path/to/chrome_reload.scpt" nil)) | |
(global-set-key (kbd "C-,") 'chrome-reload) |
This file contains hidden or 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
;; magit.el | |
(require 'magit) | |
(eval-after-load 'magit | |
'(progn | |
(set-face-bold-p 'magit-item-highlight nil) | |
(set-face-background 'magit-item-highlight nil) | |
(set-face-foreground 'magit-diff-add "#000000") | |
(set-face-background 'magit-diff-add "#ddffdd") |
This file contains hidden or 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 hidden or 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(['[email protected]']) |
This file contains hidden or 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); | |
// DKIM 用の Signer を作成する | |
$privateKey = file_get_contents('./default.private'); | |
$domainName = 'example.com'; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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; |