Skip to content

Instantly share code, notes, and snippets.

View eugeneai's full-sized avatar
🏠
Distant worker

Evgeny Cherkashin eugeneai

🏠
Distant worker
View GitHub Profile
"""
a = "Синхрофазотрон"
b = "асимптота"
c = "1905-й"
"""
a, b, c = input(), input(), input()
while True:
if (a <= b and a <= c):
l = a
@eugeneai
eugeneai / foaf.rdf
Last active April 28, 2023 11:49 — forked from nalsi/foaf.rdf
## My FOAF file
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rrdf="http://rdfs.org/resume-rdf/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:admin="http://webns.net/mvcb/">
<foaf:PersonalProfileDocument rdf:about="http://kaili.us/foaf.xml">
# Arithmetic progression
# Input
# Second task : calculate sum of ai
debug = True
allow_input = False if debug else True
if allow_input:
n=int(input("Input n: "))
@eugeneai
eugeneai / qemu-networking.md
Created November 21, 2021 03:49 — forked from extremecoders-re/qemu-networking.md
Setting up Qemu with a tap interface

Setting up Qemu with a tap interface

There are two parts to networking within QEMU:

  • The virtual network device that is provided to the guest (e.g. a PCI network card).
  • The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).

Example: User mode network

// This program seems to work.
#include "stdio.h"
#include "math.h"
#include "assert.h"
#if defined(_OPENMP)
#include "omp.h"
#endif
#define EPS 0.001
@eugeneai
eugeneai / elpy
Last active February 1, 2020 02:25
List of packages to apply pip -r <gist url> to support emacs elpy python mode.
nose
elpy
pyflakes
jedi
autopep8
yapf
rope
importmagic
mock
black
Section "InputClass"
#Identifier "keyboard-all"
# MatchIsKeyboard "no"
Driver "evdev"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ru"
Option "XkbVariant" "winkeys"
# ctrl:swapcaps
# Option "XkbOptions" "ctrl:nocaps,grp:caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
Option "XkbOptions" "ctrl:nocaps,grp:sclk_toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
@eugeneai
eugeneai / encoder.jl
Created June 13, 2017 13:31
Julia made flow cyther
using Gtk
builder = Gtk.GtkBuilder(filename="./encoder.glade")
encoder = GAccessor.object(builder, "encoder")
quit = GAccessor.object(builder, "quit")
encode = GAccessor.object(builder, "encode")
decode = GAccessor.object(builder, "decode")
text = GAccessor.object(builder, "textbuffer")
cyphertext = GAccessor.object(builder, "cyphertextbuffer")
e(a,b). e(b,c). e(c,f).
e(f,e). e(e,d). e(d,h).
e(f,g). e(g,i). e(i,h).
% after(X,Y)
%
%after(X,Y):-e(X,Y).
%after(X,Y):-e(Y,X).
% L=[a,b,c,d,e,3,5,7,2,[8,6,9]].
% L=[X|T], X=a, T=[b,c,d.....].
% []
% X принадл. списку, если он - голова эт списка.
member(X, [X|_]).
% X принадлежит списку, если X принадл. хвосту списка.
member(X, [_|T]):-member(X,T).
% +List, -Sum