Skip to content

Instantly share code, notes, and snippets.

View katahirado's full-sized avatar

Katahirado katahirado

View GitHub Profile
@katahirado
katahirado / fileloaderv1.coffee
Last active August 29, 2015 14:02
callback版、Promise版
JSFtp = require("jsftp")
cheerio = require('cheerio')
fs = require("fs")
connectData = require("./ftp-setting-data")
gui = window.require('nw.gui')
tempFile = 'order.html'
tempFilePath = "#{gui.App.dataPath}/#{tempFile}"
getRemotePath = (path) ->
/ undefined method `safe_concat' for "":String
- wrap_layout :layout do
article.post
== yield
@katahirado
katahirado / Gemfile
Created June 5, 2012 16:34
Sqale EventMachine test
#Gemfile
gem "sinatra"
gem "em-websocket"
#Gemfile.lock
GEM
specs:
addressable (2.2.8)
@katahirado
katahirado / Gemfile
Created June 11, 2012 22:20
オープンアワーの告知をTDCと自分のブログに送るスクリプト SMTP over SSLかつ、オレオレ証明書を使っているSMTPサーバで送信する場合(認証方式PLAIN)
source "https://rubygems.org"
gem "mail"
gem "mail-iso-2022-jp"
@katahirado
katahirado / TsubunomiScript.gs
Created July 12, 2012 03:20
つぶのみ Google Apps Script版
var Tsubunomi = {
userSheetName:"user",
mentionsSheetName:"mentions",
searchSheetName:"search",
dmSheetName:"directMessage",
userDataKey:"currentUser",
apiConfigKey:"apiConfiguration",
apiUrl:"https://api.twitter.com/",
defaultCount:140,
getOptions:{