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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>美味しいカレーの作り方</title> | |
<meta name="description" content="美味しいカレーのレシピです。野菜の嫌いな人にもオススメ!"> | |
</head> | |
<body> | |
<article> | |
<header> |
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
require 'rake/clean' | |
CC = "gcc" | |
SRCS = FileList["**/*.c"] | |
OBJS = SRCS.ext('o') | |
CLEAN.include(OBJS) | |
CLOBBER.include("main") |
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
require "cipher_word/version" | |
module CipherWord | |
def self.cipher(word) | |
cipher = '' | |
word.each_codepoint do |code| | |
code += 1 | |
cipher += code.chr | |
end | |
cipher |
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
class OfficeTable | |
def initialize | |
@table = Array.new(8, 0) | |
end | |
def attend(customer_count) | |
if @table.all?{ |e| e == 0} | |
for i in 0..(customer_count-1) do | |
@table[i] = 3 | |
end |
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
Win = {'P' => 'R', 'R' => 'S', 'S' => 'P'} | |
Lose = {'P' => 'S', 'R' => 'P', 'S' => 'R'} | |
def solve(input) | |
tournaments = create_tournaments(input) | |
tournaments = calculate_tournaments(tournaments) | |
"(#{tournaments[0]})" | |
end |
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
defmodule CalculaMachine do | |
def calculate(encoded_string) do | |
_size, encoded_value = String.split(encoded_string, ":") | |
to_bit(encoded_string) | |
|> to_numerical_fomula() | |
|> calculate_formula() | |
|> encode() | |
end |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"io/ioutil" | |
"encoding/json" | |
) | |
const API_KEY = "xxxxxxxxxxxxxxx" |
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
package idobata_client | |
import "net/http" | |
import "net/url" | |
import "fmt" | |
const WEBHOOK_URL = "https://idobata.io/hook/custom/1f0794ab-dde4-4255-a750-0d7aa7e12714" | |
func PostByWebhook(message string) { | |
req_body := url.Values{} |