Skip to content

Instantly share code, notes, and snippets.

Artem Yushkovskiy yartem

Block or report user

Report or block yartem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View template-proposal-alternative.yaml
version: 0.1 # version of this yaml format
## We'd store project's setup in hierarchical constants
environment:
project: # all first-order elements except those like $(.name) simply define constants
version: v2.0 # for example, this constant can be accessed with $(project.version)
id: neuro-21dd4a2
name: my-project
paths:
View exercise-rot-reader.go
package main
import (
"io"
"os"
"strings"
)
type rot13Reader struct {
r io.Reader
@yartem
yartem / Dockerfile
Last active May 20, 2020
Proposal: Flexible Neuro Base Image
View Dockerfile
ARG base_image
FROM ${base_image:-"neuromation/base:latest"}
# 1. Some Neuro Platform-common setup
# ===================================
# Force the stdout and stderr streams to be unbuffered.
# Needed for correct work of tqdm via 'neuro exec'
View neuro-upload-data-to-storage-from-gs.txt
# Image with gsutil:
`image://artemyushkovskiy/neuromation/base-gsutil:latest`
# Run a job, mount storage's volume to `/home`:
`neuro run -s cpu-small -n soro -v storage:ru_open_stt_wav:/home:rw neuromation/base "sleep infinity"`
# Download data to storage:
`gsutil cp -r gs://ru_open_stt_wav /home`
# Extract tar.gz's
View test_thread.py
from threading import Thread
from time import sleep
class Test:
def __init__(self):
self.my_thread = Thread(target=self.do_loop, name='infinite_loop')
self.my_thread.start()
exit()
@yartem
yartem / lanalan_error_codes.json
Last active Dec 8, 2015
lanalan_refactoredюзн
View lanalan_error_codes.json
{
"00": "Everything OK - Success",
"01": "Couldn’t poll Parent because of Timeout",
"02": "Unknown command",
"04": "Invalid S-Register",
"05": "Invalid parameter",
"06": "Recipient could not be reached",
"07": "Message was not acknowledged",
"08": "No sink known",
"09": "Address Table entry is in use and cannot be modified",
You can’t perform that action at this time.