- slack
- コミュニケーションはもちろん。連携でより開発環境を快適に
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
void main() async { | |
runApp(const MyApp()); | |
// 初期化後 | |
await LateStaticUtil.initialize(); | |
// 初期化前に呼ぶ、初期化されていたら1になってる | |
var num = await LateStatic().getNumber(); | |
print(num); |
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
public class LookAt: MonoBehaviour | |
{ | |
[SerializeField] private Transform[] Targets; | |
[SerializeField] private Transform Head; | |
[SerializeField] private float DotThreshould = 0.7f; | |
[SerializeField] private float MaxDistance = 3.0f; | |
private bool _isAwake = false; | |
private bool _backDefault = false; | |
private Vector3 _defaultForward; |
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/env python3 | |
## wav_filename:text in metadat.csv | |
## parsed to mel, ttf and txt files | |
import os | |
import argparse | |
import string | |
import numpy as np |
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 requests | |
from bs4 import BeautifulSoup | |
hatena_id = '<hatena_id>' | |
blog_id = '<blog_id>' | |
password = '<api_key>' | |
payload = {'page': '012'} | |
def get_collection_uri(hatena_id, blog_id, password): | |
service_doc_uri = "https://blog.hatena.ne.jp/{hatena_id:}/{blog_id:}/atom".format(hatena_id=hatena_id, blog_id=blog_id) |
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 requests | |
payload = {'page': '1', 'per_page': '3'} | |
headers = {'Authorization': 'Bearer <token>', 'Content-Type': 'application/json'} | |
response = requests.get('http://qiita.com/api/v2/authenticated_user/items', params=payload, headers=headers) | |
def dumper(dict): | |
summary = {} | |
for key in ['title', 'likes_count', 'comments_count', 'uri']: |
"use strict";
// dependnce clm.js
var Features = function(positions) {
this.pos = positions;
if (!positions) alert("fail to make an instance.");
this.name = {
"face_R": 1,
"face_L": 13,
<!doctype html>
<html lang="jp">
<head>
<title>detect face and position track</title>
<meta charset="utf-8">
</head>
<body>
<script src="./js/utils.js"></script>
<script src="./js/dat.gui.min.js"></script>
# https://gist.github.com/parosky/7890436
# https://github.com/nagadomi/lbpcascade_animeface
import cv2
import numpy as np
GC_UNKNOWN = 5
def unique(a):
# https://gist.github.com/parosky/7890436
# https://github.com/nagadomi/lbpcascade_animeface
import cv2
import numpy as np
def detect_faces(im):
hc = cv2.CascadeClassifier('lbpcascade_animeface.xml')
NewerOlder