Skip to content

Instantly share code, notes, and snippets.

@hkurosawa
hkurosawa / util.gs
Last active October 31, 2020 07:54
Google App Scriptを使ってスプレッドシートに任意のkey-valueを保存する
/**
* 任意のシートにkey-valueを保存する
*/
class Variables{
constructor (sheet_name="variables") {
let app = SpreadsheetApp.getActiveSpreadsheet();
this.sheet = app.getSheetByName(sheet_name);
if (!this.sheet) {
//シートが存在しない場合は末尾に追加
app.insertSheet(sheet_name, app.getSheets().length);
@hkurosawa
hkurosawa / gist:3566e602348d1ff2e529a79679e6653c
Last active December 24, 2017 16:30
requirements-for-data-analytics.txt
jupyter==1.0.0
pandas==0.21.1
seaborn==0.8.1
lxml==4.1.1
html5lib==1.0.1
beautifulsoup4==4.6.0
requests==2.18.4
@hkurosawa
hkurosawa / gist:c306f3fb84833c2b1207
Last active August 29, 2015 14:08
How to run ShairPort on Raspbian
$ cat /etc/debian_version
7.6
$ sudo apt-get update
$ sudo apt-get upgrade
# install dependencies
$ sudo apt-get install libssl-dev libavahi-client-dev libasound2-dev
# clone source
@hkurosawa
hkurosawa / gist:c25f987c144c66f40417
Last active February 9, 2017 00:28
Cocos2d-x 3.2 .gitignore
# osx - https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
@hkurosawa
hkurosawa / gist:54c3df54f1007d6709dd
Last active August 29, 2015 14:04
Windowsに入れるツールのメモ - 思い出したら書く

#Platforms

  • 2.3.x Gingerbread
  • 4.0.x Ice Cream Sandwich
  • 4.1.x/4.2.x/4.3.x Jelly Bean
  • 4.4.x Kitkat
  • 4.5.x "L"

#Screen Sizes

  • "xlarge" screens are at least 960dp x 720dp
  • "large" screens are at least 640dp x 480dp
@hkurosawa
hkurosawa / database.php
Last active August 29, 2015 14:00
CakePHP 2.x database.php file to switch between database configuration settings based on file existence under app/Config directory
<?php
// CakePHP 2.x database.php file to switch between database configuration settings based on file existence under app/Config directory
/**
* This is core configuration file.
*
* Use it to configure core behaviour of Cake.
*
* PHP 5
*
@hkurosawa
hkurosawa / gist:7593622
Last active December 29, 2015 01:29
# searches launchd.plist files from launchd directories
#!/bin/bash
# searches launchd.plist files from launchd directories
grep `launchctl list | grep $1 | cut -f 3` ~/Library/LaunchAgents/* /Library/LaunchAgents/* /Library/LaunchDaemons/* /System/Library/LaunchAgents/* /System/Library/LaunchDaemons/* | cut -d ':' -f 1 | uniq
@hkurosawa
hkurosawa / .zshrc
Created November 16, 2012 11:22
my .zshrc file
autoload -U compinit
autoload colors
compinit
colors
PS1="%{${fg[green]}%}${USER}@${HOST%%.*}:%~ [%D{%y-%m-%d %H:%m:%S}]%{${reset_color}%}
[%!]%(!.#.$) "
PATH=$PATH:/usr/local/bin/
alias ls="ls -G"
@hkurosawa
hkurosawa / gist:3383994
Created August 18, 2012 02:29
automator script to install apk
ADB_PATH=PATH_TO_ADB
for f in "$@"
do
$ADB_PATH install -r "$f"
done