Skip to content

Instantly share code, notes, and snippets.

View jumbo-in-Jap's full-sized avatar

Ken Jumbo Haneda jumbo-in-Jap

View GitHub Profile
@jumbo-in-Jap
jumbo-in-Jap / zshrc
Last active June 1, 2016 05:14
zshrc
# -------------------------------------
# 環境変数
# -------------------------------------
# SSHで接続した先で日本語が使えるようにする
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# エディタ
export EDITOR=/usr/local/bin/vim
#set -e
set -x
# neobundle
mkdir -p ~/.vim/bundle
git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
git clone https://github.com/Shougo/vimproc ~/.vim/bundle/vimproc
ln -s ~/dotfiles/vim/.vimrc ~/.vimrc
# -------------------------------------
# 環境変数
# -------------------------------------
autoload -Uz compinit
compinit -u
# SSHで接続した先で日本語が使えるようにする
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
UINavigationBar.appearance().setBackgroundImage(UIImage(named: "barBackground"),forBarMetrics:.Default)
UINavigationBar.appearance().shadowImage = UIImage()
UINavigationBar.appearance().tintColor = UIColor.darkGrayColor()
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName : UIColor.darkGrayColor()]
textField.leftView = UIView(frame: CGRectMake(0,0,20,20))
textField.leftViewMode = .Always
textField.layer.borderColor = UIColor.appColor().CGColor
textField.layer.cornerRadius = 5
textField.layer.borderWidth = 1
textField.layer.masksToBounds = true
tableView.separatorStyle = .None
for subview in testButton.subviews where subview is UIButton {
subview.removeFromSuperview()
}
//
// AnyAudioPlayer.swift
// audioSample
//
// Created by HanedaKentarou on 2016/04/12.
// Copyright © 2016年 Kaumo. All rights reserved.
//
import UIKit
import AVFoundation
@jumbo-in-Jap
jumbo-in-Jap / SlackFeedback.kt
Last active January 6, 2017 02:07
post slack feedback image and, comment fragment
package jp.co.rarejob.views.fragments.common
import android.graphics.Bitmap
import android.os.Bundle
import android.support.v4.app.Fragment
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.LayoutInflater
import android.view.View
@jumbo-in-Jap
jumbo-in-Jap / TwicastLoginWebViewController.swift
Last active January 28, 2017 05:24
「ハッカソン当日より前の開発環境の構築やプロトタイプの作成など、事前準備を可とします」とのことなので、ツイキャスハッカソン用にOauth2のログインでAccessTokenを取得するとこをSwift3で書きました
//
// TwicastLoginWebViewController.swift
// TwicasHackathonTest
//
// Created by HanedaKentarou on 2017/01/16.
// Copyright © 2017年 com.adriablue. All rights reserved.
//
/* How to use.