Skip to content

Instantly share code, notes, and snippets.

Mihyaeru mihyaeru21

Block or report user

Report or block mihyaeru21

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mihyaeru21 / rule.json
Last active Aug 3, 2017
View rule.json
"description": "Change `<C-[>` to `<C-[> + IME off` in some apps.",
"manipulators": [
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [



  • 北海道ぼっち旅行
    • だいたいの計画を立てる
    • 実行
  • 関西ぼっち旅行 体調的に諦めた
    • だいたいの計画を立てる 体調的に諦めた
# ()付けない
cmp_deeply $hoge, {
id => is_integer,
name => is_string,
# ()付ける
cmp_deeply $hoge, {
id => is_integer(),
name => is_string(),
View Array+Uniq.swift
extension Array {
func uniqBy<KeyType: Hashable>(@noescape hash: (Element) -> KeyType) -> [Element] {
var seen: [KeyType: Bool] = [:]
return self.filter { element in
let key = hash(element)
if seen[key] == nil {
seen[key] = true
return true
return false
mihyaeru21 /
Last active Oct 27, 2015
` pray | pbcopy` で圧倒的感謝 🙏
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
exit 1 unless @ARGV;
my $emoji = ":$ARGV[0]:";
print join ' ', $emoji, map { "$emoji:skin-tone-$_:" } 2..6;
View private.xml
<name>Option_L to Command_L</name>
<appendix>(+ When you type Option_L only, send EISUU)</appendix>
<autogen>__KeyOverlaidModifier__ KeyCode::OPTION_L, KeyCode::COMMAND_L, KeyCode::JIS_EISUU</autogen>
<name>Option_R to Command_R</name>
<appendix>(+ When you type Option_L only, send KANA)</appendix>
# -*- coding: utf-8 -*-
from __future__ import print_function
from rx import Observable
(Observable.from_(range(1, 10))
.map(lambda x: x ** 2)
.filter(lambda x: x % 2 == 0)
on_next = print,
mihyaeru21 / NSDictionary+MBUtil.h
Last active Aug 29, 2015
View NSDictionary+MBUtil.h
#import <Foundation/Foundation.h>
@interface NSDictionary (MBUtil)
- (instancetype)initWithDictionary:(NSDictionary *)dictionary withKeyDictionary:(NSDictionary *)keyDictionary;
+ (instancetype)dictionaryWithDictionary:(NSDictionary *)dictionary withKeyDictionary:(NSDictionary *)keyDictionary;
mihyaeru21 / require
Created Sep 8, 2013
pyenvに必要なパッケージ for Ubuntu
View require
sudo apt-get install libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev
mihyaeru21 / Homebrew
Last active Dec 22, 2015
View Homebrew
brew install zsh git vim macvim openssl tree gnuplot the_silver_searcher tmux pyenv plenv perl-build rbenv ruby-build zsh-completions reattach-to-user-namespace ghostscript imagemagick
You can’t perform that action at this time.