Skip to content

Instantly share code, notes, and snippets.

View sota1235's full-sized avatar
🤟
software engineer

Sota Sugiura sota1235

🤟
software engineer
View GitHub Profile
export default class Sota extends NewEmployee {
constructor() {
this.name = "杉浦 颯太";
this.college = "慶應義塾大学 環境情報学部";
this.catch_copy = "三度の飯よりコーディング";
this.eagerness =
"たくさん学び、周りと自分自身へと還元していきます";
}
}
#!/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)]
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;
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; // 移動幅
{
"MySelf": {
"Name" : "杉浦颯太",
"College": "慶應大学環境情報学部",
"Hobby" : "音楽を聴く",
"Reason" : "人の生活にプラスアルファなサービスを実現したい",
"Kanji" : "頑"
},
"Other": {
"Programming": ["Python", "node.js"],
#!/usr/bin/python
import os
import re
files = os.listdir('./')
for f in files:
if f == "replace.py":
continue
request = require 'request'
http = require 'http'
options =
uri: 'http://api.justyo.co/yoall'
form:
'api_token': 'hoge'
'link': 'http://optional-link.com'
json: true
#/usr/bin/python
# 動的計画法サンプル
# http://www.slideshare.net/iwiwi/ss-3578511
done = [False] * 100
memo = [0] * 100
def fib(num):
global done
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
@sota1235
sota1235 / 0053.py
Created August 13, 2014 09:59
AOJ #0053
# 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):