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
#incluse <stdio.h> | |
int main(){ | |
printf("Hello, World!\n"); | |
return(0); | |
} |
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
#!/bin/sh | |
# 情報工学実験1レポート4 gnuplot用スクリプト | |
# 実行方法 | |
# sh plot.sh xplot.txt yplot.txt | |
if [ $# -eq 2 ] ; then | |
file1=$1 | |
file2=$2 | |
else |
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
/* | |
*-- puzzle10.c -- | |
* 2015/05/15(fri) | |
* walkingmask | |
* 任意の4つの数字(かぶり無し)と3つの演算子(かぶり有り)で10を作れるか(10パズル) | |
* 組み合わせの数は 4! * 4^3 = 24 * 64 1536通り | |
*-- 問題点 -- | |
* 1 1 5 8 のような 8/(1-1/5)=10 括弧を使った計算を考慮してない | |
* 解決策としては,部分和同士の演算も書くことが挙げられる |
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
#!/bin/sh | |
# 実験用スクリプト | |
# 使用例 $sh expr.sh pytyon expr.py 5 | |
# 引数のチェック | |
if [ $# -eq 3 ] ; then | |
lang=$1 | |
ope=$2 | |
n=$3 | |
else |
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
#!/bin/sh | |
# description | |
# the sample shell script for | |
# this shell script is sample of creating mysql table with random number record. | |
# reference | |
# http://sasuke.main.jp/sqlcsv.html MySQL CSVファイル入出力 | |
# http://blogs.yahoo.co.jp/airmikan/22712779.html LOAD DATA ほげほげ |
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
# 容量喰ってる場所を探すワンライナー | |
du -h -d 1 /* | grep -E "^[1-9][0-9\.]*G" |
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 python3 | |
# -*- coding: utf-8 -*- | |
# fishnumv1.py | |
# 2016/10/11(火) | |
# walkingmask | |
# http://b.hatena.ne.jp/entry/www.slideshare.net/DoomKobayashi/ver1-png | |
def machineA(x): | |
return x+1 |
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
#include <stdio.h> | |
int len1, len2, i, counts[32], result; | |
char s[131072], t[131072]; | |
int main(void){ | |
// input | |
scanf("%d %d", &len1, &len2); | |
scanf("%s", s); |
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
# brew install cliclick | |
# Require window position adjustment | |
cliclick c:300,180 c:450,620; sleep 2; for i in `seq 100`;do cliclick -w1 c:310,600;done |
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 python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
from collections import defaultdict | |
def count_words(file_name): | |
file_open = open(file_name, 'r') | |
my_dict = defaultdict(int) |
OlderNewer