gitのコードの増減をグラフ化するスクリプトです。 Python3.4で動作確認しています。
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 | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import datetime | |
import argparse | |
import requests | |
import bs4 | |
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
#EXTM3U | |
#EXT-X-KEY:METHOD=AES-256,URI="http://example.com/keyfile",IV=000000000000000 | |
#EXTINF:2,"aaa" | |
http://example.com/1.ts | |
#EXTINF:2, | |
http://example.com/2.ts | |
#EXTINF:2, | |
http://example.com/3.ts | |
#EXTINF:2, | |
http://example.com/4.ts |
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 | |
# -*- coding: utf-8 -*- | |
"""Dummy Name Server | |
See | |
- http://www.ietf.org/rfc/rfc1034.txt | |
- http://www.ietf.org/rfc/rfc1035.txt | |
- http://www.ietf.org/rfc/rfc1886.txt | |
""" |
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 |