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
#define t(name) #name"_baka\n" | |
int main(){ | |
printf(t(kagoike)); | |
printf(t(abe)); | |
printf(t(inada)); | |
} | |
//t(main(){printf("#define t(u)v=#u;u\nt(%s)",v);}) |
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
pictriev=http://www.pictriev.com/?lang=ja | |
img="http://howcollect.cdn-donuts.jp/files/20140306044609-3070-979_thumbnail.jpg" | |
curl -s $pictriev -F "urltext=http://hanlove.jp/uploads/article/image/543/card_mig.jpg" |
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
function doPeriodically(){//時間ベースで定期的に実行される関数 | |
log = new Doc(logID); | |
var folder = DriveApp.getFolderById(folderID);//mailフォルダのIDは事前に調べておく | |
var files = folder.getFiles();// mailフォルダ内を検索,ファイルの一覧を取得 | |
todayNow=getDateAndTime(0) | |
while(files.hasNext()){// ファイルが一個でもあれば | |
var file = files.next();//ファイルを取得 | |
var fileName = file.getName();//ファイル名をゲット | |
log.print(fileName + "\n"); |
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 main(){ | |
printf("%d\n",__LINE__); | |
printf("%d\n",__LINE__); | |
printf("%d\n",__LINE__); | |
printf("%d\n",__LINE__); | |
printf("%d\n",__LINE__); | |
printf("%d\n",__LINE__); | |
printf("%d\n",__LINE__); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#define swap(a,b) do{int tmp;tmp=a;a=b;b=tmp;}while(0) | |
#define swap2(a,b) a^=b^=a^=b |
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
git init # ローカルのgitリポジトリを初期化(新倉庫を作成します) | |
git config --global user.name "xxx" # 配置用户名 | |
git config --global user.email "xxx@xxx.com" # 配置邮件 | |
git config --global color.ui true # git status等命令自动着色 | |
git config --global color.status auto | |
git config --global color.diff auto | |
git config --global color.branch auto | |
git config --global color.interactive auto | |
git config --global --unset http.proxy # remove proxy configuration on git | |
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库 |
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 https://ja.wikipedia.org/wiki/%E7%A5%9E%E6%9C%A8%E9%9A%86%E4%B9%8B%E4%BB%8B \ | |
|grep -o '<*title=[^>]*>' \ | |
|sed 's/^.*"\(.*\)".*$/\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
curl https://logtravel.herokuapp.com/ --data 'test=hello' | |
#### result ### | |
#### Hello Heroku Worldhello | |
# git SHA | |
# ff1d53f9ed38fbcb49cb4698bb84d9359dedfbde |
OlderNewer