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
export default class Sota extends NewEmployee { | |
constructor() { | |
this.name = "杉浦 颯太"; | |
this.college = "慶應義塾大学 環境情報学部"; | |
this.catch_copy = "三度の飯よりコーディング"; | |
this.eagerness = | |
"たくさん学び、周りと自分自身へと還元していきます"; | |
} | |
} |
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
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
# http://qiita.com/hisui@github/items/b47c411437d60440a605 | |
p = int(input("人数を入力してください")) | |
c = input("カードを空白区切りで入力してください").split() | |
ans = [[] for i in range(p)] | |
c = c[:-(len(c)%p)] |
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.awt.AlphaComposite; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Font; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Toolkit; | |
import java.util.ArrayList; | |
import java.util.Random; |
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.awt.*; | |
import java.awt.event.*; | |
import javax.swing.JFrame; | |
public class Maru extends JFrame implements KeyListener, Runnable { | |
public int width = 800, height = 600; // 画面サイズ | |
public int x = width/2, y = height/2; // 主人公座標 | |
public int size = 50; // 円のサイズ | |
public int range = 5; // 移動幅 |
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
{ | |
"MySelf": { | |
"Name" : "杉浦颯太", | |
"College": "慶應大学環境情報学部", | |
"Hobby" : "音楽を聴く", | |
"Reason" : "人の生活にプラスアルファなサービスを実現したい", | |
"Kanji" : "頑" | |
}, | |
"Other": { | |
"Programming": ["Python", "node.js"], |
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
#!/usr/bin/python | |
import os | |
import re | |
files = os.listdir('./') | |
for f in files: | |
if f == "replace.py": | |
continue |
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
request = require 'request' | |
http = require 'http' | |
options = | |
uri: 'http://api.justyo.co/yoall' | |
form: | |
'api_token': 'hoge' | |
'link': 'http://optional-link.com' | |
json: true |
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
#/usr/bin/python | |
# 動的計画法サンプル | |
# http://www.slideshare.net/iwiwi/ss-3578511 | |
done = [False] * 100 | |
memo = [0] * 100 | |
def fib(num): | |
global done |
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
url = 'http://sota1235.net/webAudioAPI/sound/coin.wav' | |
buffer = null | |
context = null | |
init = (callback = -> ) -> | |
try | |
AudioContext = window.AudioContext || window.webkitAudioContext | |
context = new AudioContext() | |
callback null, context | |
catch e |
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
# AOJ | |
# 0053 | |
# python3 | |
def sieve(n): | |
num = [True] * n | |
num[0] = num[1] = False | |
for i in range(2,int(n**0.5)+1): | |
if num[i]: | |
for j in range(i**2, n, i): |