#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
var toast=function(msg){ | |
$("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h3>"+msg+"</h3></div>") | |
.css({ display: "block", | |
opacity: 0.90, | |
position: "fixed", | |
padding: "7px", | |
"text-align": "center", | |
width: "270px", | |
left: ($(window).width() - 284)/2, | |
top: $(window).height()/2 }) |
$data = <<<EOF | |
Filesystem 1K-blocks Used Available Use% Mounted on | |
ubi0_0 143180 89740 53440 63% / | |
tmpfs 64 0 64 0% /dev | |
tmpfs 143124 76 143048 0% /tmp | |
tmpfs 4096 912 3184 22% /var | |
tmpfs 64 0 64 0% /mnt | |
ubi1_0 468256 12144 456112 3% /opt/data/settings | |
EOF; |
<?php | |
use PHPUnit_Framework_TestCase as BaseTestCase; | |
class TestFixer extends BaseTestCase | |
{ | |
public function fix(&$target, $source, $keep = false) { | |
if (!$source) { | |
return; | |
} |
<?php | |
class EmailTestCase extends PHPUnit_Framework_TestCase { | |
/** | |
* @var \Guzzle\Http\Client | |
*/ | |
private $mailcatcher; | |
public function setUp() | |
{ |
# config/initializers/webpack_dev_server.rb | |
if Rails.development? | |
Rails.application.config.middleware.use WebpackDevServerProxy, dev_server_host: "localhost:9000" | |
end |