Skip to content

Instantly share code, notes, and snippets.

View jsuo's full-sized avatar
🏠
Working from home

y_shimo jsuo

🏠
Working from home
  • Freelancer
  • Tokyo, Japan
View GitHub Profile
@jsuo
jsuo / my.init.lua
Created June 19, 2017 04:00
My Hammerspoon settings
local function keyCode(key, modifiers)
modifiers = modifiers or {}
return function() hs.eventtap.keyStroke(modifiers, key, 0) end
-- return function()
-- hs.eventtap.event.newKeyEvent(modifiers, string.lower(key), true):post()
-- hs.timer.usleep(100)
-- hs.eventtap.event.newKeyEvent(modifiers, string.lower(key), false):post()
-- end
end
@jsuo
jsuo / rquest-promise_usage.js
Last active January 3, 2017 07:31
request-promise 使い方
'use strict';
/* library */
const rp = require('request-promise');
const cheerio = require('cheerio');
/* GET option */
let options = {
method: 'GET',
uri: 'http://gizilogger.ghsystems.biz/',
@jsuo
jsuo / mdlEmployee_spec.rb
Last active December 29, 2015 02:18
社員モデルクラスのテストコード
#coding: windows-31j
require './exlap'
class Employee
attr_accessor :id, :last_name, :first_name
def full_name
return @last_name + " " + @first_name
end
end
@jsuo
jsuo / sayHello_spec.rb
Last active December 28, 2015 23:49
Function sayHello のテストコード
#coding: windows-31j
require './exlap'
describe "Function sayHello のテスト" do
before(:all) do
test_module = <<EOF
Function testSayHello(ByVal arg As String) As String
testSayHello = Module1.sayHello(arg)
@jsuo
jsuo / mdlEmployee.cls
Last active December 28, 2015 13:49
社員のモデルクラス
'---------------------------------------------------------------------------------------
' Module : mdlEmployee
' Author : jsuo
' Date : 2013/11/01
' Purpose : [社員] のモデルクラス
' Note :
'---------------------------------------------------------------------------------------
Option Explicit
'*** Instance Variable ***
@jsuo
jsuo / hlpAdoConnect.cls
Last active December 28, 2015 12:29
ADOコネクションのヘルパークラス
'---------------------------------------------------------------------------------------
' Module : hlpAdoConnect
' Author : jsuo
' Date : 2013/11/01
' Purpose : データベースコネクションを管理
' Note : スタンドアロンでの使用を前提とする
'---------------------------------------------------------------------------------------
Option Explicit
'*** Instance Variable ***
@jsuo
jsuo / customUI14_OrderSearchTab.xml
Last active December 28, 2015 11:59
[受注検索]カスタムタブのXMLファイル
<customUI onLoad="Ribbon_onLoad" xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab id="orderSearchTab" label="受注検索" >
<group id="GroupEmpInfo" label="社員情報">
<comboBox id="cmbEmpId" sizeString="wwwwwwww" getText="cmbEmpId_getText" getItemCount="cmbEmpId_getItemCount" getItemLabel="cmbEmpId_getItemLabel" onChange="cmbEmpId_onChange" label="社員ID:" />
<comboBox id="cmbEmpName" sizeString="wwwwwwww" getText="cmbEmpName_getText" getItemCount="cmbEmpName_getItemCount" getItemLabel="cmbEmpName_getItemLabel" onChange="cmbEmpName_onChange" label="氏 名:"/>
</group>
<group id="GroupCustomerInfo" label="得意先情報">
<comboBox id="cmbCustomerId" sizeString="wwwwwwww" getText="cmbCustomerId_getText" getItemCount="cmbCustomerId_getItemCount" getItemLabel="cmbCustomerId_getItemLabel" onChange="cmbCustomerId_onChange" label="得意先ID:" />