Skip to content

Instantly share code, notes, and snippets.

View kupp1's full-sized avatar
🎓
ITMO

Dmitrii Kupershtein kupp1

🎓
ITMO
View GitHub Profile
@Venemo
Venemo / mesa-howto.md
Last active June 3, 2024 19:52
How to build and use mesa from source

Building and using mesa for development and testing

This explains how to build mesa from source, and how to use the custom built mesa to run some apps and games, without needing to replace the mesa libraries that your operating system runs on.

Let's assume that you are using an x86_64 system.

Building mesa

Overview

@AnthonyMikh
AnthonyMikh / main.rs
Last active November 7, 2018 12:40
Решение задачи №137 от UniLecs (Multiplication of digits)
type Number = u64;
/// Разложение числа по базовым множителям (см. ниже в комментариях)
struct DigitalFactors {
two: Number,
three: Number,
five: Number,
seven: Number,
}
@SeppPenner
SeppPenner / Installing Python 3.7.4 on Raspbian.rst
Last active May 9, 2024 21:52
Installing Python 3.7.4 on Raspbian

Installing Python 3.7.4 on Raspbian

As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).
import java.io.*;
import java.net.*;
import java.util.*;
public abstract class IRCMessageLoop implements Runnable {
Socket server;
OutputStream out;
String theChannel;
IRCMessageLoop(String serverName, int port) {
@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active July 10, 2024 23:50
Ultimate guide to low-latency osu on linux
#!/usr/bin/env python3.5
import asyncio
from collections import namedtuple
import functools
import random
Message = namedtuple('Message', 'prefix command params')
Prefix = namedtuple('Prefix', 'nick ident host')
@11fl
11fl / irc.bot.0.1.py
Last active December 8, 2022 00:44
IRC bot python 3
# -*- coding: utf-8 -*-
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
HOST = '' #irc server
PORT = 6665 #port
NICK = 'pony_bot'
USERNAME = 'megadeath'
REALNAME = 'little pony'
@9876691
9876691 / gist:1292881
Created October 17, 2011 15:35
Simple IRC connect
#include <iostream>
#include <string>
#include <sys/socket.h>
#include <sys/types.h>
#include <cstring>
#include <netdb.h>
using namespace std;
int main() {