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-Module PSReadLine | |
Set-PSReadlineOption -EditMode Emacs | |
function touch { | |
New-Item -type file $args | |
} | |
function g { | |
cd "$(ghq root)\$(ghq list | peco)" | |
} |
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
from sklearn.datasets import load_iris | |
from sklearn.model_selection import train_test_split | |
from sklearn.neural_network import MLPClassifier | |
from sklearn.externals import joblib | |
import pandas as pd | |
import numpy as np | |
def main(): | |
# example of MLP |
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 openpyxl as opx | |
import pandas as pd | |
import datetime as dt | |
import argparse | |
TEMPLATE_XLSX = "稼働表テンプレート.xlsx" | |
REGULAR_CLOSE_TIME = (dt.time(18, 30), dt.time(19, 0)) | |
REST_TIME_REGULAR = dt.timedelta(hours=1) | |
REST_TIME_OVER = dt.timedelta(hours=1, minutes=30) |
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
#include <stdio.h> | |
#include <windows.h> | |
int main(int argc, char* argv[]) { | |
const char* str = GetCommandLine(); | |
// GetCommandLineからプログラム名を取得 | |
const char* progNameBeg = strchr(str, (int)'"') + 1; | |
const char* progNameEnd = strchr(progNameBeg, (int)'"'); | |
const size_t progNameSize = progNameEnd - progNameBeg; |
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
#requires -Version 2 | |
function execForEach($files, $beg, $end, $unroll) { | |
$maximumRuntimeSeconds = 3 | |
$procs = @(1..$unroll) | |
for ($i = $beg; $i -lt $end; $i += $unroll) { | |
for ($j = 0; $j -lt $unroll; $j++) { | |
$procs[$j] = Start-Process -NoNewWindow -FilePath $files[$i + $j].FullName -PassThru | |
} | |
try { |
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 | |
find ./ -type f -name "*.cpp" -exec sed -i 's/\t/ /g' {} \; |
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
00000000004005f0 <caller>: | |
4005f0: ff e7 jmp rdi | |
4005f2: 0f 1f 40 00 nop DWORD PTR [rax+0x0] | |
4005f6: 66 2e 0f 1f 84 00 00 nop WORD PTR cs:[rax+rax*1+0x0] | |
4005fd: 00 00 00 | |
0000000000400600 <func>: | |
400600: 48 83 ec 38 sub rsp,0x38 | |
400604: ba 41 bb ff ff mov edx,0xffffbb41 | |
400609: b9 49 ba ff ff mov ecx,0xffffba49 |
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: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
; Edit registry to swap. | |
; - Space <=> LShift | |
*~a:: | |
*~b:: | |
*~c:: | |
*~d:: | |
*~e:: | |
*~f:: | |
*~g:: |
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/bash | |
export GMX_MAXBACKUP=-1 | |
function print_usage() { | |
echo "${0} root_dir lipid_name" | |
exit | |
} | |
if [ "$#" -ne 2 ]; then |