Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Evgeny Cherkashin eugeneai

🏠
Working from home
Block or report user

Report or block eugeneai

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 simpson.c
// 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 Sep 17, 2018
List of packages to apply pip -r <gist url> to support emacs elpy python mode.
View elpy
nose
elpy
pyflakes
jedi
autopep8
yapf
rope
importmagic
mock
black
View 20-RU_Keyboard_etup_for_Xorg.conf
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 Jun 13, 2017
Julia made flow cyther
View encoder.jl
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")
View planning-wit-heuristic.pl
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).
View Basic Prolog Demo
% 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
View swi-prolog EPROLOG section.
(setenv "EPROLOG" "c:/Program Files (x86)/swipl/bin/swipl.exe")
(if (eq window-system 'w32)
(progn
(if (file-directory-p "c:/GNU/bin")
(progn
(add-to-list 'exec-path "c:/GNU/bin")
)
)
(setq url-proxy-services '(("no_proxy" . "172.27.24.")
("http" . "titan.cyber:.......@172.27.100.5:4444")))
View restore-scanning.py
#!/usr/bin/env python3
import os
import binascii as ba
EXCEPT=(
".vault",
".exe",
".doc",
".xls",
@eugeneai
eugeneai / gen.py
Created Mar 18, 2016
Генераторы
View gen.py
def _(f,*args):
yield f
for a in args:
if type(a)==str:
yield a
else:
# yield from a
for b in a:
yield b
View relief.py
#!/usr/bin/env python
# a bar plot with errorbars
import numpy
import gdal
import matplotlib.pyplot as plt
#import scipy
class Hatch(object):
"""Defines section data consisting of
x1,y1, x2,y2 are points on the section line and
You can’t perform that action at this time.