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
#!/usr/bin/env ruby | |
# Resolve issues automatically when users push code - Bitbucket - Atlassian Documentation | |
# https://confluence.atlassian.com/display/BITBUCKET/Resolve+issues+automatically+when+users+push+code | |
require "readline" | |
# commands | |
resolve = Regexp.union(%w(close closes closed closing fix fixed fixes fixing resolve resolves resolved resolving)) | |
reopen = Regexp.union(%w(reopen reopens reopening)) |
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
#!/bin/bash | |
# dry-run | |
DRYRUN=0 | |
# Requires inkscape | |
if ! type inkscape >/dev/null 2>&1; then | |
echo "Inkscape is NOT installed." | |
exit 1 | |
fi |
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
#!sh | |
# Re-concatenate command. Care quoted arguments. | |
command="git" | |
while [ "$1" != "" ] | |
do | |
space_contain=`echo $1 | grep "\s"` | |
if [ "" != "$space_contain" ] | |
then | |
command="$command \"$1\"" |
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
/** | |
* Converts RGB or RGBA format to Hex format. | |
* e.g. "rgb(28, 166, 171)" -> "#1ca6ab" | |
* | |
* @param rgba A color of RGB or RGBA format. | |
* @return A color of Hex format; | |
*/ | |
function rgba2hex(rgba) { | |
var regex = /rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+)\s*)?\)/ | |
parsed = regex.exec(rgba), red, green, blue, alpha, elems; |
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
package com.example.fragmenttest; | |
import java.io.Serializable; | |
import android.app.AlertDialog; | |
import android.app.AlertDialog.Builder; | |
import android.app.Dialog; | |
import android.content.DialogInterface; | |
import android.os.Bundle; | |
import android.support.v4.app.DialogFragment; |
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
#!/bin/bash | |
# git-graph-completion | |
# =================== | |
_git_graph () | |
{ | |
_git_log | |
} |
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
#!/bin/bash | |
options='--all' | |
if [ -n "$*" ] | |
then | |
options=$* | |
fi | |
git log --graph --date-order -C -M --pretty=format:'<%h> %ad [%an] %Cgreen%d%Creset %s' --date=iso $options |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
... その他のitem要素 ... | |
<!-- nose, left --> | |
<item | |
android:bottom="247dp" | |
android:left="113dp" | |
android:right="155dp" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- left antenna's stroke --> | |
<item | |
android:bottom="350dp" | |
android:left="85dp" | |
android:right="248dp" | |
android:top="0dp"> | |
<rotate |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | |
... 胴体の下に置きたい要素 ... | |
<!-- body(ドロイド君の胴体): 外枠からのtop,bottom,left,rightを記述して位置・大きさを指定 --> | |
<item | |
android:bottom="82dp" | |
android:left="60dp" | |
android:right="60dp" |