Skip to content

Instantly share code, notes, and snippets.

@xhiroga
xhiroga / kotlinfest2019.md
Last active January 3, 2020 04:19
Kotlin Fest 2019 登壇資料まとめ
@flatfisher
flatfisher / dogrun.md
Created September 25, 2018 10:27
Dogrun Serverless / Firebase 参加メモ

Dogrun

Dogrunと呼ばれるFireside chatイベントがCloud Next の裏イベントでありました。 https://gcpug-tokyo.connpass.com/event/95560/

来日しているProduct Manager、Developer Advocate、実際にProductを作っているSoftware Engineerの方々とFireside Chatを行いました。

普段気になっていることや裏話が聞けて楽しかったです。

各トピック

私は Serverless / Firebase 部屋に行きました。他の部屋で発表された内容は後日GCPUGで発表される予定?です。

@tenntenn
tenntenn / memo.txt
Created September 19, 2018 12:33
Dogrun - サーバレス
GCFの違い
firebaseの方が高い視点で~
PythonとかGoはFirebaseの方は対応予定なし
GCPの方が早い
Cloud TaskやスケジューラーはFirebaseの方から使えるようになるのか?
Firebaseはモバイル向けだから取り込む予定はないけど、GCPと組み合わせてスムーズに使えるようにする予定はある
Firebaseはモバイル、GCPはインフラ、その間をつなぐためにGCFがある
Cloud TaskとスケジューラーはFirebaseのUIに統合する予定はない
@rhoboro
rhoboro / gist:4f59d88d6ebbce334eee868dda174b99
Last active April 13, 2017 10:06
オフィスに縛られないために

オフィスに縛られないために

ストーリー

  1. 働きやすい環境を作りたい
  2. (実験含め)緩めの規則を導入する <= イマココ
  3. いつどこで誰が何をやっているのか管理できなくなる(会社単位でもチーム、プロジェクト単位でも)
  4. 失敗 => ガチガチに管理される

というのは避けたい。そのためにこうするのがいいと思います、というのが趣旨です。

@nfarina
nfarina / mock-storage.js
Last active November 23, 2023 15:50
Mock Google Cloud Storage for JS
//
// Quick & Dirty Google Cloud Storage emulator for tests. Requires
// `stream-buffers` from npm. Use it like this:
//
// `new MockStorage().bucket('my-bucket').file('my_file').createWriteStream()`
//
class MockStorage {
buckets: {[name: string]: MockBucket};
@scottopell
scottopell / fix_exfat_drive.md
Last active July 25, 2024 23:37
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

Disk Utility is unable to repair this at first, but the fix is this:

  1. Use diskutil list to find the right drive id.
  2. You want the id under the IDENTIFIER column, it should look like disk1s1
  3. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  4. -d is debug so you'll see all your files output as they're processed.
  5. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?
@jesty
jesty / OtherActivity.java
Last active July 6, 2023 06:36
Share cookies between WebView and OkHttpClient 3 / Retrofit 2. In the example I did the login on a web page in a WebView component and then I used the cookie to invoke a service from an activity
//Setup the client
OkHttpClient client = new OkHttpClient.Builder()
.cookieJar(new CookieJar() {
@Override
public void saveFromResponse(HttpUrl url, List<Cookie> cookies) {
}
@Override
@tomrunia
tomrunia / tensorflow_log_loader.py
Created March 2, 2016 09:11
Reading out binary TensorFlow log file and plotting process using MatplotLib
import numpy as np
from tensorflow.python.summary.event_accumulator import EventAccumulator
import matplotlib as mpl
import matplotlib.pyplot as plt
def plot_tensorflow_log(path):
# Loading too much data is slow...
tf_size_guidance = {
var getYoutubeIdByUrl = function( url ){
var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
var match = url.match(regExp);
if(match&&match[7].length==11){
return match[7];
}
return false;
};
@tsuharesu
tsuharesu / AddCookiesInterceptor.java
Last active June 8, 2024 07:30
Handle Cookies easily with Retrofit/OkHttp
/**
* This interceptor put all the Cookies in Preferences in the Request.
* Your implementation on how to get the Preferences MAY VARY.
* <p>
* Created by tsuharesu on 4/1/15.
*/
public class AddCookiesInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {