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
diff --git a/amcat/contrib/plugins/README.TXT b/amcat/contrib/plugins/README.TXT | |
index e69de29..c3c53ed 100644 | |
--- a/amcat/contrib/plugins/README.TXT | |
+++ b/amcat/contrib/plugins/README.TXT | |
@@ -0,0 +1,29 @@ | |
+Plugins are modular pieces of code which inherit from special classes, indicating | |
+their type. As of now, only "NLP" and "Article Upload" plugins are supported, but | |
+more types might be added in the future. | |
+ | |
+== Adding plugins == |
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 python3 | |
# Heaviliy influenced by: http://tinyurl.com/qe2ht4w | |
import operator | |
import collections | |
import numpy | |
from functools import partial | |
from string import ascii_lowercase as alpha | |
NORMALISED_FREQUENCIES = [ |
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
from itertools import ifilter, imap | |
def merge(sets): | |
set_map = {} | |
for s in ifilter(bool, imap(set, sets)): | |
# Where can we store it? | |
try: | |
el = set_map[next(ifilter(lambda x: x in set_map, s))] | |
el |= s |
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
# name: Terlar | |
# author: terlar - https://github.com/terlar | |
set -g fish_color_user magenta | |
set -g fish_color_host yellow | |
function fish_prompt --description 'Write out the prompt' | |
set -l last_status $status | |
# User |
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
set -g fish_color_git_clean green | |
set -g fish_color_git_staged yellow | |
set -g fish_color_git_dirty red | |
set -g fish_color_git_added green | |
set -g fish_color_git_modified blue | |
set -g fish_color_git_renamed magenta | |
set -g fish_color_git_copied magenta | |
set -g fish_color_git_deleted red | |
set -g fish_color_git_untracked yellow |
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 | |
for arg in $@; do | |
echo ${arg} | |
done |
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
case HashMap.lookup (nameOcc fun) normalized of | |
Just _ -> do | |
(_,Component compName compInps [snd -> compOutp] _) <- preserveVarEnv $ genComponent (nameOcc fun) | |
if length args == length compInps | |
then do argTys <- mapM (termType tcm) args | |
let dstId = Text.pack . name2String $ varName dst | |
(argExprs,argDecls) <- fmap (second concat . unzip) $! mapM (\(e,t) -> mkExpr False (Left dstId) t e) (zip args argTys) | |
(argExprs',argDecls') <- (second concat . unzip) <$> mapM (toSimpleVar dst) (zip argExprs argTys) | |
let inpAssigns = zipWith (\(i,t) e -> (Identifier i Nothing,In,t,e)) compInps argExprs' |
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
$ rustc --target=mips-unknown-linux-gnu -C linker=mips-openwrt-linux-gcc hello.rs | |
error: linking with `mips-openwrt-linux-gcc` failed: exit code: 1 | |
| | |
= note: "mips-openwrt-linux-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/martijn/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-gnu/lib" "hello.hello0.rust-cgu.o" "hello.hello1.rust-cgu.o" "-o" "hello" "hello.crate.allocator.rust-cgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-L" "/home/martijn/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/martijn/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-gnu/lib/libstd-827ddea93328ae2d.rlib" "/home/martijn/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-gnu/lib/liballoc_system-751808ba756769d5.rlib" "/home/martijn/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-gnu/lib/librand-3d |
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
martijn@deskei ~/code/clash-compiler-qbl master $ cabal new-run clash -- scratch/Mac.hs --vhdl -fclash-nocache -fclash-debug DebugFinal | |
Up to date | |
Loading dependencies took 0.754814242s | |
Parsing and compiling primitives took 0.068400107s | |
Compiling: MAC.topEntity | |
Ignoring .manifest files | |
MAC.topEntity8214565720323808422 before normalization: | |
λ(clk :: Clash.Signal.Internal.Clock | |
(Clash.Signal.Internal.Dom A 5000) |
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
Up to date | |
Loading dependencies took 0.742528095s | |
Parsing and compiling primitives took 0.067847811s | |
Compiling: MAC.topEntity | |
Ignoring .manifest files | |
MAC.topEntity8214565720323808422 before normalization: | |
λ(clk :: Clash.Signal.Internal.Clock | |
(Clash.Signal.Internal.Dom A 5000) | |
Clash.Signal.Internal.Source) -> |
OlderNewer