Skip to content

Instantly share code, notes, and snippets.

View skytomo221's full-sized avatar

skytomo skytomo221

View GitHub Profile
@skytomo221
skytomo221 / .gitignore
Last active November 10, 2018 03:26
さくらインターネットでdiscordrbを使ったボットを稼働させる ref: https://qiita.com/skytomo221/items/5d99d98187f9d2bf1d78
token
client_id
@skytomo221
skytomo221 / my_math.h
Last active September 27, 2016 08:47
#ifndef _STDIO_H
#include <stdio.h>
#endif
/* //
// math.h //
// */
/* Constants rounded for 21 decimals. */
#define M_E 2.71828182845904523536
#define M_LOG2E 1.44269504088896340736
#include <stdio.h>
#include <time.h>
void main() {
printf("%.4fs\n",(double)clock()/CLOCKS_PER_SEC);
for(int i=0;i<100;i++) {
for(int j=0;j<1000000000;j++);
printf("%.4fs\n",(double)clock()/CLOCKS_PER_SEC);
}
printf("all %.4fs\n",(double)clock()/CLOCKS_PER_SEC);