Skip to content

Instantly share code, notes, and snippets.

View gist:a24715ea3d41d87e52dc7fdc4a3d73f2
src/Data/Semigroup/Instances.hs:11:10: error:
Duplicate instance declarations:
instance Measured v a => Semigroup (FingerTree v a)
-- Defined at src/Data/Semigroup/Instances.hs:11:10
instance [safe] Measured v a => Semigroup (FingerTree v a)
-- Defined in ‘Data.FingerTree’
|
11 | instance Measured v a => Semigroup (FingerTree v a) where
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
View gist:12be328ed06b869235ae
New patches:
[Rev #1: Front page.
daniel.carrera@theingots.org**20090413195159] hunk ./Front\32\Page.page 3
-Darcs is a free, open source, source code management system with many
-fabulous features:
+Darcs is a free, open source, version control system (VCS). Darcs stands out
+for its ability to [reorder patches](Patch Reordering) in a repository. This
+gives darcs several valuable features:
View install-GenI.sh
#!/bin/bash
shopt -s nullglob
ARCH=$(uname -m)
if [ "$ARCH" != "x86_64" ]; then
echo >&2 "Sorry, need a 64 bit system"
exit 1
fi
View gist:e19ff1521f457608510b
"""
Basic interface that all parsers should respect
"""
from abc import ABCMeta, abstractmethod
from six import with_metaclass
class Parser(with_metaclass(ABCMeta, object)):
"""
View gist:4c45c65952c927c4698a
class LinkPack(namedtuple('LinkPack',
['labels',
'pairings',
'scores_ad',
'scores_l'])):
'''
Collection of candidate links
:param labels: list of labels (same length as the width of
scores_l)
View gist:fc5bfc3d581a0a5e05de
From 45170f44faed22e878ed45d6df99e137a9d1681f Mon Sep 17 00:00:00 2001
From: Eric Kow <eric.kow@gmail.com>
Date: Thu, 19 Feb 2015 11:07:35 +0100
Subject: [PATCH 4/4] FIX join test sentences together to respect RST-DT
convention
---
tests/rst-mononuclear-multisatellite | 4 +---
tests/rst-multinuclear | 4 +---
tests/rst-multinuclear2 | 4 +---
View gist:30cff61c8f53e52e8213
#!/bin/bash
# copy and archive latest reports/scores from the cluster
# filenames are {corpus}-{date}__{machine}__{logword}, eg
#
# scores-TRAINING-2015-02-05__eric-laptop__scikit.txt
# scores-TRAINING-2015-02-07__eric-laptop__ptb-sent.txt
# scores-TRAINING-2015-02-09__cluster__hello.txt
# scores-TRAINING-2015-02-12__cluster__parallel.txt
# scores-TRAINING-2015-02-16__cluster__intra-mst.txt
View gist:65d1069f724f97074aa6
# pylint: disable=W0105
# pylint: disable=star-args
"""
Paths and settings used for this experimental harness
In the future we may move this to a proper configuration file.
"""
# Author: Eric Kow
# License: CeCILL-B (French BSD3-like)
View tmp.py
"sandbox for attelo development"
from __future__ import print_function
from itertools import chain
import codecs
import itertools
import six
from tabulate import tabulate
import numpy
View orange-variable.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.