Skip to content

Instantly share code, notes, and snippets.

View keddad's full-sized avatar
🥨

Nick keddad

🥨
View GitHub Profile
set $mod Mod4
new_window pixel 1
new_float normal
hide_edge_borders none
bindsym $mod+u border none
bindsym $mod+y border pixel 1
bindsym $mod+n border normal
[bar/i3wmthemer_bar]
width = 100%
height = 27
radius = 0
fixed-center = false
background = #1e1e20
foreground = #c5c8c6
line-size = 3
n, m = map(int, input().split())
parent, weight, rank = [-1 for _ in range(n)], [0 for _ in range(n)],[1 for _ in range(n)]
def find_set(v):
while parent[v] != -1 and parent[v] != v:
parent[v] = parent[parent[v]]
weight[parent[v]] += weight[v]
weight[v] = 0
def main():
with open("input.txt", "r") as inp:
with open("output.txt", "w") as out:
n, m = map(int, inp.__next__().split())
w = [int(x) for x in inp.__next__().split()]
dp = [[0 for _ in range(m + 1)] for _ in range(n + 1)]
for i in range(1, n + 1):
for j in range(1, m + 1):
if j >= w[i - 1]:
dp[i][j] = max(dp[i - 1][j], dp[i - 1][j - w[i - 1]] + w[i - 1])
from PIL import Image
from random import randint
import tqdm
w, h = map(int, input().split())
im = Image.new("RGB", (w, h))
for i in tqdm.tqdm(range(w)):
for j in range(h):
from flask import Flask, render_template, request, make_response, redirect, render_template_string, config
import sqlite3
from hashlib import md5
import os
app = Flask(__name__)
f = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'db.db') # Local file
from flask import Flask, render_template, request, make_response, redirect, render_template_string, config
import sqlite3
from base64 import b64decode, b64encode
from hashlib import md5
import os
app = Flask(__name__)
f = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'db.db') # Local file
#include<map>
#include <string>
class Person {
public:
void ChangeFirstName(int year, const std::string &first_name) {
firstNameCache[year] = first_name;
firstChanged = true;
}
import logging
import os
from logging.config import fileConfig
from flask import Flask, request, Response
from flask_restful import Resource, Api
from pymongo import MongoClient
import utils
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
class FunctionPart {
public:
FunctionPart(char task, double num) {