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 -*- | |
__author__ = 'Kosuke MATSUOKA <[email protected]>' | |
def elapsed_time(func): | |
def wrapper(*args, **kwargs): | |
import time |
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://atlas.hashicorp.com/search. | |
config.vm.box = "ubuntu/trusty64" | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://atlas.hashicorp.com/search. | |
config.vm.box = "ubuntu/trusty64" | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, |
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
# ddとは別ターミナルで | |
sudo watch -n 60 "pkill -USR1 dd" |
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
#!/bin/sh | |
device=/dev/$(lsblk -lno NAME | sed '/2/!d') | |
targetdir=/mnt/sdcard | |
# mirror=http://ftp.uni-stuttgrat.de/debian | |
distro=jessie | |
rootfsdir=/tmp/rootfs | |
hostname=debian |
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
$ gcc main.c | |
$ ln -s a.out test_a | |
$ ln -s a.out test_b | |
$ ./test_a | |
test_a: called | |
$ ./test_b | |
test_b: called |
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
{ | |
"cursor_size": "small", | |
"font_face": "Ricty Diminished Discord for Po", | |
"font_size": "0x14", | |
"popup_colors": "dark_red,dark_blue", | |
"dark_gray": "#f92672", | |
"screen_colors": "dark_magenta,black", | |
"dark_green": "#49483e", | |
"command_history_no_duplication": false, | |
"window_size": "80x25", |
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
CC = $(CROSS_COMPILE)gcc | |
STRIP = $(CROSS_COMPILE)strip | |
CFLAGS = -MMD -MP -Wall -Wextra -Winit-self -Wno-missing-field-initializers | |
INCLUDES = -I$(DEVROOT)/include | |
LDFLAGS = -L$(DEVROOT)/lib | |
LIBS = | |
SRCS = $(foreach srcdir, $(shell find ./src -type d), $(wildcard $(srcdir)/*.c)) | |
OBJS = $(subst ./src/, ./obj/, $(SRCS:.c=.o)) | |
DEPS = $(OBJS:.o=.d) | |
TARGETS = program_name |
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
import argparse | |
import itertools | |
parser = argparse.ArgumentParser() | |
parser.add_argument('words', nargs='*') | |
parser.add_argument('--output', '-o') | |
args = parser.parse_args() |
OlderNewer