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
seq 1 5 100|xargs -I@ sh -c 'echo seq @\|xargs -I[at] sh -c \"echo -n +\"\;echo\ \;'|sed 's/\[at\]/@/g'|bash |
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
@echo offf | |
rem ログ出力も書きたい | |
rem 変数の宣言 | |
set GATEWAY_IP=10.203.10.x | |
rem 初期設定 | |
color 1F | |
title インターネット接続確認 |
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
paste <(ls|sed 's/^/<li><a href=\"/g'|sed 's/$/\">/g') <(ls|sed 's|$|</a><\/li>|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
curl -s http://hoge.com/ | grep -o "<a [^>]*href=[\"\'][^>]*[\"\']>" \ | |
| ggrep -oP "href=[\"\'].*?[\"\']" \ | |
| sed "s/^href=[\"\']//g" \ | |
| rev | cut -c2- | rev \ | |
| sed 's|^/[^/]|http://hoge.com&|g' \ | |
| sed 's|^//|http:&|g' \ | |
| less |
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
curl -s http://koyama.me/ | grep -o "<a [^>]*href=[\"\'][^>]\+[\"\' ]>.*</a>" > out.html |
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/bash | |
if [ -f $1 ] | |
then | |
echo bash compile.bash [FileName] | |
exit 1 | |
else | |
fname=$1 | |
fi |
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 numpy as np | |
import cv2 | |
import sys | |
argv = sys.argv | |
try: | |
if argv[1] == "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
import processing.sound.*; | |
import processing.serial.*; | |
/* Viewer */ | |
boolean status = false; // Now status | |
boolean before = true; // Before status | |
PImage closeImg, openImg; | |
SoundFile hi, bye; | |
/* Srial */ |
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
$ | |
$ cat a.c | |
#include <stdio.h> | |
int main(int argc, char *argv[]){ | |
int argCount = 1; | |
while(argv[argCount]){ | |
argCount++; |
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 | |
num=498860100962 | |
even=0 | |
odd=0 | |
for i in range(0, len(str(num))): | |
if(i%2==0): | |
odd+= int(num/(10**i))%10 | |
# print("odd:", odd) |