Skip to content

Instantly share code, notes, and snippets.

@k-motoyan
k-motoyan / Qiita-AdventCalender2016-転職.md
Last active December 28, 2016 11:06
子供が生まれるにあたって転職について考えた事

子供が生まれるにあたって転職について考えた事

これは 転職 Advent Calendar 2016 - Qiita の9日目の投稿です。


子供、可愛いですよね。

子供が産まれるまでは正直うるさいだけと思っていて苦手だったのですが、いざ自分に子供が生まれてみると、どんなにうるさくても、鼻水を服に擦りつけてきても、技術書を破ったり落書きして遊んでいても、書いたコードを保存する前にPCの電源ボタンを押されて作業が飛んでしまっても__可愛いから許す!!__と思えてしまうぐらい、まぁ、とにかく可愛い。

@mono0926
mono0926 / commit_message_example.md
Last active February 11, 2025 06:39
[転載] gitにおけるコミットログ/メッセージ例文集100
@mipsparc
mipsparc / pidcount.py
Last active January 16, 2023 01:01
MPEG2-TSファイルを解析して、含まれているPIDと数を列挙する
#! /usr/bin/env python3
#coding:utf-8
#require bitstring
import bitstring
import math
import sys
filename = sys.argv[1]
packet_length = 188
@tuxfight3r
tuxfight3r / preseed-desktop.cfg
Last active August 29, 2018 12:29
ubuntu-trusty-preseed.cfg
#ubuntu preseed file for desktop with disk encryption
d-i debian-installer/locale string en_GB.UTF-8
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/variantcode string qwerty
d-i keyboard-configuration/layoutcode string British
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string internal.local
d-i netcfg/wireless_wep string
# System language
lang en_US
# Language modules to install
langsupport en_US
# System keyboard
keyboard us
# System mouse
var Hangul = {
startChar: 'ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎ'.split(''),
middleChar: 'ㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ'.split(''),
endChar: ' ㄱㄲㄳㄴㄵㄶㄷㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅄㅅㅆㅇㅈㅊㅋㅌㅍㅎ'.split(''),
code: '가'.charCodeAt(0)
}
var HanConv = {
start: 'rRseEfaqQtTdwWczxvg'.split(''),
middle: 'k,o,i,O,j,p,u,P,h,hk,ho,hl,y,n,nj,np,nl,b,m,ml,l'.split(','),
@jgcoded
jgcoded / traveling_salesman.cpp
Last active January 22, 2024 09:43
Traveling Salesman solution in c++ - dynamic programming solution with O(n^2 * 2^n).
#include <vector>
#include <iostream>
using namespace std;
/**
\brief Given a complete, undirected, weighted graph in the form of an adjacency matrix,
returns the smallest tour that visits all nodes and starts and ends at the same
node. This dynamic programming solution runs in O(n^2 * 2^n).
@voluntas
voluntas / new_to_mqtt.rst
Last active October 2, 2023 06:26
初めての MQTT
@gcasey
gcasey / lasreader.pxd
Last active June 23, 2020 08:34
Reading LAS file efficiently into numpy using cython
#%%cython -I/usr/local/include -L/usr/local/lib -llas_c
# Created by Casey Goodlett
cimport cython
import numpy as np
cimport numpy as np
import liblas
DTYPE = np.float64
ctypedef np.float64_t DTYPE_t
@glass5er
glass5er / pptximage.py
Last active August 13, 2024 13:24
add an image in every Powerpoint slide using python-pptx
##
## Copy & Paste Tool for images to PowerPoint(.pptx)
##
import pptx
import pptx.util
import glob
import scipy.misc
OUTPUT_TAG = "MY_TAG"