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/make.sh binary | |
# WARNING! I don't seem to be running in the Docker container. | |
# The result of this command might be an incorrect build, and will not be | |
# officially supported. | |
# | |
# Try this instead: make all | |
# | |
bundles/1.4.1-dev already exists. Removing. |
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 | |
if [ $(go env GOARCH) == "amd64" ]; then | |
sed -i .bak "s/\(const n = \)4/\12/" $1 | |
fi |
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/vendor/src/github.com/docker/libpack/tree.go b/vendor/src/github.com/docker/libpack/tree.go | |
index 89d8a18..3b236c1 100644 | |
--- a/vendor/src/github.com/docker/libpack/tree.go | |
+++ b/vendor/src/github.com/docker/libpack/tree.go | |
@@ -16,6 +16,7 @@ func treeDel(repo *git.Repository, tree *git.Tree, key string) (*git.Tree, error | |
key = TreePath(key) | |
base, leaf := path.Split(key) | |
+ root := tree | |
if tree != nil { |
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 busybox | |
RUN mkdir test_dir | |
RUN chmod 4755 test_dir | |
RUN [ $(ls -ld /test_dir | awk '{print $1}') = 'drwsr-xr-x' ] | |
ADD ./data/ / | |
RUN [ $(ls -ld /test_dir | awk '{print $1}') = 'drwsr-xr-x' ] |
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
# WARNING! I don't seem to be running in the Docker container. | |
# The result of this command might be an incorrect build, and will not be | |
# officially supported. | |
# | |
# Try this instead: make all | |
# | |
bundles/1.3.1-dev already exists. Removing. | |
---> Making bundle: binary (in bundles/1.3.1-dev/binary) |
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
import Data.Char | |
import Data.List.Split | |
import qualified Data.Vector as V | |
import Data.Ord | |
import qualified Data.Text as T | |
import qualified Data.Text.IO as T.IO | |
import qualified Data.Text.Read as T.Read | |
type Pixels = V.Vector Int |
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 main | |
import ( | |
"reflect" | |
"strings" | |
) | |
func makeChannel(t reflect.Type, chanDir reflect.ChanDir, buffer int) reflect.Value { | |
ctype := reflect.ChanOf(chanDir, t) | |
return reflect.MakeChan(ctype, buffer) |
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 python | |
import abc | |
### Go equivalent | |
# | |
# type Lock interface { | |
# Lock() | |
# Unlock() |
NewerOlder