slidenumbers: true
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
| service cloud.firestore { | |
| match /databases/{database}/documents { | |
| match /groups/{groupID} { | |
| allow get, update: if isAuthenticated() && isUserBelongingToThisGroup(groupID, request.auth.uid); | |
| match /users/{userID} { | |
| allow read: if isAuthenticated() && isUserBelongingToThisGroup(groupID, request.auth.uid); | |
| } | |
| match /boards/{boardID} { |
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
| class Foo { | |
| constructor(x) { this.foo = x; } | |
| hello() { console.log(this.foo); } | |
| } | |
| class Bar extends Foo { | |
| constructor(x) { super(x); this.bar = x * 100; } | |
| world() { console.log(this.bar); } | |
| } |
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
| func merge_sort(l []int) []int { | |
| if len(l) < 2 { | |
| return l | |
| } | |
| mid := len(l) / 2 | |
| a := merge_sort(l[:mid]) | |
| b := merge_sort(l[mid:]) | |
| return merge(a, b) | |
| } |
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
| for pkg in `brew list -f1 | egrep -v '\.|\.\.'` | |
| do echo $pkg `brew info $pkg | egrep '[0-9]* files, ' | sed 's/^.*[0-9]* files, \(.*\)).*$/\1/'` | |
| done |
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 ruby | |
| require 'socket' | |
| require 'openssl' | |
| require 'json' | |
| host = 'kubernetes' | |
| metrics = '/apis/metrics.k8s.io/v1beta1' | |
| sock = TCPSocket.new host, 443 |
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
| core@ip-10-128-3-24 ~ $ etcdctl watch /deis --recursive --forever | awk '{now=strftime("%F %T%z\t");sub(/^/, now);print}' | |
| 2015-07-24 16:37:28+0000 8888 | |
| 2015-07-24 16:37:28+0000 10.128.3.140:60974 | |
| 2015-07-24 16:37:28+0000 10.128.1.32 | |
| 2015-07-24 16:37:28+0000 10.128.1.31 | |
| 2015-07-24 16:37:28+0000 10.128.3.140:59072 | |
| 2015-07-24 16:37:28+0000 5432 | |
| 2015-07-24 16:37:29+0000 10.128.1.31 | |
| 2015-07-24 16:37:29+0000 8888 | |
| 2015-07-24 16:37:29+0000 10.128.3.24:63735 |
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
| // Sample logging-quickstart writes a log entry to Stackdriver Logging. | |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "strings" |
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 numpy as np | |
| import random | |
| import math | |
| import cv2 | |
| from PIL import Image | |
| import sys | |
| def detect_markers(im): | |
| markers = [] | |
| # 輪郭線抽出のための二値化 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.