Skip to content

Instantly share code, notes, and snippets.

@ryosms
ryosms / homebrew.mxcl.jenkins.plist
Created June 1, 2012 05:53
homebrewでインストールしたjenkinsのポートを変更するほーほー
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.jenkins</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
<string>-Dfile.encoding=UTF-8</string>
学校の先生に見てもらうつもりだったんですが台風のお陰で休校になりまして・・・
お時間がございましたらTwitterなので感想やアドバイスなどいただけると嬉しいです。
見ていただき部分は「将来の目標」と「自己紹介文」の部分です。(他はおk頂きました)
※記入欄が横17cmの2行しかないため短文になっております。
*将来の目標の部分なのですが、今現在の目標はプログラマになることです。
 しかしこの書き方だと職についたら終わりのようなイメージを持たれそうで怖いです。
 プログラマになるためにこんなことをやっています。
(勉強会へ参加したり、プログラミングの学習をしたり、企業の方にプログラミングのノウハウを教え頂いたり)
@ryosms
ryosms / PhoneStateTestActivity.java
Created June 27, 2012 01:14
電波強度取得
package jp.sumasu.test;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.telephony.PhoneStateListener;
import android.telephony.SignalStrength;
import android.telephony.TelephonyManager;
import android.widget.TextView;
@ryosms
ryosms / gist:3388407
Created August 18, 2012 17:02
count tweet's characters with twitter-text-java
public int countTweetCharacters(String text) {
int count = text.length();
Extractor extractor = new Extractor();
List<String> urls = extractor.extractURLs(text);
for (String url : urls) {
count -= (url.length() - 20);
if (url.startsWith("https://")) {
count += 1;
}
@ryosms
ryosms / googleinput_config.txt
Created October 15, 2012 07:01
ATOK風のキーバインドをベースに、「変換」キーで日本語入力をON、「無変換」キーで日本語入力をOFFにする(Mac風)の調整を入れた、ぐぐる日本語入力さんのconfigファイル
status key command
Conversion Backspace Cancel
Conversion Ctrl a SegmentFocusFirst
Conversion Ctrl Backspace Cancel
Conversion Ctrl d SegmentFocusRight
Conversion Ctrl Down CommitOnlyFirstSegment
Conversion Ctrl e ConvertPrev
Conversion Ctrl Enter Commit
Conversion Ctrl f SegmentFocusLast
Conversion Ctrl g Cancel
@ryosms
ryosms / GitLab4.1onUbuntu12.04.md
Last active December 11, 2015 17:09
さくらのVPSにUbuntu12.04を突っ込んでGitLab 4.1を入れる手順

1. Ubuntuのインストール

  • さくらの [VPSコントロールパネル][vps_home] から OS再インストールカスタムOSインストールへ

  • カスタムOSインストールOS選択Ubuntu 12.04 amd64 を選択

  • 注意事項を読んで 確認 ボタン → 実行 ボタン

  • VNCコンソールでインストーラーが起動するので [インストールガイド][install_guid] を参考にインストールを進める

@ryosms
ryosms / GitLab-CI2.0.md
Created January 29, 2013 07:54
さくらのVPSにUbuntu12.04を突っ込んでGitLab 4.1を入れたサーバーでGitLab CI 2.0を同居させる手順

0. 前提条件

  • サーバー:Ubunt 12.04(on さくらのVPS)
  • GitLab 4.1インストール済み
    • Ruby、mySQL、Nginxはインストール済み
  • 詳しくは GitLab4.1のインストール手順 見れ

1. GitLab-CI用ユーザーの作成

・好きな言語は?
・好きなメソッドは?
・好きなアニメは?
・好きなガンダムシリーズは?
・githubアカウントは?
・英語しゃべれる?
・最近気になるテクノロジーは?
・最近行った勉強会は?
・最近登壇した勉強会は?
・iPhone落とした事ある?
@ryosms
ryosms / Android.gitignore
Last active December 15, 2015 17:39
俺々.gitignore for Android
#
# .gitignore template for Android development
#
# This template is combined the following files in github/gitignore
# https://github.com/github/gitignore
#
# 1. Android.gitignore
# 2. Global/Eclipse.gitignore
# 3. Global/OSX.gitignore
# 4. Global/Windows.gitignore
@ryosms
ryosms / RakutenGsonConverter.java
Created August 13, 2013 08:38
楽天の凶悪なJsonをAndroidAnnotationのRest APIで無理やりなんとかするアレ
package jp.sumasu.rakutenapi;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.GsonHttpMessageConverter;
/**
* @author ryosms - ryo.sms at gmail.com
*/
public class RakutenGsonConverter extends GsonHttpMessageConverter {