View cld2.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"fmt"
 
"github.com/rainycape/cld2"
"golang.org/x/text/language"
)
 
func main() {
View tour-methods-12.go
1 2 3 4 5 6 7 8 9
package main
 
import (
"fmt"
"io"
"log"
"os"
"strings"
)
View gzipfile.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"compress/gzip"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
)
View texts.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
# coding: utf-8
 
raw = """
Diese grundsätzliche V e r b o r g e n h e i t Gottes, die sich n u r
dem N a c h f o l g e r ö f f n e t , ist m i t d e m Messiasgeheimnis
gemeint
"""
 
vocabulary = [
View ff.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"fmt"
"regexp"
"sort"
"strings"
)
 
var Collection = []string{
View filterfile
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
#
# filterline keeps a subset of lines of a file.
#
# cf. http://unix.stackexchange.com/q/209404/376
#
set -eu
set -o pipefail
 
if [ "$#" -ne 2 ]; then
View trie.go
1 2 3 4 5 6 7 8 9 10
package trie
 
import (
"container/vector"
"sort"
)
 
// A 'set' structure, that can hold []byte objects.
// For any one []byte instance, it is either in the set or not.
type Trie struct {
View translate.go
1 2 3 4 5 6 7 8 9 10
// Traverses an arbitrary struct and translates all stings it encounters
//
// I haven't seen an example for reflection traversing an arbitrary struct, so
// I want to share this with you. If you encounter any bugs or want to see
// another example please comment.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Heye Vöcking
//
View exforprecv.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"fmt"
"log"
)
 
// IntQueue is a FIFO queue.
type IntQueue struct {
queue []int
Something went wrong with that request. Please try again.