Skip to content

Instantly share code, notes, and snippets.

View yeputons's full-sized avatar

Egor Suvorov yeputons

  • Saint-Petersburg, Russia
View GitHub Profile
<head>
<title>reactive-publish-findone</title>
</head>
<body>
{{> serverFacts}}
</body>
@yeputons
yeputons / .travis.yml
Created July 20, 2015 20:29
Asana/travis-cache-check clone
sudo: false
cache:
directories:
- cache1
- cache2
script:
- bash doit.sh
#!/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.
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
@yeputons
yeputons / compile.sh
Created November 10, 2016 16:32
Тренировка с грейдерами
#!/bin/bash
g++ grader.cpp guesswho.cpp -O2 -Wall -Wextra -Werror -o guesswho || exit
.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
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"],
workspace(name = "my_test")
local_repository(
name = "tf_serving",
path = "serving",
)
local_repository(
name = "org_tensorflow",
path = "serving/tensorflow",
@yeputons
yeputons / 01_implicit_params.scala
Last active December 5, 2018 17:49
Scala examples on 05.12.2018
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)