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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>project</artifactId> | |
<groupId>com.company</groupId> | |
<packaging>jar</packaging> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>Project</name> |
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 io.higgs; | |
import com.google.common.base.Optional; | |
import io.higgs.events.ChannelMessage; | |
import io.higgs.events.HiggsEvent; | |
import io.higgs.events.listeners.ChannelEventListener; | |
import io.higgs.functional.Function1; | |
import io.higgs.queueingStrategies.CircularBufferQueueingStrategy; | |
import io.higgs.queueingStrategies.LinkedBlockingQueueStrategy; | |
import io.higgs.queueingStrategies.QueueingStrategy; |
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 info.crlog.bloomfilter; | |
/** | |
* <h1>Introduction</h1> | |
* A BitSet is a vector used by the {@link BloomFilter} to mark used locations. | |
* Since Java doesn't have a "bit" data type this class provides methods for manipulating | |
* the bits within a Java {@link Byte}. Java's bytes are signed which imposes a -127 + 128 limit. | |
* We work around this by controlling the MSB and interpreting it as just another bit in an 8-bit | |
* structure. | |
* <p/> |
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
#!/bin/sh | |
SHORTCUT="[Desktop Entry] | |
Name=Sublime Text 3 | |
Comment=Edit text files | |
Exec=/usr/local/sublime-text-3/sublime_text | |
Icon=/usr/local/sublime-text-3/Icon/128x128/sublime-text.png | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Utility;TextEditor;" |
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
-- | |
-- Modified version of the wxcore Cabal setup.hs file which builds the C++ code in a buildhook | |
-- so that we have some control over how the linking works. | |
-- | |
import Control.Monad (when) | |
import Data.List (foldl', intercalate, nub, lookup) | |
import Data.Maybe (fromJust) | |
import Distribution.PackageDescription | |
import Distribution.Simple | |
import Distribution.Simple.LocalBuildInfo (LocalBuildInfo, localPkgDescr, withPrograms, buildDir) |
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
{-# LANGUAGE RecordWildCards #-} | |
import Prelude hiding (Either(..)) | |
import Data.IntMap (IntMap) | |
import qualified Data.IntMap as IM | |
import System.IO (Handle) | |
import Network (withSocketsDo, listenOn, accept, PortID(..)) | |
import qualified Data.ByteString as B | |
import Data.Aeson |
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
#!/bin/bash | |
cabal configure && cabal build && cabal haddock --hyperlink-source \ | |
--html-location='http://hackage.haskell.org/package/$pkg/docs' \ | |
--contents-location='http://hackage.haskell.org/package/$pkg' | |
S=$? | |
if [ "${S}" -eq "0" ]; then | |
cd "dist/doc/html" | |
DDIR="${1}-${2}-docs" | |
cp -r "${1}" "${DDIR}" && tar -c -v -z -Hustar -f "${DDIR}.tar.gz" "${DDIR}" | |
CS=$? |
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
{-# LANGUAGE ForeignFunctionInterface #-} | |
module Data.Dish.Murmur3(x86_32 | |
--,x86_128,x64_128 | |
) where | |
import Foreign.C -- get the C types | |
import Foreign.Ptr | |
import Foreign | |
import qualified Foreign.ForeignPtr.Unsafe as US |
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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2281636/hack.sh | sh | |
# |
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
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
OlderNewer