This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import binascii as ba | |
EXCEPT=( | |
".vault", | |
".exe", | |
".doc", | |
".xls", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define SciTE settings for Python files. | |
file.patterns.py=*.py;*.pyw | |
file.patterns.scons=SConstruct;SConscript | |
*source.patterns.python=$(file.patterns.py); | |
shbang.python=py | |
filter.python=Python (py pyw)|$(file.patterns.py)| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global initialisation file for SciTE | |
# For Linux, place in $prefix/share/scite | |
# For Windows, place in same directory as SciTE.EXE (or Sc1.EXE) | |
# Documentation at http://www.scintilla.org/SciTEDoc.html | |
# | |
# https://gist.github.com | |
# user:eugeneai | |
# SciTEGlobal.properties python.properties | |
# | |
# Globals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!flask/bin/python | |
from flask import Flask, jsonify, abort, request, make_response, url_for | |
from flask.ext.httpauth import HTTPBasicAuth | |
app = Flask(__name__, static_url_path = "") | |
auth = HTTPBasicAuth() | |
@auth.get_password | |
def get_password(username): | |
if username == 'miguel': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python2 | |
import os, os.path | |
import pprint | |
import pickle | |
def gpg_move(): | |
f=open("find_gpg.log") | |
for orig in f: | |
orig = orig.strip() | |
path = os.path.normpath(orig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/X11/xorg.conf.d/00-keyboard.conf | |
Section "InputClass" | |
Identifier "system-keyboard" | |
MatchIsKeyboard "on" | |
Option "XkbLayout" "us,ru" | |
Option "XkbModel" "pc104" | |
Option "XkbVariant" ",winkeys" | |
Option "XkbOptions" "grp:caps_toggle,grp:alt_shift_toggle,terminate:ctrl_alt_bksp" | |
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program lab_10; | |
uses crt; | |
const | |
n=60; | |
m=16; | |
var | |
l,i,a,j,k:integer; | |
procedure picture1(a,l,t:integer); | |
begin |