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 | |
name=`basename $0` | |
prlctl list --info "${1}" > /dev/null | |
if [ "$?" -eq 0 ] ; then | |
os="$1" | |
id=`prlctl snapshot-list "${os}" | grep -oE '\*{.*\}' | tr -d '*{}'` | |
action="$2" |
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
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="style.css"> | |
<script src="jquery-1.10.0.js"></script> | |
<script src="jquery.tabs.js"></script> | |
<script> | |
$(function () { | |
$("nav").tabs({ |
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 ssid to (do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport --getinfo") | |
if ssid contains "家のSSID" then | |
tell application "Finder" | |
delay 10 | |
mount volume "afp://サーバのアドレス/ディレクトリ(任意)" | |
-- 複数マウントしたいときは上の行をコピペして増やす | |
end tell | |
end if |
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 zipit() { | |
string_dirpath=$(cd `dirname $1` > /dev/null && pwd) | |
string_filepath=${string_dirpath}/`basename $1` | |
echo "Attempt to zip \"${string_filepath}\"" | |
if [ -e $string_filepath ] ; then | |
echo "It exists!" | |
string_filename=`basename $1` | |
date=`date +"%Y%m%d%H%M%S"` |
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
/** | |
* iOS 10〜 | |
* San Francisco, ヒラギノの組み合わせ | |
*/ | |
@charset "utf-8"; | |
textarea { | |
font-family: monospace; | |
} |
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/local/bin/bash | |
for i in {10..60..5} | |
do | |
echo "---------------------------------------------" | |
echo "[start] rate: $i %" | |
echo "---------------------------------------------" | |
find . -name "*.png" -print0 | xargs -0 -I{} cwebp -q $i {} -o {}-$i.webp | |
echo "---------------------------------------------" | |
echo "[finish] rate: $i % " |
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 | |
function cmp_ssim() { | |
echo $1 | |
pyssim $1 $2 | |
} | |
cmp_ssim $1 $2 |
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
'use strict'; | |
// 全体の設定 | |
var DST_BUCKET = 'xxxxxxxxxxx'; // WebP が格納されるバケット | |
var SRC_BUCKET = 'xxxxxxxxxxx'; // イベントソース | |
var ACCESS_KEY = 'XXXXXXXXXXXXXXXXXXXX'; // アクセスキーID | |
var SECRET_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; // シークレットキー | |
var REGION = 'ap-northeast-1'; // リージョン | |
var ACCEPTED_EXTENTIONS = ["png", "jpg", "gif"]; // 拡張子 |
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
body { | |
text-rendering: optimizeLegibility; | |
-webkit-font-smoothing: antialiased; | |
} | |
a { | |
color: #4078c0; | |
} | |
a:hover, a:focus { |
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
.loom { | |
font-size: 100%; | |
line-height: 1.8; | |
} | |
#wikicard { | |
padding: 0; | |
border: none; | |
background-color: transparent; | |
margin-top: -30px; |
OlderNewer