This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
if [[ "" == "$DATASET_OUTPUT" ]]; then | |
export DATASET_OUTPUT="../results.json/part-00000" | |
fi | |
if [ -a import.log ]; then | |
rm import.log | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Monad | |
import Prelude hiding (catch) | |
import Control.Exception | |
import Control.Concurrent.ParallelIO | |
import qualified Control.Concurrent.ParallelIO.Local as Local | |
import Network.HTTP | |
import Network.Stream (ConnError(..), Result) | |
import System.IO | |
import Data.List |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Opendetex < Formula | |
homepage 'https://code.google.com/p/opendetex/' | |
url 'https://opendetex.googlecode.com/files/opendetex-2.8.1.tar.bz2' | |
sha1 'a811635519dc6573735ca9d406f7032eccacd7e0' | |
version "2.8.1" | |
depends_on 'flex' => :build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Proc | |
def _(*args) | |
CurriedProc.new(args, &self) | |
end | |
end | |
class CurriedProc < Proc | |
def initialize(args, &block) | |
msg = "Curried arguments is greater than block arity (#{args.size} > #{block.arity})" | |
raise ArgumentError, msg if args.size > block.arity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Data.ByteString.Lazy as BSL | |
import Control.Monad | |
import Control.Monad.Trans | |
import Control.Monad.Trans.Resource | |
import Control.Concurrent | |
import Control.Concurrent.Chan | |
import qualified Network.HTTP.Conduit as C | |
import Network.HTTP.Types (Status(..)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pt.akka.workshop | |
import java.util.UUID | |
import akka.actor.{ActorLogging, Actor} | |
import akka.persistence.{RecoveryCompleted, SnapshotOffer, PersistentActor} | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Function.const | |
import scala.annotation.tailrec | |
import scala.collection.SortedMap | |
object Palindrome { | |
case class Palindrome(s: String, startIdx: Int) | |
case class PalKey(index: Int, length: Int) | |
type PalIndex = SortedMap[PalKey, Int] | |
object Palindrome { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.kohsuke.github.{GHCommitState, GHCommitStatus, GitHub} | |
name := "gitStatus" | |
version := "1.0" | |
scalaVersion := "2.11.8" | |
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.6" % "test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am afiore on github. | |
* I am afiore (https://keybase.io/afiore) on keybase. | |
* I have a public key ASDOj-CbhhpO4ZN_j4oJ3sfPi6BZfaPqP3_t_9XD_nQ9Pgo | |
To claim this, I am signing this object: |