- コードは動作するか
- 読みやすいコードか
- 標準APIにある機能を独自実装していなか
- 広く使われている外部ライブラリを独自実装していないか
- 冗長(重複)したコードは無いか
- 仕様通り実装されているか
This file contains hidden or 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
{ | |
function filledArray(count, value) { | |
var result = new Array(count), i; | |
for (i = 0; i < count; i++) { | |
result[i] = value; | |
} | |
return result; | |
} | |
function extractOptional(optional, index) { |
This file contains hidden or 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/local/bin/python3 | |
import cv2 | |
import numpy as np | |
import argparse | |
def compress_image(src, quality=50): | |
""" | |
param src 画像データ | |
param quality 画像クオリティ 1~100 |
This file contains hidden or 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
<body> | |
<input type="file" id="file"> | |
<canvas id="canvas"></canvas> | |
<script> | |
document.getElementById("file").addEventListener("change", function (e) { | |
var file = e.target.files; | |
var reader = new FileReader(); | |
//ファイルが複数読み込まれた際に、1つめを選択 |
This file contains hidden or 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 urllib.request, urllib.parse | |
from urllib.parse import urlparse | |
import bs4 | |
#proxies = {'http' : ''} | |
#proxy = urllib.request.ProxyHandler(proxies) | |
#opener = urllib.request.build_opener(proxy) | |
#urllib.request.install_opener(opener) | |
def getgoogleurl(search,siteurl=False): |
This file contains hidden or 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
# coding:utf-8 | |
import os | |
images_path = "./src/" | |
def getHtmlHeader(): | |
return """ | |
<!DOCTYPE html> | |
<html> | |
<header> |
This file contains hidden or 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
from selenium import webdriver | |
from time import sleep | |
import os | |
class YahooAccountMgr(): | |
from selenium.webdriver.common.keys import Keys | |
def __init__(self, _driver): | |
self.driver = _driver |
This file contains hidden or 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
+++++++++[>++++++++++++<-]>+.< | |
>++++++++.< | |
>-------.< | |
>+.< | |
>++++++.< | |
+++++++[>---------------<-]>--.< | |
+++++++++[>+++++++++++<-]>.< | |
>++++++++.< | |
>-------.< | |
>+.< |
This file contains hidden or 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
"use strict"; | |
var AWS = require("aws-sdk"); | |
var DOC = require("dynamodb-doc"); | |
var s3 = new AWS.S3(); | |
exports.handler = (event, context, callback) => { | |
NewerOlder