Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Kazuhiro Homma kazuph

🏠
Working from home
View GitHub Profile
@kazuph
kazuph / karabiner.json
Created May 16, 2020
2020-05-16 karabiner.json (日本語キーボード併用時の記述も追加)
View karabiner.json
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
View detect_image_camera.py
# Lint as: python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@kazuph
kazuph / script.js
Created Oct 24, 2019
Chrome Extension Script Auto RunnerでSafari(O'Reilly)が日本語に翻訳されたあともNext/Prev/目次のリンクを有効にする
View script.js
// load "//code.jquery.com/jquery-3.4.1.min.js"
let rebindClickEvent = () => {
$('a.next').on('click', () => location.href = $('a.next')[0].href );
$('a.prev').on('click', () => location.href = $('a.prev')[0].href );
$('li.toc-level1').map((i, li) => {
$(li).on('click', () => location.href = $(li).children()[0].href )
})
console.log("rebind")
}
setTimeout(rebindClickEvent, 1000 * 5);
@kazuph
kazuph / esa2esa.rb
Last active Mar 23, 2017
esaを一度解約したが、再度使い始めたときに使うスクリプト(ExportデータをそのままImport)
View esa2esa.rb
#!/usr/bin/env ruby
# coding : utf-8
require 'esa'
require 'yaml'
class Importer
attr_accessor :client, :files
def initialize(client, dir_path)
@client = client
View puma
#!/bin/sh
#
# puma - this script starts and stops the puma daemon
#
# chkconfig: - 85 15
# description: Description \
# goes here...
# processname: puma
# config: /etc/puma.conf
# pidfile: /home/stanislaw/apps/micro-apps/puma/puma.pid
View .vimrc
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath^=/home/pi/.dein/repos/github.com/Shougo/dein.vim
" Required:
call dein#begin(expand('/home/pi/.dein'))
@kazuph
kazuph / github_issues_to_csv.rb
Last active Sep 9, 2015 — forked from tkarpinski/github_issues_to_csv.rb
Exports Github issues to CSV (API v3)
View github_issues_to_csv.rb
#!/usr/bin/env ruby
# coding : utf-8
require 'octokit'
require 'csv'
require 'date'
# Github credentials to access your private project
USERNAME="USER_NAME"
PASSWORD="SEKRIT"
# Project you want to export issues from
View README.md

Elixirの写経をする

View Alamofire.swift
// Alamofire.swift
//
// Copyright (c) 2014 Alamofire (http://alamofire.org)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@kazuph
kazuph / AES.c
Last active Aug 29, 2015 — forked from bricef/AES.c
View AES.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* MCrypt API available online:
* http://linux.die.net/man/3/mcrypt
*/
#include <mcrypt.h>
You can’t perform that action at this time.