馃嚭馃嚘
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
# git | |
alias gitp="git push origin master" | |
alias gitf="git pull origin master" | |
alias gits="git status" | |
function gita { | |
git add . | |
if [ -z "$1" ]; then | |
echo -n "Enter commit message: " | |
read msg | |
git commit -m $msg |
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 getTrackList() { | |
var trackNoClass = ".number"; | |
var artistClass = ".section-artist"; | |
var trackClass = ".section-title"; | |
var timeClass = "input.section-time.ng-pristine"; | |
// var artists = []; | |
var tracks = $(".section-row").map(function() { | |
var trackNo = $(this).find(trackNoClass).text().trim(); |
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 | |
header('Content-Type: text/html; charset=utf-8'); | |
/** | |
* [helper fn for en/de (crypt) strings] | |
* @var string | |
*/ | |
$mod = ( isset( $_GET['mod'] ) ? $_GET['mod'] : '' ); | |
$val = ( isset( $_GET['val'] ) ? $_GET['val'] : '' ); |
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
# Search for cask, select & install | |
## 0.1 Inlife | |
function caskdo { | |
echo 'Searching...'; | |
OPTIONS=($(brew cask search $1 | grep -e '^[^=]')); | |
if [[ "$OPTIONS" == *"No Cask found"* ]]; then | |
echo "Not found anything like \"$1\"" | |
else | |
echo 'Select number of cask you want to install: ' |
NewerOlder