Skip to content

Instantly share code, notes, and snippets.

@seventhsense
seventhsense / transform_filename.sh
Created July 18, 2018 21:00
日本語ファイル名のmdをローマ字でハイフン分かち書きに変換するスクリプト(破壊的)要nkf kakasi
#!/bin/bash
dir=`pwd`
list=`find ${dir} -type f`
for file in $list; do
filename=`basename $file`
ext=${filename##*.}
if [[ $ext == "md" ]]; then
echo $filename
@seventhsense
seventhsense / add_front_matter.sh
Created July 16, 2018 13:48
add front matter for jekyll
#!/bin/bash
dir=`pwd`
list=`find ${dir} -type f`
LF=$(printf '\\\012_')
LF=${LF%_}
for file in $list; do
filename=`basename $file`
@seventhsense
seventhsense / docx2md.sh
Last active July 18, 2018 21:07
docxをmarkdownにまとめて変換するスクリプト(要pandoc)
#!/bin/bash
# 同一ディレクトリ上のdocxファイルをmdファイルに変換する.元ファイルは残る.
# refer https://qiita.com/kinagaki/items/460577f46529484d720e
dir=`pwd`
list=`find ${dir} -type f`
for file in $list; do
filename=`basename $file`
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
ja:
devise:
confirmations:
confirmed: "アカウントが確認されました。ログインしています。"
send_instructions: "アカウントの確認方法を数分以内にメールでご連絡します。"
send_paranoid_instructions: "ご登録のメールアドレスが保存されている場合、アカウントの確認方法をメールでご連絡します。"
failure:
already_authenticated: "既にログインしています。"
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""a stock order via SBI Securities.
"order_sbisec.py" is released under the MIT License
Copyright (c) 2017 Akihiro Yamamoto
__author__ = "Akihiro Yamamoto <ak1211@mail.ak1211.com>"
__version__ = "0.5.2"
__date__ = "Oct 2017"
@seventhsense
seventhsense / application.coffee
Last active February 21, 2016 09:39
for electron development
class MyApp.Application extends Backbone.Marionette.Application
$(document).ready ->
app = new MyApp.Application
app.start()
@seventhsense
seventhsense / FadeTransitionRegion.js
Created January 30, 2016 15:16 — forked from brian-mann/FadeTransitionRegion.js
Allows jQuery animation transitions between marionette regions
var FadeTransitionRegion = Backbone.Marionette.Region.extend({
show: function(view){
this.ensureEl();
view.render();
this.close(function() {
if (this.currentView && this.currentView !== view) { return; }
this.currentView = view;
test:
adapter: mysql2
database: my_app_test
username: root
encoding: utf8
cucumber:
adapter: mysql2
database: my_app_test
username: root
encoding: utf8
// ==UserScript==
// @name Redmine Submit Guard
// @namespace https://github.com/kawanaka2141
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
// @match http://*/redmine/projects/*/issues/new
// @match http://*/redmine/issues/*
// ==/UserScript==
(function(){
$('input').keypress(function(ev){
{
"japanese_template": {
"template": "*ja",
"settings": {
"analysis": {
"filter": {
"romaji": {
"type": "kuromoji_readingform",
"use_romaji": true
}