Skip to content

Instantly share code, notes, and snippets.

View bruce-willis's full-sized avatar
:shipit:
sleeping

Yury Belousov bruce-willis

:shipit:
sleeping
View GitHub Profile
@bruce-willis
bruce-willis / Program.cs
Created December 15, 2016 12:06
Pushdown automaton
using System;
using System.Collections.Generic;
using static System.String;
namespace PDA
{
class Program
{
public static Stack<char> MainStack = new Stack<char>();
public static List<Condition> Conditions = new List<Condition>();
@bruce-willis
bruce-willis / main.xml
Last active October 8, 2017 22:34
Main in attribute-based entry
<?xml version="1.0"?>
<Catalog>
<LastOpenTemplates>
<Template Name="Больничный лист" Сategory="Справки" LastOpened="15.04.2017 13:55:10" />
</LastOpenTemplates>
<Templates>
<Template Name="Направление на анализы" Category="Анализы" Image="../images/analys.jpg" Description="blah-blah-blah" />
<Template />
</Templates>
</Catalog>
@bruce-willis
bruce-willis / scheme.xsd
Created December 12, 2017 06:42
XSD Scheme
Medicine:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ArrayOfString">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="string" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
@bruce-willis
bruce-willis / MedHelp.sql
Created December 12, 2017 07:00
sqripts.sql
USE MedHelp
GO
IF DB_NAME() <> N'MedHelp' SET NOEXEC ON
GO
--
-- Создать таблицу [dbo].[Medicines]
--
PRINT (N'Создать таблицу [dbo].[Medicines]')
@bruce-willis
bruce-willis / readme.md
Last active April 15, 2019 19:22
Some takeaways from CSCHW4 solution

link to slides

Результаты:

Feature engineering score (holdout)
no statistic 0.744318
basic statistic 0.764667
all statistic (basic + relative) 0.768469
@bruce-willis
bruce-willis / add.py
Last active February 15, 2020 13:00
Add pybullet env to gum
# before install pybullet with `pip install pybullet`
# source: https://github.com/bulletphysics/bullet3/blob/cbede4eb6c4b9b6d0dddf5b3964a1c7449af05d6/examples/pybullet/gym/pybullet_envs/__init__.py#L188-L191
import gym
from gym.envs.registration import registry, make, spec
def register(id, *args, **kvargs):
if id in registry.env_specs:
@bruce-willis
bruce-willis / yunohost-oracle-free-tier.md
Last active October 5, 2024 06:15
How to setup YunoHost at Oracle free tier VM (works on AMD and ARM servers)
  1. Register for Oracle Cloud Free Tier
  2. Create compute instance
    • change image to Canonical Ubuntu
    • confirm that a public IPv4 address is assigned
    • upload your public ssh key
    • leave everything blank in Boot volume
  3. Enable Internet Access
    • Instances → Instance details → Subnet → Default Security List → Add Ingress Rules
    • HTTP: Stateless: Checked