Skip to content

Instantly share code, notes, and snippets.

View watura's full-sized avatar

Wataru Nishimoto watura

View GitHub Profile
@watura
watura / Fastfile
Last active October 28, 2020 21:14
Flutter ios firebase app distribution
require 'fileutils'
default_platform :ios
platform :ios do
before_all do |lane, options|
if is_ci
ENV['MATCH_KEYCHAIN_NAME'] = 'TempKeychain'
ENV['MATCH_KEYCHAIN_PASSWORD'] = 'TempKeychainPassword'
create_temp_keychain
@watura
watura / flutter build and deploy android.yml
Created November 14, 2019 03:25
flutter build and deploy android
name: flutter_build_deploy_android
on:
push:
branches:
- master
jobs:
build:
import UIKit
public class BoxedDisclosureCell: UITableViewCell, CellType {
var boxView: UIView!
func bind() {
if boxView.isNil {
boxView = UIView(frame: CGRect(x: 0, y: 0, width: 10, height: 10))
boxView.translatesAutoresizingMaskIntoConstraints = false
boxView.backgroundColor = UIColor.Zaim.colorBackgroundSub
@watura
watura / keybase.md
Created September 7, 2016 03:40
keybase.md

Keybase proof

I hereby claim:

  • I am watura on github.
  • I am watura (https://keybase.io/watura) on keybase.
  • I have a public key whose fingerprint is 84E3 DE1A 8763 3C56 0C73 39AE E42A 3922 E940 F57F

To claim this, I am signing this object:

@watura
watura / LocalPreference.swift
Created June 30, 2016 06:29
なんかUserDefaultsをちょっと楽に使う何か
protocol LPType {
associatedtype ValueType
static var value: ValueType? {get set}
static func val() -> ValueType?
}
extension LPType {
static var value: ValueType? {
get { return Self.val() }
set { Self.set(newValue) }
@watura
watura / tron.c
Created May 3, 2012 02:06
RitsPenでTronっぽいゲームっぽいものを作ってみた. awsdで操作. ソースコードとしては全然参考にならない汚い手抜きなものなので注意. さらに配列のはしっこの方とかちゃんと動くのかチェックしていないのでたぶおかしくなる
// シスプロ参照 7 12-
// Wataru Nishimoto
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <pthread.h>
#include<ctype.h>
#include<termios.h>
#include<unistd.h>
# -*- coding: utf-8 -*-
require "rexml/document"
require 'open-uri'
require './cityofhypes'
include REXML
class TopArticles
def self.scoring(rss_url,id)
# return id,score,url
# id = RSS Feed ID
require 'json'
require 'open-uri'
require 'digest'
class BackType
def self.requires_key?; true; end
def initialize(key)
@key = key
end
def said_about(url)
## Language
#
export LANG="ja_JP.UTF-8"
export LC_ALL="ja_JP.UTF-8"
autoload -U compinit
compinit
setopt auto_cd
setopt auto_pushd
setopt nolistbeep
ssh-dss AAAAB3NzaC1kc3MAAACBAMvH/39aKjPR1zh46ZyYsph8nWUZY5mYPSJlFj60WWUqn2g2D1DSkXkr1GegCdjmSPZEIZ/qKmiAZyWffAJdmE5v5VZY5JKhnuLV8X7at9tRXUOVlklwTbXGMZ1AfXnc9GHKSFhKuGVOVfevICS0nJP5Dr1EUQ4NTU0Nb8eNTx7hAAAAFQDxI46GQwZUT8nGEvgnWbW4so7LiQAAAIEAtVMYikT7aK2JWBlsPy2ACiXbfsdnHhE8jJo6xzxJZRm7U1/C8iy/l/2Bp2DYfmXPqwDVPFqxbjLOdH8P58vZxvUjM44Jjb9rQ5Q6gddECPM7LFCc4oPX8tEFEcftR2PX0VtzRzGnQG2i0q/t6xh7PJl5tbU0Czwt/RzWbGrdFOYAAACAI7xKItzXTArJyubOwJy6ch4BwQsFc9ECKmxdGbXbY2B75OU3tZ1GLj5X0v92JYd6R1ycuvOkwd2xIyhp3wMyrD4p4sKt2EXwhJ8P5BlODzHh/UJbApMfERd5RZIlhDl6n8guypHia7voTc9Arf7efHob7IC/DPb9pXAS554RXR0= watura@waturas