Skip to content

Instantly share code, notes, and snippets.

@cdunn2001
cdunn2001 / out.txt
Created August 5, 2018 23:25
results-of-bioconda-utils-build
$ bioconda-utils build recipes config.yml --mulled-test --git-range master
18:20:39 BIOCONDA INFO Recipes to build:
daligner
18:20:39 BIOCONDA INFO Building and testing subdag 1 of 1 (1 recipes)
18:20:40 BIOCONDA INFO Determining expected packages
Setting build platform. This is only useful when pretending to be on another platform, such as for rendering necessary dependencies on a non-native platform. I trust that you know what you're doing.
Adding in variants from internal_defaults
Adding in variants from /tmp/miniconda/miniconda/conda_build_config.yaml
Adding in variants from /tmp/miniconda/miniconda/lib/python3.6/site-packages/bioconda_utils/bioconda_utils-conda_build_config.yaml
#ifndef _WITPP_H
#define _WITPP_H
#pragma once
//include the headers
#include <ctime>
#include <string>
#include <sstream>
#include <iostream>
@cdunn2001
cdunn2001 / bug.nim
Created October 14, 2017 19:24
Problem with Nim concept derived value
from tables import nil
type
GNode* = int
Graph[Key] = object
adj: tables.Table[GNode, tables.Table[GNode,Key]]
GraphRef*[Key] = ref Graph[Key]
proc newGraph*[Key](): GraphRef[Key] =
new(result)
result.adj = tables.initTable[GNode, tables.Table[GNode,Key]]()
package main
import (
"fmt"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
Fetch(url string) (body string, urls []string, err error)
package main
import (
"fmt"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
Fetch(url string) (body string, urls []string, err error)
package main
import (
"fmt"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
Fetch(url string) (body string, urls []string, err error)
$ cat makefile
export LC_ALL
LC_ALL=de_DE.UTF-8
foo:
g++ -DLC_Q='"en_US.UTF-8"' -o foo.exe foo.cpp
g++ -DLC_Q='"de_DE.UTF-8"' -o foo.dexe foo.cpp
./foo.exe
./foo.dexe
@cdunn2001
cdunn2001 / males_and_females.go
Created August 5, 2011 05:46
RPC struct version
package males_and_females
import (
//"github.com/bketelsen/skynet/skylib" // SkynetRequest/Response should be here.
"os"
)
type SkynetRequest struct {
Params map[string]interface{}
@cdunn2001
cdunn2001 / gist:1126928
Created August 5, 2011 04:49
RPC with Request/Response structs
package myStartup
type MyRandomRequest []byte
type MyRandomResponse struct {
Len int
Val string
}
///////////////
@cdunn2001
cdunn2001 / reg.go
Created August 4, 2011 18:44
Skynet Registry (aka Config) Interface
var DC Registry
// This is returned by Registry::Wait().
// - same contents as doozer.Event
type Event struct {
Rev int64 // revision of the change
Path string // actual file (in case of wildcards)
Body []byte // contents at Rev
Flag int32 // 4=>changed-or-created; 8=>deleted