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
function git_diff_archive() | |
{ | |
dateTime=`date '+%Y%m%d%H%M'` | |
local diff="" | |
local h="HEAD" | |
if [ $# -eq 1 ]; then | |
if expr "$1" : '[0-9]*' > /dev/null ; then | |
diff="HEAD HEAD~${1}" | |
else |
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"; | |
require 'settlement/fastpay.php'; // ここで上のキーとか呼んでる | |
use FastPay\FastPay; | |
// エラーフラグとエラーメッセージのための変数 | |
$error_msg = ''; | |
$error_flg = FALSE; | |
// Fastpay に課金作成をトライ & エラー処理 |
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
set ssl:check-hostname no | |
set ssl:verify-certificate no |
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="foobar"></div>').append('body').hide(); |
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
ip = "172.17.8.#{i+100}" | |
config.vm.network :private_network, type: "dhcp", ip: ip | |
config.vm.network :public_network, type: "dhcp" |
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
$ docker run -d -p 80:80 \ | |
-v /c/Users/yourname/projects/repo/html:/var/www/html \ # マウントオプションでホストとの共有ディレクトリを指定 | |
--name apache darekano/apache | |
$ docker exec -it apache bash # コンテナの中に入る | |
root@7eaf997110d8:/# cd /var/www/html # くどいけど、コンテナの中のここはホスト=ゲストの共有ディレクトリ | |
root@7eaf997110d8:/var/www/html# ls -al | |
total 2 | |
drwxrwxrwx 1 1000 staff 4096 Feb 1 13:29 . | |
drwxr-xr-x 4 root root 4096 Feb 1 13:28 .. | |
-rwxrwxrwx 1 1000 staff 5667 Nov 5 09:08 .htaccess |
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
module.exports.register = function (Handlebars, options, params) { | |
'use strict'; | |
Handlebars.registerHelper('foo', function(str) { | |
return str; | |
}); | |
}; |
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
var $ = require('jquery'); | |
require('jquery.plugin01'); | |
require('jquery.plugin02'); |
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
$(function() { | |
var action = (function(jqObject) { | |
var content = jqObject.next('.content'); | |
var contentParent = content.parent(); | |
if(contentParent.hasClass('active')){ | |
content.slideUp('250',function(){ | |
contentParent.removeClass('active'); | |
}); | |
} else { | |
contentParent.addClass('active'); |
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
export function prevLocation(state = { | |
refDomNode: null, | |
method: null | |
}, action) { | |
switch (action.type) { | |
case LOCATION_CHANGE: | |
const method = action.payload.action | |
return Object.assign({},state,{ | |
method: method | |
}) |
OlderNewer