Skip to content

Instantly share code, notes, and snippets.

@polamjag
polamjag / add_tweet_to_pocket.rb
Created October 13, 2013 14:58
ツイートのユニークURLをPocketに追加する #mikutter プラグイン
# -*- coding: utf-8 -*-
Plugin.create :add_tweet_to_pocket do
command(:add_tweet_to_pocket,
name: "ツイートのユニークURLをPocketに追加",
condition: Plugin::Command[:HasMessage],
visible: true,
role: :timeline) do |target|
target.messages.each do |mes|
@oboenikui
oboenikui / Ohirune_Circle_Specification.md
Last active December 17, 2015 11:19
おひるねサークル仕様

##レベルについて
現在のレベルの変数をlevelとすると、次のレベルまでの総ポイント数(nextPoint)は
nextPoint = (level+1)*7*level/2+1;
で与えられます。何でこんな仕様にしたかはわかりません。遥か昔に忘れました。
つまり、例えば現在2Lvでおひるねポイントが9の場合は、(2+1)72/2+1=22なので、あと13ポイントで3Lvに見事レベルアップ、というわけです。

##おひるねできる時間と獲得ポイントについて

  • 寝る方
    最後に寝てから1時間以内の場合は、おひるねできません。働きましょう。ただし起きてからすぐ寝ることはできます。作者がそういう睡眠をよく取るからです。
@sters
sters / ohirune.html
Last active December 17, 2015 10:39
ohirune
<!--
moved: https://github.com/sters/ohirunejs
-->
<html>
<body>
<a id="ohirune" target="_blank">おひるね</a>
<a id="okita" target="_blank">おきた</a>
<script type="text/javascript">
@oboenikui
oboenikui / nepiadeath_usage.md
Last active April 21, 2019 03:28
ねぴぁ(@nepiadeath)の使い方

1. "@nepiadeath tenki [LOCATION]"

天気を教えてくれます Tweet

2. "@nepiadeath tenki tomorrow [LOCATION]"

明日の天気を教えてくれます Tweet

3. "@nepiadeath tokusub (tomorrow / [WEEKDAY])"

今日(明日/特定の曜日)の得サブを教えてくれます

@jt
jt / merge.md
Created August 23, 2011 18:47
Merge a forked gist

If someone forks a gist and you'd like to merge their changes. Do this:

  1. clone your repo, I use the name of the gist

     git clone git://gist.github.com/1163142.git gist-1163142
    
  2. add a remote for the forked gist, I'm using the name of my fellow developer

     git remote add aaron git://gist.github.com/1164196.git