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
++++++++++[>+++++++<-]>++. | |
++++++++++ | |
++++++++++ | |
+++++++++. | |
+++++++. | |
. | |
+++. | |
>++++++++++ | |
++++++++++ | |
++++++++++ |
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 java.io.*; | |
public class BrainFuckCompile { | |
static StringBuffer ostr; | |
static char[] fileRead(String inputFilePath) throws IOException{ | |
char[] a; | |
FileInputStream in= | |
new FileInputStream(new File(inputFilePath)); | |
byte[] b=new byte[in.available()]; | |
in.read(b); | |
a=new String(b).toCharArray(); |
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
a,main(b){for(;a++<9;)for(b=0;b++<9;)printf("%dx%d=%d\n",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
#include<stdio.h> | |
main(){ | |
unsigned long long a[3]={0L,1L,1L},b,c=0; | |
printf("%d\n%d\n",a[1],a[2]); | |
for(b=0;b-98;b++){ | |
c=0; | |
a[b%3]=a[(b+1)%3]+a[(b+2)%3]; | |
if(!(a[b%3]%3))printf("Fizz"),c=1; | |
if(!(a[b%3]%5))printf("Buzz"),c=1; | |
if(!c)printf("%lld",a[b%3]); |
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(void){ | |
int k,j,a; | |
char flag[1000000]={1,1};//0,1は除外する | |
for(k=2;k<1000;k++){ | |
if(flag[k]==0){ | |
for(j=k*k;j<1000000;j+=k) | |
flag[j]=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
+ chef-bootstrapを使うと便利そう | |
+ chef clientのインストールができる | |
+ chef server | |
+ 現状vagrant-omnibusを用いてchef-soloを自動でインストール && 実行 |