Skip to content

Instantly share code, notes, and snippets.

View mizucoffee's full-sized avatar
🌊

GOTO Ritsuki mizucoffee

🌊
View GitHub Profile

Calibre-web on FreeNAS

Creating the Jail

  • Step 1 - Name Jail and Choose FreeBSD Release

    • Name: calibre-jail
    • Jail Type: Default(Clone Jail)
    • Release: 11.3-RELEASE
@kb10uy
kb10uy / LittleRiddle.sus
Created December 2, 2017 14:18
オドリドリ
#SONGID "LittleRiddle"
#TITLE "リトルリドル"
#ARTIST "LittlePOPS"
#DIFFICULTY 3
#PLAYLEVEL 12
#DESIGNER "kb10uy"
#WAVE "リトルリドル.ogg"
#WAVEOFFSET 1.808
#JACKET "jacket.jpg"
@phlegx
phlegx / Rails 4 - how to give alias names to includes() and joins() in active record quering
Last active February 12, 2024 19:12
Rails 4 - how to give alias names to includes() and joins() in active record quering
See question on stack overflow: http://stackoverflow.com/questions/28595636/rails-4-how-to-give-alias-names-to-includes-and-joins-in-active-record-que
- Model Student and model Teacher are both STI models with super class model User
- Model Story is a STI model with super class model Task
- includes() and joins(), both fails
Rails alias naming convention (includes() and joins())
- One model as parameter
- is base model (includes(:users))
#!/usr/bin/env xcrun swift
import Foundation
let kDelayUSec : useconds_t = 500_000
func DragMouse(from p0: CGPoint, to p1: CGPoint) {
let mouseDown = CGEventCreateMouseEvent(nil, .LeftMouseDown, p0, .Left)
let mouseDrag = CGEventCreateMouseEvent(nil, .LeftMouseDragged, p1, .Left)
let mouseUp = CGEventCreateMouseEvent(nil, .LeftMouseUp, p1, .Left)
@shoya140
shoya140 / gist:9693984
Last active August 15, 2017 13:00
Setting up new mac

Finder設定

階層表示 参考

不可視ファイルを表示

defaults write com.apple.finder AppleShowAllFiles true

フォルダを英語名に 参考

@STAR-ZERO
STAR-ZERO / FontFitTextView.java
Created June 15, 2012 03:18
【Android】横幅に合わせてテキストサイズを調整するTextView
import android.content.Context;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.widget.TextView;
/**
* サイズ自動調整TextView
*
*/