Skip to content

Instantly share code, notes, and snippets.

View laiso's full-sized avatar
☀️

laiso laiso

☀️
View GitHub Profile
@laiso
laiso / Pulumi.md
Last active June 30, 2020 15:45
Pulumi メモ

https://www.pulumi.com/

  • アプリケーション開発の言語でIaCするCDKじゃないやつ

Define infrastructure in JavaScript, TypeScript, Python, Go, or any .NET language, including C#, F#, and VB.

関連ツール

@laiso
laiso / CodePiece.kt
Created April 14, 2020 06:19
a sample post by CodePiece #CodePiece
// (c) https://qiita.com/tasogarei/items/fea4d392dbd4449980f7
fun main(args: Array<String>) {
(1..100).forEach{
when {
it % 15 == 0 -> println("fizzbuzz")
it % 3 == 0 -> println("fizz")
it % 5 == 0 -> println("buzz")
else -> println(it)
}
}

Realm近況

モバイルDBのRealmっていう製品について、最近の動向を調べた

2016年

  • 初期のSQLite代替というよりFirestoreのようなクラウド同期型DBとして進化している
  • Realm Object Server

すぐ消えちゃうチャットからカメラを通じた現実拡張+コミュニケーションアプリとして進化している

Snapは上場後、ユーザーインタフェース(UI)を一般向けに大きく変更したが、それが若者離れの原因になっていた。その後UIの改善やサードパーティによるスタンプやLens開発を可能にするSnap KitやSnap Studioの提供などで軌道を修正してきた。性別を変えたり、大人の顔を子どもの顔に変えたりするLensが好評だった。 https://www.itmedia.co.jp/news/articles/1907/24/news051.html

拡張現実(AR)に活路見出すソーシャル、それは「SnapChat」 – BRIDGE(ブリッジ)

ARと5Gでワンチャンを狙っているというアナリストの記事

@laiso
laiso / 中国とRubyメモ.md
Last active December 27, 2019 01:16
中国とRubyメモ

Ruby China

活発なRubyユーザーのコミュニティ

高まる中国のRuby熱---上海で初のRuby会議,まつもと氏も講演 | 日経 xTECH(クロステック)

2009年。日本のRubyコミュニティと近い時期に中国コミュニティも活発だった

中国を代表する企業であるECサイトのタオバオ(淘宝網)からは、2名のスピーカーが講演した。タオバオは、社内管理システムでRubyを使っているという。上海近郊の日本企業は、製品のプロトタイプの開発にRubyを使用して、実装はC系の言語で行っている。この会社からは新幹線で1時間以上かけて10名以上のエンジニアが参加した。 https://tech.nikkeibp.co.jp/it/article/COLUMN/20120115/378501/?ST=govtech

FROM php:fpm-alpine
RUN set -eux && \
apk update && \
apk add dpkg && \
curl -L https://download.newrelic.com/php_agent/release/newrelic-php5-9.2.0.247-linux-musl.tar.gz | tar -C /tmp -zx && \
NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 /tmp/newrelic-php5-*/newrelic-install install
# + curl -L https://download.newrelic.com/php_agent/release/newrelic-php5-9.2.0.247-linux-musl.tar.gz
@laiso
laiso / CodePiece.js
Created May 15, 2019 16:42
サーバーレスレスアーキテクチャでFirebase Authでログインさせる時はuidそのまま送ると実装によっては置き換え攻撃ができてしまう! https://firebase.google.com/docs/auth/admin/verify-id-tokens?hl=ja #CodePiece
signInSuccessWithAuthResult: (authResult, redirectUrl) => {
authResult.user
.getIdToken(false)
.then(idToken => {
// idToken をサーバーへ送ってdecodeしてuserを取り出す!!!!
});
return false;
}
@laiso
laiso / CodePiece.scala
Created April 26, 2019 06:18
英会話学習用のテキストを自作したくてQuoraのクスレイピングを書いた。なぜScalaなのかは不明…… #CodePiece
import java.io.{File, PrintWriter}
import org.jsoup.Jsoup
import scalaj.http.BaseHttp
object Main extends App {
def dumpToFile(text: String) = {
val writer = new PrintWriter(new File("dump.md"))
writer.write(text)
}
@laiso
laiso / Podfile
Created March 12, 2019 12:17
Firebase/Firestore iOS v0.16 系と FirebaseIn/AppMessaging を共存させる
pod 'Firebase'
pod 'FirebaseCore', '~> 5.1.0'
pod 'FirebaseFirestore', '~> 0.16.1'
pod 'FirebaseInAppMessagingDisplay'
pod 'FirebaseInAppMessaging', '~> 0.12.1'
@laiso
laiso / TOX.txt
Last active March 10, 2019 06:57
Pythonによるデータ分析入門, O'Reilly Japan 目次 https://www.oreilly.co.jp/books/
1章 はじめに
1.1 この本で説明する内容
1.1.1 どういうデータを扱うのか
1.2 なぜPythonをデータ分析に使うのか
1.2.1 「糊(グルー)」としてのPython
1.2.2 「2つの言語」問題を解決する
1.2.3 Pythonを使うべきではないケース
1.3 必須のPythonライブラリ
1.3.1 NumPy
1.3.2 pandas