Skip to content

Instantly share code, notes, and snippets.

View ararog's full-sized avatar

ararog ararog

  • Brazil
  • 15:27 (UTC -03:00)
View GitHub Profile
@brennanMKE
brennanMKE / EventEmitter.swift
Last active March 7, 2024 04:04
React Native Event Emitter for RCTEventEmitter in Objective-C and Swift
class EventEmitter
/// Shared Instance.
public static var sharedInstance = EventEmitter()
// ReactNativeEventEmitter is instantiated by React Native with the bridge.
private static var eventEmitter: ReactNativeEventEmitter!
private init() {}
@frasertweedale
frasertweedale / Middleware.hs
Last active August 21, 2017 19:32
WAI Middleware to modify request headers
{-# LANGUAGE OverloadedStrings #-}
module Middlware where
import Control.Monad ((<=<))
import qualified Data.ByteString as B
import Network.HTTP.Types
import Network.Wai
@arnaudsj
arnaudsj / core.clj
Last active August 29, 2015 14:07
Spark streaming tweets using Flambo Clojure library
(ns flambo-streaming-101.core
(:require [flambo.api :as f]
[flambo.streaming :as fs]
[flambo.conf :as fconf]
[flambo.function :refer [pair-function]]
[clj-time.format :as tf]
[clj-time.core :as tc]
[clojure.tools.trace :refer [trace]]
[clojure.java.shell :refer [sh]]
[clojure.pprint :refer [pprint]]