Skip to content

Instantly share code, notes, and snippets.

View psqq's full-sized avatar
🙃
Where is my mind?

Sergey Pestov psqq

🙃
Where is my mind?
View GitHub Profile
from itertools import *
ar = range(1, 10)
ae = range(1, 6)
ash = range(0, 10)
ai = range(0, 6)
as_ = range(1, 6)
al = range(0, 6)
an = range(0, 6)
@psqq
psqq / README.md
Last active November 3, 2020 06:19

Running

deno run -A --unstable https://gist.github.com/psqq/5c9b1d4bf6b5cc3469fde370d73fafb8/raw/29bbb3f19e9ba2f8b8e630ef1224d360281b8c9a/main.ts
@psqq
psqq / Readme.md
Created June 20, 2020 08:34
My vim config

Install Plug

Vim

Unix

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
@psqq
psqq / README.md
Last active March 29, 2020 09:42
Id generator

Id generator.

Install

yarn add gist:14b0e71326d41620ca3957e850f4b05f

Use

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"runtimeExecutable": "/usr/bin/chromium",
"type": "chrome",
"request": "launch",
@psqq
psqq / links.txt
Last active January 9, 2020 06:19
from Tkinter import *
import math
def draw_sin(a1, a2):
c.delete("all")
center = height//2
x_start = a1
x_max = width
x_increment = 1
x_factor = (a2 - a1) / 400
@psqq
psqq / main.cpp
Last active June 21, 2017 20:27
Minimal SDL2 app example
#include <iostream>
#include <exception>
#include <SDL.h>
using namespace std;
class Exception : public exception {
string msg;
public:
Exception(string amsg) : msg(amsg) {}
const char* what() const noexcept {