Skip to content

Instantly share code, notes, and snippets.

@chrisiona
chrisiona / SwiftyJsonExtension.swift
Last active May 8, 2018 01:38
Extend the SwiftyJSON module with a .date type (Swift3)
//
// SwiftyJsonExtension.swift
//
// Created by Chris Iona on 02/12/16.
// MIT License.
//
// Date extension for SwiftyJSON module
// https://github.com/SwiftyJSON/SwiftyJSON
//
// Assumes that you already have SwityJSON installed and available
set encoding=utf-8
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
@seyhunak
seyhunak / sidekiq_faye.rb
Created December 17, 2013 08:48
Rails - Sidekiq Middleware to publish to Faye for real time batch status updates
module Sidekiq
module Middleware
module Server
class PublishBatchWorkerCompleted
def call(worker, job, queue)
yield
ensure
begin
unless worker.bid.nil?