Skip to content

Instantly share code, notes, and snippets.

View yukpiz's full-sized avatar
🐢
|ω・)و ̑̑༉

yukpiz yukpiz

🐢
|ω・)و ̑̑༉
View GitHub Profile
@yukpiz
yukpiz / cpp-in-vim.md
Last active October 14, 2023 07:46
Write C++ in Vim.

VimでC++を書く設定や操作

1. 設定の書き方

評判用無音楽譜

  • 300文字(ネイル評判クリア)
  • 1:00ジャスト、300文字(イヴォナ評判クリア)
MML@t32r1r1r1r1r1r1r1r1&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&,,;

Technic for GORM

GORMはGo言語の為のORMライブラリです。

Callbacks

gormには特定クエリにおけるフックが用意されています。
クエリの実行前、実行後にこれらのフックを実行する事ができます。

<!DOCTYPE html>
<html>
<head>
<title>Protocol Documentation</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>
<style>
body {
width: 60em;
package main
import "fmt"
func main() {
var a, b, c int
var s string
fmt.Scanf("%d\n%d %d\n%s", &a, &b, &c, &s)
fmt.Println(a+b+c, s)
}
package main
import "fmt"
type ArrayInt []int
func main() {
var is []int
for i := 0; i < 10; i++ {
is = append(is, i)

Test

  • test1
  • test2
package application
import (
"context"
"strings"
)
// ... interfaceやstructの定義は一般的なものなので省略
func (app *application) Authorize(ctx context.Context, token string) (*model.Certification, error) {

Android FileObserver

  • ディレクトリを監視し、イベントを補足する
  • 監視を開始/終了する

    + 2014.2.18

    FileObserverのインスタンスはstartWatching()により ディレクトリ監視が開始されると、 指定されたディレクトリに対するイベントを捕捉し続けるが、

@yukpiz
yukpiz / zombie.py
Last active February 7, 2019 06:50
# codeing:utf-8
import cv2
import os
import glob
import imghdr
import tensorflow as tf
from tensorflow import keras