Skip to content

Instantly share code, notes, and snippets.

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

Hayk Saakian hayksaakian

🏠
Working from home
View GitHub Profile
var moment = require('moment');
var tz = require('moment-timezone');
var timePlugin = {
init: function (client, imports) {
return {
exports: null,
handlers: {
'!time': function (message) {
var timeNow = moment().tz('America/Chicago').format('ddd, h:mm A');
#!/usr/bin/ruby
# started at 2:29
# 1
test_list = [42, 512, 7, 3, 11]
# use builtin summing function
expected_value = test_list.reduce(:+)
def sum_for(list)