Skip to content

Instantly share code, notes, and snippets.

#!/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 / 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
}
$base-color: #f2eff0
$main-color: #333333
$accent-color: #1e965c
$base-text-color: darken($base-color, 50%)
# encoding: utf-8
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
sudo apt-get remove vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get build-dep vim-gnome
sudo apt-get install luajit libluajit-5.1 libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial
cd /usr/bin
sudo ln -s luajit-2.0.0-beta9 luajit
cd ~

https://github.com/mojombo/jekyll/wiki/Plugins

Jekyllプラグインシステムのフックは、あなたのサイト向けに特化したコンテンツの生成を可能にします。Jekyllのソースを修正することなく、あなたのサイト用のコードを実行できます。

The Jekyll plugin system hooks allow you to create custom generated content specific to your site. You can run custom code for your site without having to modify the Jekyll source itself.

プラグインのインストール

h2. Installing a plugin

def ping(ip)
r = Regexp.new('[1-9]\d* (packets )?received')
result = r.match(`ping -c 1 -W 1 #{ip}`)
result != nil
end
def arp(ip)
r = Regexp.new('[0-f]+:[0-f]+:[0-f]+:[0-f]+:[0-f]+:[0-f]+')
result = r.match(`arp -n #{ip}`)
result ? result.to_s : nil