This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[bar/i3wmthemer_bar] | |
width = 100% | |
height = 27 | |
radius = 0 | |
fixed-center = false | |
background = #1e1e20 | |
foreground = #c5c8c6 | |
line-size = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<map> | |
#include <string> | |
class Person { | |
public: | |
void ChangeFirstName(int year, const std::string &first_name) { | |
firstNameCache[year] = first_name; | |
firstChanged = true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
class FunctionPart { | |
public: | |
FunctionPart(char task, double num) { |