Skip to content

Instantly share code, notes, and snippets.

View kimitoboku's full-sized avatar

Kento KAWAKAMi kimitoboku

View GitHub Profile
require 'rexml/document'
require 'pp'
require 'open-uri'
require 'date'
MARKTAG = "もきゅ";
user = "kimitoboku035"
doc = REXML::Document.new(open("http://b.hatena.ne.jp/#{user}/atomfeed?date=#{Time.now.strftime("%Y%m%d")}"));
pp "http://b.hatena.ne.jp/#{user}/atomfeed?date=#{Time.now.strftime("%Y%m%d")}"
#include<stdio.h>
int main(void){
int array[3][3];
int i,j;
for(i=0;i<3;i++){
for(j=0;j<3;j++){
scanf("%d",&array[i][j]);
}
}
#include<iostream>
using namespace std;
int main(void){
int n;
cin >> n;
cout << n << "yagist.el test" << endl;
return 0;
@kimitoboku
kimitoboku / lifgame.c
Created April 23, 2014 08:34
lifegame
/*
学籍番号,氏名:B131820,川上 賢十
*/
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
#define H 10
#define W 10
#include<stdio.h>
#include<string.h>
int min(int a, int b) {
return a<b?a:b;
}
int levenshtein(char *str1,char *str2){
int str1len = strlen(str1);
@kimitoboku
kimitoboku / 03-133136.go
Created May 3, 2014 04:40
A Tour of Go#1
package main
import (
"fmt"
)
func main(){
fmt.Println("Hello,世界");
}
@kimitoboku
kimitoboku / 03-135420.go
Created May 3, 2014 04:57
A Tour of GO#4
package main
import (
"math/rand"
"fmt"
)
@kimitoboku
kimitoboku / 03-135753.go
Created May 3, 2014 05:02
A Tour of Go#5
package main
import (
"fmt"
"math"
)
func main(){
fmt.Printf("Now you have %g problems.",math.Nextafter(2, 3))
}
@kimitoboku
kimitoboku / 03-143637.go
Created May 3, 2014 05:38
A Tour of Go#7
package main
import (
"fmt"
)
func add(x int,y int) int {
return x+y
}
@kimitoboku
kimitoboku / 03-154618.go
Created May 3, 2014 06:49
A Tour of Go#10
package main
import (
"fmt"
)
func split(sum int) (x,y int){
x = sum % 10
y = sum - x