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
<head> | |
<title>reactive-publish-findone</title> | |
</head> | |
<body> | |
{{> serverFacts}} | |
</body> |
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
sudo: false | |
cache: | |
directories: | |
- cache1 | |
- cache2 | |
script: | |
- bash doit.sh |
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/python | |
import re | |
import sys | |
with open(sys.argv[1]) as f: | |
data = f.read() | |
mapping = { | |
"kInfo": "INFO", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
execve("/usr/bin/fdisk", ["fdisk", "/dev/vsd"], [/* 17 vars */]) = 0 | |
brk(NULL) = 0x1a29000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=27689, ...}) = 0 | |
mmap(NULL, 27689, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0cf2df0000 | |
close(3) = 0 | |
open("/usr/lib/libfdisk.so.1", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\275\0\0\0\0\0\0"..., 832) = 832 | |
fstat(3, {st_mode=S_IFREG|0755, st_size=364568, ...}) = 0 |
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 | |
g++ grader.cpp guesswho.cpp -O2 -Wall -Wextra -Werror -o guesswho || exit |
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
.data | |
.text | |
.globl main | |
# ===== MAIN BODY ===== | |
# S_LABEL ("main") | |
main: | |
# S_FUN_BEGIN ({args=[], locals=["a"; "b"; "x"], max_stack=2}) | |
pushl %ebp | |
movl %esp, %ebp | |
pushl %ebx |
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
load("@bazel_tools//tools/build_defs/docker:docker.bzl", "docker_build") | |
cc_binary( | |
name = "hello", | |
srcs = ["main.cc"], | |
) | |
docker_build( | |
name = "hello_docker", | |
files = [":hello"], |
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
workspace(name = "my_test") | |
local_repository( | |
name = "tf_serving", | |
path = "serving", | |
) | |
local_repository( | |
name = "org_tensorflow", | |
path = "serving/tensorflow", |
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 class Context(canRead: Boolean) | |
val pages = Map( | |
1 -> "Hello", | |
2 -> "World" | |
) | |
def getPage(id: Int)(implicit context: Context): Option[String] = | |
if (context.canRead) | |
pages.get(id) |