Skip to content

Instantly share code, notes, and snippets.

View masnnuller's full-sized avatar

Rikuo Takahama masnnuller

View GitHub Profile
@masnnuller
masnnuller / HelloWorld
Created November 21, 2011 16:02
print "Hello World!"
++++++++++[>+++++++<-]>++.
++++++++++
++++++++++
+++++++++.
+++++++.
.
+++.
>++++++++++
++++++++++
++++++++++
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();
a,main(b){for(;a++<9;)for(b=0;b++<9;)printf("%dx%d=%d\n",a,b,a*b);}
#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]);
#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;
}
}
+ chef-bootstrapを使うと便利そう
+ chef clientのインストールができる
+ chef server
+ 現状vagrant-omnibusを用いてchef-soloを自動でインストール && 実行