Skip to content

Instantly share code, notes, and snippets.

View antonsoroko's full-sized avatar

Anton Soroko antonsoroko

View GitHub Profile
package playcount
import (
"math/rand"
"testing"
"time"
)
var result WatchedState
@antonsoroko
antonsoroko / greeter.py
Last active July 18, 2020 10:18
Slightly enhanced greeter.py from https://habr.com/ru/post/420099/
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from datetime import datetime
from gobject import timeout_add
import os,sys,gtk,pango,subprocess
class GreeterApp:
def __init__( self ):
self.builder = gtk.Builder()
@antonsoroko
antonsoroko / main_test.go
Last active June 2, 2020 12:17
мой main_test.go для задачи E https://contest.yandex.ru/contest/17728
package main
import (
"log"
"math/rand"
"runtime"
"sync"
"testing"
"time"
)
@antonsoroko
antonsoroko / greeter.py
Last active May 28, 2020 14:22
Modifiled greeter.py for new PyGObject. https://habr.com/ru/post/420099/
#!/usr/local/opt/python@3.8/bin/python3
# -*- coding: UTF-8 -*-
from datetime import datetime
#from gobject import timeout_add
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib
from gi.repository import Gdk
import os,sys,subprocess #pango,gtk
@antonsoroko
antonsoroko / куда сходить в Берлине.txt
Last active March 2, 2019 16:45
куда сходить в Берлине
Dmitry Andreevich (klekovkinda) [7 days ago]
На музейном острове музеи интересно.
anovikov [7 days ago]
если интересна живопись\искусство, то:
https://www.berlin.de/ausstellungen/archiv/4903983-3238788-von-monet-bis-kandinsky.html
https://www.smb.museum/museen-und-einrichtungen/gemaeldegalerie/home.html
@antonsoroko
antonsoroko / discussion of DE mobile operators.txt
Last active March 2, 2019 16:45
discussion of DE mobile operators
user [3:47 PM]
А кто-нибудь юзал aldi симки?
Hennadii Bolshakov [3:50 PM]
У меня aldi
kadabrik [4:07 PM]
У меня
Hennadii Bolshakov [4:08 PM]
@antonsoroko
antonsoroko / manifest.yml
Last active August 9, 2016 10:03
manifest.yml for http://bosh.io/docs/create-release.html Please notice that this manifest is for OpenStack! See BOSH Deployment Manifest (http://bosh.io/docs/deployment-manifest.html) for more information about other IaaS.
---
name: bosh-tutorial-deployment
director_uuid: REPLACE_WITH_DIRECTOR_UUID
releases:
- {name: ardo_app, version: latest}
resource_pools:
- name: vms
network: default
@antonsoroko
antonsoroko / Gemfile
Last active December 7, 2020 16:31
ardo_app
source "http://rubygems.org"
gem "sinatra"