Skip to content

Instantly share code, notes, and snippets.

Enumerating objects: 16, done.
Counting objects: 100% (16/16), done.
Delta compression using up to 10 threads
Compressing objects: 100% (12/12), done.
Writing objects: 100% (13/13), 1.30 KiB | 1.30 MiB/s, done.
Total 13 (delta 8), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
@LuckOfWise
LuckOfWise / component.coffee
Created August 22, 2016 01:50
vue.jsサンプル
$ ->
TalkTree.setupComponents = ->
Vue.component('article-row', {props: ['article', 'selected_article_id', 'joined'], template: '#article_row'})
if $('.js-component-group').length == 0
return
if ('.js-component-group').length > 0
TalkTree.componentGroup = new Vue(
el: '.js-component-group'
data:
@LuckOfWise
LuckOfWise / gist:f31040f93dd8e90e4234
Last active August 29, 2015 14:16
1時間毎に予定をremottyに投稿するGAS
function myFunction() {
var sheet = SpreadsheetApp.getActiveSheet();
var calendar = CalendarApp.getDefaultCalendar();
var from = new Date();
// 今から60分後にかぶる予定をさがす
var to = new Date(from.getTime() + (1000 * 60 * 60));
// このURLを自分のものに直してね
var link = "https://www.remotty.net/rooms/1/bot/message.json?(twitter用の奴と同じクエリ)";
var events = calendar.getEvents( from , to );
if (events.length > 0){
@LuckOfWise
LuckOfWise / gist:7799107
Last active December 30, 2015 07:58 — forked from tochi/gist:7798779
keyword = "乾杯"
musician = "長渕剛"
big = "大きな"
your = "君"
now = "今"
day = "日"
hope = "たい"
row = "ろう"
['作詞:', '作曲:'].map{|w| w + musician}
@LuckOfWise
LuckOfWise / gist:7798953
Last active December 30, 2015 07:49 — forked from tochi/gist:7798779
keyword = '乾杯'
musician = '長渕剛'
"作詞:#{musician}
作曲:#{musician}"
"かたい絆に 思いをよせて
語り尽くせぬ 青春の日々
#{['傷つき', '喜び'].map{|w| anytime(w)}}
肩をたたきあった あの日"
@LuckOfWise
LuckOfWise / ScoreBoard.cs
Last active December 17, 2015 14:39
UnityからSCORE BOARD(http://www.score-board.mobi/)を使う場合 AndroidManifest.xmlはREADME.txtを見て更新してください。
// スコアの送信
void PostRanking (int score)
{
#if UNITY_ANDROID
AndroidJavaClass plugin = new AndroidJavaClass ("jp.basicinc.gamefeat.ranking.android.sdk.controller.GFRankingController");
AndroidJavaClass unityPlayer = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
AndroidJavaObject activity = unityPlayer.GetStatic<AndroidJavaObject> ("currentActivity");
AndroidJavaObject ranking = plugin.CallStatic<AndroidJavaObject> ("getIncetance", activity);
ranking.Call ("sendScore", new string[] {"[ゲームモードID]"}, new string[] { score.ToString()});
#endif
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="PatorashRailscast" version="124" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="14" />
<option name="EDITOR_FONT_NAME" value="Menlo" />
<colors>
<option name="CARET_COLOR" value="ffffff" />
<option name="CARET_ROW_COLOR" value="333435" />
<option name="CONSOLE_BACKGROUND_KEY" value="2b2b2b" />
<option name="GUTTER_BACKGROUND" value="2b2b2b" />
@LuckOfWise
LuckOfWise / Gemfile
Created April 16, 2013 07:52
2013/4の時点でrails4を動かそうとしたGemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0.beta1'
gem 'i18n_generators'
gem 'simple_form'
gem 'devise', git: 'https://github.com/plataformatec/devise.git', branch: 'rails4'
gem 'protected_attributes'
gem 'kaminari'
・好きなメソッドは?
・好きなアニメは?
・好きな言語は?
・好きなガンダムシリーズは?
・githubアカウントは?
・あなたの習得している中で一番FizzBuzzを短くかける言語は?
・英語しゃべれる?
・最近気になるテクノロジーは?
・最近行った勉強会は?
・最近登壇した勉強会は?
@LuckOfWise
LuckOfWise / EventMapFragment.java
Last active April 10, 2017 08:12
MapFragmentをTabの要素として表示したい to @shikajiro
package jp.kickhost.eventnavi;
import java.util.ArrayList;
import jp.kickhost.localsearch.model.Event;
import android.app.Fragment;
import android.os.Bundle;
import android.text.format.Time;
import android.util.Log;
import android.view.InflateException;