Show random giphy every x amount of time with keyword.
@hackbot cheer me up every 5 hours with kittens
Ask for teamname
hackBot.askAllDM([| import AWS from 'aws-sdk'; | |
| export default class S3Upload { | |
| constructor(options = {}) { | |
| this._options = options; | |
| } | |
| _genRandStr(length = 41) { | |
| // Math.random returns number with length between 16 and 18 chars |
| require 'sinatra' | |
| require 'json' | |
| post '/' do | |
| push = JSON.parse(request.body.read) | |
| { :body => push }.to_json | |
| end | |
| get '/:id?' do | |
| content_type :json |
| #!/bin/bash | |
| FLAGS=("verbose" "force") | |
| ARGS=$@ | |
| # loop all arguments | |
| for arg in "$@" | |
| do | |
| # check if arg is flag |
| require 'sinatra' | |
| require 'json' | |
| get '/' do | |
| end | |
| post '/payload' do | |
| request.body.rewind | |
| payload_body = request.body.read |
| function insertAtCaret(text) { | |
| const txtarea = document.activeElement; | |
| const scrollPos = txtarea.scrollTop; | |
| let strPos = 0; | |
| const br = ((txtarea.selectionStart || txtarea.selectionStart == '0') ? "ff" : (document.selection ? "ie" : false )); | |
| if (br == "ie") { | |
| txtarea.focus(); | |
| const range = document.selection.createRange(); |
| const dataToggle = { | |
| init(){ | |
| this._els = document.querySelectorAll('[data-toggle]') || []; | |
| this._bindEvents(); | |
| }, | |
| _bindEvents(){ | |
| [].forEach.call(this._els, (el) => { | |
| el.addEventListener('click', () => this._toggleTarget(el), false); |
Every time someone says something like "10am EST" it should show can time that is for people in different timezones like "10am EST (3pm GMT, 4pm CEST)".
Usage: jts <filename>
| class Hottie | |
| constructor: (config) -> | |
| @_bindings = config.bindings; | |
| @_waitForInputTime = config.waitForInputTime; | |
| @_pressedKeys = ''; | |
| #bind keyup event | |
| document.addEventListener('keyup', @_handleKey.bind(this), false); | |
| _resetWaitInputTimer: (callback) -> |