Skip to content

Instantly share code, notes, and snippets.

@echo off
echo ドラッグ&ドロップされたファイルの絶対パスは、
echo %~xn1
echo です。
"C:\Program Files (x86)\GPSBabel\gpsbabel.exe" -t -i gpx -f %~xn1 -x nuketypes,waypoints,routes -o nmea -F %~xn1.nmea
nmeasonyconv.exe %~xn1.nmea
@kobakou
kobakou / get_issues.py
Created June 23, 2018 07:44
get-issues-from-github-repo
from github import Github
import pandas as pd
# or using an access token
g = Github("")
for _repo in g.get_organization('your-org').get_repos(type='private'):
if _repo.name == 'your-repo':
repo = _repo
break
@kobakou
kobakou / get-jdebuit-shoplist.py
Last active January 1, 2018 11:01
get-jdebuit-shoplist
from bs4 import BeautifulSoup
import urllib.request as req
import pandas as pd
import time
import re
shoplist = []
url = 'http://jdebit.jp/pc/shoplist/search?name=&address=&area_id[]&page='
maxpage = 1114
@kobakou
kobakou / insertLastUpdate.gs
Last active February 11, 2017 03:00
縦列毎に最終更新日を挿入する Google Apps Script(GAS) for GoogleSpreadSheet. 2,7,19はシートの構造依存の数値
function insertLastUpdated() {
var sheet = SpreadsheetApp.getActiveSheet();
var currentCol = sheet.getActiveCell().getColumn();
if(currentCol > 2 && currentCol < 7){
sheet.getRange(19, currentCol).setValue(Utilities.formatDate(new Date(), 'JST', 'MM/dd HH:mm'));
}
}
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
SONYHEAD := "@Sonygps/ver1.0/wgs-84"
@kobakou
kobakou / check-n-select-netprof.sh
Last active August 26, 2019 03:18
add notification
#!/bin/bash
# set AccessPoint uniqe name for switch profile.
apname=SWing
if [ "`networksetup -getairportnetwork en0 | awk '{print $4}'`" = "$apname" ]; then
scselect Intra
osascript -e 'display notification "Intra" with title "NetProf"'
else
scselect Automatic