- AI Shift
- 社内SQL研修のために作った資料を公開します - (2021/06/21)
- Classi
- 当たり前にリリースしていく ~ 新卒研修編 - (2021/05/20)
- CyberZ
- 良いコードとは何か - エンジニア新卒研修 スライド公開 - (2021/04/27)
- DMM.com(旧DMM.comラボ含む)
- DMM.comラボ16新卒エンジニア研修 - (2016/08/24)
- DMM.comの新卒技術研修がスタートしました! - (2019/04/25)
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/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from tornado import ioloop, httpserver, web, httpclient | |
import json | |
import urllib.parse | |
import logging | |
import time |
- BIOS
- enabled BIOS virtual CPU
- windows
- update kernel
- set WSL version 2
- enabled Virtual machine platform and WSL
- install Ubuntu from store
- git bash for windows
- install vscode
- install remote extension
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
python -c 'import sys,json as j;print(j.dumps(j.loads(sys.stdin.read()),indent=2,ensure_ascii=False))' | |
# no ensure_ascii | |
python -m json.tool |
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
javascript:(() => {location.href += '&lr=lang_en';})() |
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 io.digdag.core.plugin.RemotePluginLoader; | |
import io.digdag.core.plugin.Spec; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.Arrays; | |
public class Main { | |
public static void main(String[] args) { | |
Spec spec = Spec.of( |
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
def query2sql(query): | |
"""convert query object into non-prepared sql string in SQLAlchemy and psycopg2""" | |
compiler = query.statement.compile() | |
params = compiler.params | |
prepared_sql = compiler.string # or str(compiler) | |
psycopg2_cursor = query.session.connection().connection.cursor() | |
sql = psycopg2_cursor.mogrify(prepared_sql, params) | |
return sql |
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
--- | |
- name: Deploy new site release | |
user: deployer | |
hosts: all | |
tasks: | |
- name: Fetch repo updates | |
git: > | |
[email protected]:my/repo.git |
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
a = 0 | |
a2 = 100 | |
def main(): | |
global a, a2 | |
print('a2', a2) | |
print(a) | |
a += 1 | |
print(a) | |
a += 5 |
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
using PyPlot | |
const AREA_SCALE = 100 | |
const NUM_POINTS = 100 | |
# 頂点をランダムな位置に配置 | |
function generate_points() | |
points = zeros(NUM_POINTS, 2) | |
points[:, 1] = rand(NUM_POINTS) * AREA_SCALE | |
points[:, 2] = rand(NUM_POINTS) * AREA_SCALE |
NewerOlder