Skip to content

Instantly share code, notes, and snippets.

View vlewin's full-sized avatar

Vladislav Lewin vlewin

View GitHub Profile
class InvitesHandler {
static handle() {
SendEventInvites.handle()
}
}
class SendEventInvites {
static handle (memberList) {
memberList.forEach(member => {
InviterCommand.handle(member)
@vlewin
vlewin / javascript-log-wrapping.md
Created May 24, 2018 18:21 — forked from robatron/javascript-log-wrapping.md
Wrapping `console.log` (et al.) in your own function to modify logging behavior.

JavaScript Log Wrapping

Wrapping console.log (et al.) in your own function to modify logging behavior.

Why?

You may want a simple way to:

@vlewin
vlewin / bfile.rb
Last active August 29, 2015 14:18 — forked from skord/bfile.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'sinatra'
require 'haml'
$pwd = ENV['PWD']
if File.exists?(ARGV.last)
if ARGV.last != 'bfile.rb'
@vlewin
vlewin / Gemfile
Created February 12, 2015 08:16
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: invalid reference to FROM-clause entry for table
source 'http://rubygems.org'
gem 'rails', '~> 4.0.0'
gem 'pg'
gem 'paranoia'

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software