Skip to content

Instantly share code, notes, and snippets.

View sio4's full-sized avatar
😱
Panic again

Yonghwan SO sio4

😱
Panic again
View GitHub Profile
@sio4
sio4 / outlook-macro-save-msg.vb
Last active August 29, 2015 14:08
MS Outlook Macro for saving message(s) by single click.
Option Explicit
Public Sub SaveMessageAsMsg()
Dim oMail As Outlook.MailItem
Dim objItem As Object
Dim sPath As String
Dim dtDate As Date
Dim sName As String
Dim sSender As String
Dim enviro As String
@sio4
sio4 / app_logger.rb
Created October 5, 2014 14:58
custom application log for rails app.
# lib/app_logger.rb
# vim: set ts=2 sw=2 expandtab:
class AppLogger < Logger
def format_message(severity, timestamp, progname, msg)
"#{timestamp.to_formatted_s(:db)} #{severity} #{msg}\n"
end
end
LOGGER = AppLogger.new('log/application.log', 'weekly')