Skip to content

Instantly share code, notes, and snippets.

View sakakendo's full-sized avatar
🌴
On vacation

sakakendo

🌴
On vacation
View GitHub Profile
#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);})
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"
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");
#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__);
@sakakendo
sakakendo / 0_reuse_code.js
Created May 21, 2017 10:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#define swap(a,b) do{int tmp;tmp=a;a=b;b=tmp;}while(0)
#define swap2(a,b) a^=b^=a^=b
@sakakendo
sakakendo / git_toturial
Last active May 27, 2017 11:47 — forked from guweigang/git_toturial
git命令大全
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远程仓库
url=https://matome.naver.jp/odai/2142956933161749001
curl -s $url |grep "img src" |grep "rr.img.naver.jp"|sed 's/<img src="\([^"]*\)".*$/\1/' |while read line;do echo $line;wget -A .jpg $line;done
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/' \
curl https://logtravel.herokuapp.com/ --data 'test=hello'
#### result ###
#### Hello Heroku Worldhello
# git SHA
# ff1d53f9ed38fbcb49cb4698bb84d9359dedfbde