Skip to content

Instantly share code, notes, and snippets.

View kadoppe's full-sized avatar

Kohei Kadowaki kadoppe

View GitHub Profile
@bouzuya
bouzuya / backlog-banner.user.js
Created April 26, 2015 06:13
Backlog の検索ページに Banner を表示するユーザースクリプト
// ==UserScript==
// @name Backlog Banner
// @namespace http://bouzuya.net/
// @version 0.1
// @description backlog banner
// @author bouzuya
// @match https://*.backlog.jp/find/*
// @grant none
// ==/UserScript==
@bouzuya
bouzuya / shuburi.md
Last active August 29, 2015 14:11
bouzuya 版週ぶり (bouzuya's shuburi) / 旧・週ぶり (shuburi) 初期コンセプト
@millermedeiros
millermedeiros / osx_setup.md
Last active March 23, 2025 01:23
Mac OS X setup

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...

@znz
znz / date_time_selector.rb
Last active May 31, 2018 13:44
DateTimeSelector の選択肢のテキストの生成部分をもっと汎用的にしてほしい
# -*- coding: utf-8 -*-
# config/initializers/date_time_selector.rb
# based on actionpack-3.2.11/lib/action_view/helpers/date_helper.rb
require "action_view/helpers/date_helper"
class ActionView::Helpers::DateTimeSelector
undef select_day
def select_day
if @options[:use_hidden] || @options[:discard_day]
build_hidden(:day, day || 1)
else
@chourobin
chourobin / RKAppDelegate.m
Last active October 22, 2018 14:22
Setting up magical record with RestKit
#import <RestKit/RestKit.h>
#import "CoreData+MagicalRecord.h"
// Use a class extension to expose access to MagicalRecord's private setter methods
@interface NSManagedObjectContext ()
+ (void)MR_setRootSavingContext:(NSManagedObjectContext *)context;
+ (void)MR_setDefaultContext:(NSManagedObjectContext *)moc;
@end
@implementation AppDelegate
@ruycer
ruycer / Errors install ruby 1.9.3 via RVM
Created February 5, 2013 02:02
I am trying to install Ruby 1.9.3 via RVM on my machine (OSX 10.8.2). I have Xcode 4.6, and I installed every required package via homebrew (full list bellow). Any ideas why this is not working?
I try to install via rvm Ruby 1.9.3 in my machine but I get this error:
ruycer:~ ruycer$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p374.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /Users/ruycer/.rvm/rubies/ruby-1.9.3-p374, this may take a while depending on your cpu(s)...
ruby-1.9.3-p374 - #downloading ruby-1.9.3-p374, this may take a while depending on your connection...
ruby-1.9.3-p374 - #extracted to /Users/ruycer/.rvm/src/ruby-1.9.3-p374 (already extracted)
ruby-1.9.3-p374 - #configuring
ruby-1.9.3-p374 - #compiling
@shawnbot
shawnbot / d3-compat.js
Created November 29, 2012 02:00
d3 "mouseenter" and "mouseleave" event support
(function() {
// get a reference to the d3.selection prototype,
// and keep a reference to the old d3.selection.on
var d3_selectionPrototype = d3.selection.prototype,
d3_on = d3_selectionPrototype.on;
// our shims are organized by event:
// "desired-event": ["shimmed-event", wrapperFunction]
var shims = {
@hayajo
hayajo / changelog_en.md
Last active April 1, 2025 14:37
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@scho
scho / paging_tree_store.js
Created August 1, 2012 11:43
Netzke component implementation of Ext.tree.Panel with rails 3.2.7 using netzke-core/basepack 0.7.6 and Ext JS 4.0.2
// Extends Ext.data.TreeStore and adds paging to it
Ext.define('Ext.netzke.PagingTreeStore', {
extend: 'Ext.data.TreeStore',
alias: 'pagingtreestore',
currentPage: 1,
config:{
totalCount: null,
pageSize: null
},
// Load a specific Page