| 更新: | 2024-10-08 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2024.1 |
| URL: | https://voluntas.github.io/ |
概要
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.drawable.Drawable; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| public class ForegroundImageView extends ImageView { | |
| private Drawable foreground; |
| // See: https://devforums.apple.com/message/1000934#1000934 | |
| import Foundation | |
| // Logic | |
| operator prefix ¬ {} | |
| @prefix func ¬ (value: Bool) -> Bool { | |
| return !value | |
| } |
| 更新: | 2024-10-08 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2024.1 |
| URL: | https://voluntas.github.io/ |
概要
| // Creates a UIColor from a Hex string. | |
| func colorWithHexString (hex:String) -> UIColor { | |
| var cString:String = hex.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()).uppercaseString | |
| if (cString.hasPrefix("#")) { | |
| cString = cString.substringFromIndex(1) | |
| } | |
| if (countElements(cString) != 6) { | |
| return UIColor.grayColor() |
| # Description: | |
| # Joke commands. | |
| # | |
| # Commands: | |
| # ぬるぽ - You reply with, "ガッ" When you post a "ぬるぽ" word. | |
| # | |
| # Notes: | |
| # ネタ/ジョーク系のbot全般 | |
| module.exports = (robot) -> |
Some parts taken from: https://gist.github.com/kujohn/7209628
ipfw is officially deprecated and removed in OS X Yosemite. Pow requires another program pf to handle the port forwarding.
Create file /etc/pf.anchors/pow
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
tl;dr IdotabaのGemfileは"全プレ"になりました。ご笑納ください。→ Gemfile
rebuild.fmのep36でお知らせさせていただきました、Idobataの最新版Gemfileプレゼントをお届けいたします。 過日はIdobata会議01への多数のご参加ありがとうございました。おかげさまで盛況なミートアップとなりました。 (当日会場を提供いただいたEngine Yardさまのブログにて、Idobata会議01当日の様子がまとめられています。ありがとうございます!)
| " NeoBundle ---------------------------------------------------------------- {{{ | |
| " call neobundle#begin(___) ... call neobundle#end() の間に置いてください | |
| " Vim でコマンドを実行して結果を表示するプラグイン「QuickRun」をインストール | |
| NeoBundle 'thinca/vim-quickrun' | |
| " テストを実行中、vimの動作をブロックしないようにするために「vimproc」をインストール | |
| NeoBundle 'Shougo/vimproc' | |
| " -------------------------------------------------------------------------- }}} | |
| " |