Skip to content

Instantly share code, notes, and snippets.

@g0ddest
g0ddest / splitter.py
Created January 10, 2019 22:49
Зависимости:
from lxml import etree
import copy
from bs4 import BeautifulSoup
import re
class Splitter:
ns = ''
xml_file = "book.fb2"
@g0ddest
g0ddest / sched.json
Last active February 21, 2018 12:37
[
{
"date": "2018-02-22",
"lessons":[
{
"name": "Дискурс",
"type": "lab",
"teacher": {
"first_name": "Анна",
"last_name": "Саврацкая",
class server:
# list of all TCP connections
tcp_connections = list<tcp_connection>
# one tcp_connection have limited count of connections
struct tcp_connection{
list<connection> connections
}

Keybase proof

I hereby claim:

  • I am g0ddest on github.
  • I am velikodniy (https://keybase.io/velikodniy) on keybase.
  • I have a public key ASDOws58pGOPk8uzm2ZyHTv5akBASE0Z5QthtMObM2O2qgo

To claim this, I am signing this object:

#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@g0ddest
g0ddest / cmake
Last active August 13, 2016 05:33
cmake_minimum_required(VERSION 3.6)
project(cmr_fuse)
find_package(CURL)
find_library(JANSSON_LIBRARY NAMES jansson
PATHS /usr/lib /usr/local/lib /usr/include /usr/local/include )
set(JANSSON_LIBRARIES ${JANSSON_LIBRARY} )
set(JANSSON_INCLUDE_DIRS ${JANSSON_INCLUDE_DIR} )
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
#
# Custom headers and headers various browsers *should* be OK with but aren't
#
package name.velikodniy.vitaliy.geo.realm.yandex.route;
import name.velikodniy.vitaliy.geo.dto.Point;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
package com.prisbank.app.a.api.model;
public class AndroidBuild {
public String BOARD = android.os.Build.BOARD;
public String BOOTLOADER = android.os.Build.BOOTLOADER;
public String BRAND = android.os.Build.BRAND;
public String DEVICE = android.os.Build.DEVICE;
public String DISPLAY = android.os.Build.DISPLAY;
public String FINGERPRINT = android.os.Build.FINGERPRINT;
public String HARDWARE = android.os.Build.HARDWARE;
@g0ddest
g0ddest / gist:9c8652903797bd8b6942
Created November 12, 2014 20:52
Libreoffice remove all colontitules
sub RemoveStyles
oDoc = ThisComponent
oStyles = oDoc.getStyleFamilies
oPageStyles = oStyles.getByName("PageStyles")
oPageStyleNames() = oPageStyles.getElementNames()
For i = 0 to uBound(oPageStyleNames)
thisName = oPageStyleNames(i)
if InStr(thisName, "Converted") <> 0 then
oPageStyles.removeByName(thisName)