Skip to content

Instantly share code, notes, and snippets.

@mono0926
mono0926 / user_active.sql
Last active April 15, 2021 12:16
Firebase AnalyticsのBigQueryから、それぞれのユーザーの直近1ヶ月の最終アクティブ時刻を抽出
CREATE TEMPORARY FUNCTION
today() AS ( (
SELECT
CURRENT_DATE('Asia/Tokyo')) );
CREATE TEMPORARY FUNCTION
formatDate(d DATE) AS ( (
SELECT
FORMAT_DATE('%Y%m%d',d)) );
SELECT
user_id as userId,
@alloy
alloy / gist:10481169a3acfeeeba3f7c23c5b1b400
Created September 26, 2016 12:09
Run on iOS 10 device from Xcode 7.
cp -R /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) \
/Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@yuki-takeichi
yuki-takeichi / notify
Last active August 16, 2016 07:45
Notify elapsed seconds when command is finished
#!/bin/bash
# Notify elapsed seconds when command is finished
# (Mac OS X only)
# How to setup:
# 1. `brew install terminal-notifier`
# 2. Put this file in your /bin dir
# How to use:
@jondot
jondot / keybez.md
Created January 14, 2016 16:49
ios keyboard bezier
  onKeyboardWillHide(e) {
    Animated.timing(this.state.height, {
      toValue: this.listViewMaxHeight,
      duration: e.duration,
      easing: Easing.bezier(0.1, 0.76, 0.55, 0.9)
    }).start();
  },

 onKeyboardWillShow(e) {
@ainame
ainame / matome.md
Last active October 4, 2017 08:16
井戸端iOS飯で過去に見た動画まとめ

井戸端iOS飯

とは?

井戸端iOS飯とは、昼休み1時間+MTG分の30分の計1時間30分を利用して、 NBFオフィスのコラボのプロジェクターとスクリーンを利用して、 最新のスマホアプリ開発技術に関する動画を見ながらご飯を食べて、 交流する場です。

ぜひお気軽にご参加ください。

@toshi0383
toshi0383 / CodePiece.swift
Created July 25, 2015 06:21
throwsとrethrows。うーんここまでやるかなあ。 #cswift #CodePiece
func executeRethrows(f:() throws ->()) rethrows {
do{try f()}catch{print(error)}
}
func execute(f:() throws ->()) {
do{try f()}catch{print(error)}
}
enum MyError:ErrorType {
case A, B
}
execute{
@mackuba
mackuba / wwdc15.md
Last active August 6, 2022 17:28
New stuff from WWDC 2015

Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.

If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.

OS X El Capitan

http://www.apple.com/osx/elcapitan-preview/

  • split view - two apps side by side on full screen
@shinyaohira
shinyaohira / App States and Multitasking.md
Last active October 5, 2023 07:57
アプリケーションの状態とマルチタスキング

全体的に簡略化し、必要と思われる部分を抜粋しました。

  • Not running

    アプリは起動されていないか、実行されていたけれどもシステムによって終了されています。

  • Inactive