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
[alias] | |
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort | |
b = branch -a | |
br = browse-remote | |
ci = commit | |
co = checkout | |
d = diff | |
dc = diff --cached | |
di = diff | |
dic = diff --cached |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('#story a').bind('click', function(e){ | |
e.preventDefault(); | |
$('#cover').css({ | |
'position':'absolute', | |
'left': '0', | |
'top': '0', | |
'width': $(window).width(), | |
'height': $(window).height() |
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 | |
function foo(){ | |
$a = array("test"=>array("a","b")); | |
return( | |
empty($a['test']) || !in_array("c", $a["test"]) //=>ture | |
// empty($a['test']) //=>false | |
// !in_array("c", $a["test"]) //=>ture | |
); | |
} |
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
<!-- 通常のインデント --> | |
<key>guide</key> | |
<string>#444444</string> | |
<!-- 自分が今いるインデント --> | |
<key>activeGuide</key> | |
<string>#E48254</string> | |
<!-- 自分が今いるインデントの親 --> | |
<key>stackGuide</key> | |
<string>#607b60</string> |
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 | |
$array = explode("\n", $text); // とりあえず行に分割 | |
$array = array_map('trim', $array); // 各要素をtrim()にかける | |
$array = array_filter($array, 'strlen'); // 文字数が0のやつを取り除く | |
$array = array_values($array); // これはキーを連番に振りなおしてるだけ |
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 URI | |
# Ignore private folder | |
/app/private/* | |
!/app/private/empty | |
# Ignore packed asset files | |
/app/webroot/css/packed/* | |
!app/webroot/css/packed/.htaccess | |
/app/webroot/js/packed/* |
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
//click | |
<a href="javascript:void(0)"> | |
<img src="./../img/button/radio_off.png" alt="off" class="imgChange" /><input type="hidden" value=""/> | |
</a> | |
<script type="text/javascript"> | |
$(function(){ | |
$(".imgChange").click(function(){ | |
var imgSrc = $(this).attr("src"); |
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 $this->Html->scriptStart(array('inline' => false)); ?> | |
$(function(){ | |
$(".pagination li.paginateChild a").each(function() { | |
var origin_link = $(this).attr('href'); | |
console.log(origin_link); | |
var link = "/place" + origin_link; $(this).attr("href", link); |
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
sudo find . -type f -name "*.*" | xargs grep --color "pre.lancers" |
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
# .bashrc | |
# User specific aliases and functions | |
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then |
OlderNewer