Skip to content

Instantly share code, notes, and snippets.

View sakurabird's full-sized avatar
💭
I may be slow to respond.

Yukari Sakurai sakurabird

💭
I may be slow to respond.
View GitHub Profile
@mzsima
mzsima / ViewController.swift
Created October 12, 2017 13:56
missing circle
//
// ViewController.swift
// MissingCircle
//
// Created by MizushimaYusuke on 2017/10/12.
// Copyright © 2017 MizushimaYusuke. All rights reserved.
//
import UIKit
import SpriteKit
@sakurabird
sakurabird / newline2.rb
Last active August 29, 2017 15:36
入力ファイルから出力ファイルに書き出すRubyのプログラム。n文字毎に改行コードも挿入する。
##################################################
# 入力ファイルから出力ファイルに書き出すRubyのプログラム
# 入力ファイルはテキストファイルである
# テキストはランダムに改行されている
# 文字がn文字を超えていたらn文字で改行する
# 実行方法はコマンドラインから次のように打ち込む。Ruby必須
# $ ruby newline2.rb
##################################################
@mzsima
mzsima / ViewController.m
Created July 15, 2016 13:02
wagara asa
//
// ViewController.m
// WagaraAsa
//
// Created by MizushimaYusuke on 7/15/16.
// Copyright © 2016 MizushimaYusuke. All rights reserved.
//
#import "ViewController.h"
@import SpriteKit;
@toyamah
toyamah / IO_2016_fablic.md
Last active June 12, 2016 10:11
fablicさんで行われたGoogle I/O 2016報告会での、Googleの方から聞いたこと

Instant App

目的

日本だと感じないかもしれないが、回線はプリペイド式という国がある(インドとか)。
つまりアプリをダウンロードする = お金を使っているイメージ。
となると、アプリをダウンロードしないとか、アップデートしないとか、そういった考えをもっている人が世界にはいる。
こういう現状が世界ではあるから、そういうのを改善しておきたい。

容量

あくまでインスタントな機能なので、容量制限は4MB

@ftvs
ftvs / PhonecallReceiver.java
Last active October 11, 2023 10:05
Detecting an incoming call coming to an Android device. Remember to set the appropriate permissions in AndroidManifest.xml as suggested in the Stackoverflow link. Usage example in comments. Source: Gabe Sechan http://stackoverflow.com/a/15564021/264619 Explanation: http://gabesechansoftware.com/is-the-phone-ringing/#more-8
package com.gabesechan.android.reusable.receivers;
import java.util.Date;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
public abstract class PhonecallReceiver extends BroadcastReceiver {
@hayajo
hayajo / changelog_en.md
Last active April 16, 2024 12:57
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@kojiokb
kojiokb / DebugLog.java
Created September 2, 2012 05:38
デバッグビルド時のみログを出力する
import android.util.Log;
public class DebugLog {
public static void v(String tag, String message) {
if (BuildConfig.DEBUG) {
Log.v(tag, message);
}
}
@sakurabird
sakurabird / AndroidManifest.xml
Created July 10, 2012 14:30
AndroidAnnotationsライブラリーを使ったHello World!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yochiand.myexampleandroidannotations"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="3" />
<application
android:icon="@drawable/ic_launcher"
@kimukou
kimukou / limit_check
Created July 9, 2012 02:32
hashtag realtime search
http://otter.topsy.com/credit.json
{
response: {
limit: 3000,
reset: 1341903600,
refresh_in_secs: 83684,
remaining: 2675
},
request: {