This file contains 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 load_csv(){ | |
var url = 'http://www.tsuchiya2.org/CSV_file_seisaku/sampleCSV/sample1.csv'; | |
var sheet_name = 'test'; | |
var csv_txt = download_csv(url); | |
var data = CSVToArray(csv_txt, ','); | |
var book = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = book.getSheetByName(sheet_name); | |
var record; |
This file contains 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 | |
import time | |
from threading import Thread | |
count = 0 | |
class CountUpThread(Thread): | |
def run(self): | |
global count |
This file contains 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 | |
import os | |
import sys | |
import shutil | |
import argparse | |
import tempfile | |
from PIL import Image | |
This file contains 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 sh | |
set -e | |
set -x | |
### variables #### | |
# PROJECT_ROOT=${PROJECT_ROOT:/srv/service/djangoexample} | |
# SUPERUSER_NAME=${SUPERUSER_NAME:root} | |
# SUPERUSER_EMAIL=${SUPERUSER_EMAIL:test@example.com} | |
# SUPERUSER_PASSWORD=${SUPERUSER_EMAIL:PASSWORD} | |
# WORKER_NUM=${WORKER_NUM:1} | |
# LOG_LEVEL=${LOG_LEVEL:DEBUG} |
This file contains 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
from http.server import ( | |
HTTPServer, | |
BaseHTTPRequestHandler, | |
) | |
class RestfullRequestHandler(BaseHTTPRequestHandler): | |
def response_success(self): | |
self.send_response(200) | |
self.end_headers() |
This file contains 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 perl | |
# | |
# Display Makefile Usage Script | |
# | |
# Examle Makefile):: | |
# | |
# .all: | |
# @## version=VERSION | |
# @# comment1 | |
# @# comment2 |
This file contains 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 -*- | |
COMPOSE_YAML := compose.yml | |
VOLUME_YAML := volumes.yml | |
MACHINE:= docker-machine | |
COMPOSE := docker-compose -f $(COMPOSE_YAML) | |
VOLUME := docker-volume | |
VOLUME_OPTIONS := --conf $(VOLUME_YAML) -m $(DOCKER_MACHINE_NAME) | |
INFRA_SERVICES := redis mysql fakes3 | |
This file contains 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
import io | |
import pycurl | |
import progressbar | |
fp = io.BytesIO() | |
curl = pycurl.Curl() | |
curl.setopt(pycurl.URL, 'おおきなファイルのURL') # noqa | |
curl.setopt(pycurl.NOPROGRESS, 0) | |
curl.setopt(pycurl.WRITEDATA, fp) |
This file contains 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
import bs4 | |
import requests | |
res = requests.get('PyPIのURL') | |
soup = bs4.BeautifulSoup(res.content, 'html.parser') | |
package_names = [elm.getText() for elm in soup.select('#content table.list tr td a')] |
This file contains 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
NG_CONF_ROOT_CONF := $(CURDIR)/etc/ng | |
NG_CONF_DIR := $(CURDIR)/etc/ng.d | |
NG_LOCAL := $(CURDIR)/local | |
NG_LOCAL_CONF_NG := $(NG_CONF_DIR)/100-ng-local.sh | |
.PHONY: create | |
create: | |
mkdir -p \ | |
etc \ | |
home \ |