Skip to content

Instantly share code, notes, and snippets.

View cofob's full-sized avatar
🏳️‍🌈

Egor Ternovoi cofob

🏳️‍🌈
View GitHub Profile
{
description = "InTape backend";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, ... }:
pkgs.stdenv.mkDerivation {
pname = "requirements";
version = "0.1.0";
src = ./.;
buildInputs = [ pkgs.python3Packages.poetry ];
phases = [ "installPhase" ];
installPhase = ''
cd $src
export XDG_CONFIG_HOME=/tmp/
poetry config virtualenvs.create false
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
contract Messenger {
struct Message {
uint64 chat;
address from;
string text;
from requests import get
from os.path import isdir, isfile
from os import mkdir, chdir
from shutil import rmtree
from urllib.parse import quote_plus
from tqdm import tqdm
from hashlib import sha256
print('Loading graph...')
r = get('https://map.yggnode.cf/static/graph.json')
@cofob
cofob / openpgp.md
Created May 6, 2022 06:23
OpenPGP proof
<script lang="ts">
import { spring } from 'svelte/motion';
import { onMount } from 'svelte';
let element: HTMLElement;
let coords = spring({ x: 0, y: 0 }, {
stiffness: 0.1,
damping: 0.25
});
let active: boolean = false;
<script lang="ts">
</script>
<div class="card position-absolute" draggable="true">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
name: Screenshot
on:
push:
paths:
- '**.svelte'
- '**.js'
- '**.ts'
- '**.scss'
workflow_dispatch:
@cofob
cofob / run.sh
Last active April 30, 2022 15:56
#!/bin/bash
python manage.py migrate
python manage.py runserver 0.0.0.0:8000