Skip to content

Instantly share code, notes, and snippets.

View yuiseki's full-sized avatar
🍻
I want to drink

yuiseki yuiseki

🍻
I want to drink
View GitHub Profile
@esehara
esehara / sicp-173.markdown
Last active August 29, 2015 14:13
SICP財団(元ネタはSCP: http://ja.scp-wiki.net/scp-series)

SICP-173 - 副作用性機械理論

アイテム

SICP-173

オブジェクトクラス

Euclid

@koluku
koluku / hackadoll
Last active April 21, 2023 20:55
ハッカドールソースコメント コメントが消える直前に取得したソースコメント。多分最後のコメントを保存しているのはこれだけだと思う。 リビジョンで最後に取得したことを証明できるので参考までに。 2014-08-12 13:59 view-source:hackadoll.com
<!--
--
もう時間がないのでここにログだけ残す。
--
@bellbind
bellbind / avcapture.m
Last active June 19, 2023 01:21
[objective-c][macosx]capturing image from webcam
// capture image from webcam(e.g. face time)
// for OSX 10.9 (use AVFoundation API instead of deprecated QTKit)
// clang -fobjc-arc -Wall -Wextra -pedantic avcapture.m
// -framework Cocoa -framework AVFoundation -framework CoreMedia
// -framework QuartzCore -o avcapture
#import <AVFoundation/AVFoundation.h>
#import <AppKit/AppKit.h>
@interface Capture : NSObject <AVCaptureVideoDataOutputSampleBufferDelegate>
@kianoshp
kianoshp / _arrow-box-mixin.scss
Last active December 25, 2015 00:09
A Sass mixin to create arrow boxes (similar to tooltips) borrowing from http://cssarrowplease.com, I created the following:
//Setting the initial border color to be red
$red: #9d261d;
//this mixin will set the box-shadow values. It will also allow for the felxibility of
//doing an inset shadow.
@mixin box-shadow ($isInset: false, $hOffset: 0, $vOffset: 0, $blur: 0, $spread: 0, $color: #ccc) {
@if $isInset {
-moz-box-shadow: inset $hOffset $vOffset $blur $spread $color;
-webkit-box-shadow: inset $hOffset $vOffset $blur $spread $color;
box-shadow: inset $hOffset $vOffset $blur $spread $color;
@esehara
esehara / roudo.txt
Last active December 19, 2015 02:19
ロウドー 第一章
ちょうど一年前に この道を通った夜
昨日の事のように 今はっきりと想い出す
大声で怒鳴ったせいで メソッドは長い行さ
どこまでも続く メインメソッドが綺麗で
プロマネの君は まるで死人のように
青白い顔を浮かべたまま 眠れる棺桶の老人
ゆすって起こした俺を 恨めしそうににらんで
俺の手を握り返し「休みが欲しい…」と言った
メモ
全体的なこと
- 想定してるRubyとかRailsのバージョンが古いので何とかしたい。
- 個人的に改造してる人がそれなりにいるので、その辺まとめたい。
- github/livedoor もあるんだけど、そこにadmin権限持ってるユーザー好き勝手追加は怖いので別で + コミュニティ主導でやりたい
- html/js/css も割と古くなってしまっているので、そのへんも何とかしたい。
----
オープンソースに拘るのは保険的な意味合いもあるのだけど、
サービス型のRSSリーダーで出来無いことがそれなりにあるというのが大きい。
@esehara
esehara / not_health_bull.md
Last active December 12, 2015 07:28
不健康ブルのレシピ

不健康ブルとは

 不健康ブルは、元々市販されているレッドブルを、効率よく、また足りない成分を幾ばくか混ぜて、作業用に強化した飲み物です。

レシピ

  1. ポカリスエット(1l)
  2. レッドブル or モンスター
  3. リオビタンD or それより高いもの

Hacking a Twine

I got a Twine the other week because I was interested in tracking temperature and moisture readings from my house, particularly to know if something is flooding.

Once setup, the Twine sends periodic readings of its temperature sensor and any external probes (moisture sensor) to the Supermechanical site. I was disappointed to find that there isn't currently a way to access those periodic readings. You can set rules

class Tab
constructor: ->
@$tabs = ($ '.tab')
@$sections = ($ '.section')
@_idx = 0
current_tab: =>
@$tabs.eq(@_idx)
current_section: =>
@yuiseki
yuiseki / EnableGoogleWebHistory.user.js
Created May 23, 2012 10:14
Userscript that enable using GoogleWebHistory in Opera and Firefox
// ==UserScript==
// @name EnableGoogleWebHistory
// @author mallowlabs
// @namespace http://mallowlabs.s206.xrea.com/
// @version 0.0.2
// @license public domain
// @description : Enable Google Web History
// @published 2007-01-05
// @modified 2006-01-05
// @include *