This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyIremocon.denki_toggle | |
MyIremocon.bose_m3_toggle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type twittersearch | |
consumer_key XXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
consumer_secret XXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
oauth_token XXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
oauth_token_secret XXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
user_id bash0C7 | |
count 100 | |
run_interval 1200 | |
result_type recent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Fluent | |
# | |
# Copyright (C) 2011 FURUHASHI Sadayuki | |
# | |
# 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 | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'1 line ver | |
CreateObject("Scripting.FileSystemObject").OpenTextFile(CreateObject("Scripting.FileSystemObject").BuildPath(CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName), "worklog_" & WScript.CreateObject("WScript.Network").ComputerName & ".txt"), 8, True).WriteLine date & vbtab & time & vbTab & InputBox("Comment", WScript.ScriptName) | |
'3 line ver | |
With CreateObject("Scripting.FileSystemObject") | |
.OpenTextFile(.BuildPath(.GetParentFolderName(WScript.ScriptFullName), "worklog_" & WScript.CreateObject("WScript.Network").ComputerName & ".txt"), 8, True).WriteLine date & vbtab & time & vbTab & InputBox("Comment", WScript.ScriptName) | |
End With | |
'4 line (basic) | |
With CreateObject("Scripting.FileSystemObject") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private MainKeyCol As Long | |
Private RowCounter As Long | |
Private Source As Workbook | |
Private isReadOnly As Boolean | |
Property Get EOF() As Boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function convNUMtoHEX(Number As Long) As String | |
convNUMtoHEX = CStr(Hex(Number)) | |
End Function | |
Public Function convHEXtoNUM(HexString As String) As Long | |
Const HEXMARK = "&H" | |
Const UNSIGN = "&" | |
convHEXtoNUM = Val(HEXMARK & HexString & UNSIGN) | |
End Function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
abort if ARGV.empty? | |
initializer = ARGV.shift | |
eval(File.read(initializer), binding) | |
prompt_prefix = File.basename(initializer) | |
require 'rubygems' | |
require 'pry' | |
pry(prompt_prefix) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :rails_best_practices do | |
desc "run rails best practices" | |
task :jenkins_plot_plugin => :environment do | |
cd Padrino.root do | |
OUTDIR = "#{Padrino.root}/reports" | |
mkdir OUTDIR unless FileTest.exist? OUTDIR | |
OUTFILE = "#{OUTDIR}/rails_best_practices.properties" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 | |
require 'pry' | |
class Fixnum | |
def numerals | |
if self < 20 | |
case self | |
when 0 | |
'zero' | |
when 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -ne 2 ]; then | |
echo "引数1にpadrinoプロジェクト名を入れて下さい" 1>&2 | |
echo "引数2にpadrinoコアアプリケーション名を入れて下さい" 1>&2 | |
exit 1 | |
fi | |
cat << EOS > Gemfile | |
source "http://rubygems.org" |
OlderNewer