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
//build.gradleのテンプレート | |
/*root*/ | |
buildscript { | |
repositories { | |
jcenter() | |
mavenCentral() | |
mavenLocal() | |
maven { url 'http://download.crashlytics.com/maven' } | |
} |
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
#macとRaspberryPiを有線LANで直接繋いだ時に、RaspPi側のipaddressを知るのに素敵なコマンド | |
sudo tcpdump | grep "192.168.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
/* Copyright 2015 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
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
weight = 9.5 # your dog weight | |
isCastration = True # your dog coefficient | |
coefficient = 1.8 | |
if isCastration: | |
coefficient = 1.6 | |
calorie = coefficient * (30 * weight + 70) | |
print calorie |
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
echo "start adb shell capture" | |
DATE=$(date +%Y%m%d%H%M%S) | |
FILENAME=${DATE}.mp4 | |
DROPBOX_ID=****** | |
adb shell screenrecord --verbose --time-limit 5 /sdcard/demo.mp4 | |
adb pull /sdcard/demo.mp4 ~/Dropbox/Public/capture/${FILENAME} | |
adb shell rm /sdcard/temp.png | |
DROPBOX_URL=https://dl.dropboxusercontent.com/u/${DROPBOX_ID}/capture/${FILENAME} |
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 python | |
# -*- coding: utf-8 -*- | |
""" | |
backlogが出力したcsvファイルをgitlabに登録するスクリプト | |
user_id は予め登録しておく必要があります。 | |
users に追記してください。 | |
gitlabのtokenは暫定で特定ユーザーのものを利用しています。 |
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
# Script Name : fabfile.py | |
# Author : shikajiro | |
# Created : 2016-11-03 | |
# Last Modified : 2016-11-21 | |
# Version : 1.1.0 | |
# Modifications : | |
# Description : | |
# Script to perform the build of Android on another machine | |
# By performing such a build of severely time on another machine, | |
# it is possible to ensure the CPU resources of the development machine, |
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
rename 's/\@2x//' * |
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
# coding=utf-8 | |
import time | |
from selenium import webdriver | |
if __name__ == '__main__': | |
try: | |
browser = webdriver.Chrome('./chromedriver') |
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
autoshell(){ | |
[[ -n $AUTOLS_DIR ]] && [[ $AUTOLS_DIR != $PWD ]] && [ -e ./.start.sh ] && ./.start.sh | |
AUTOLS_DIR="${PWD}" | |
} | |
PROMPT_COMMAND="autoshell" |