Skip to content

Instantly share code, notes, and snippets.

View dolohow's full-sized avatar

Łukasz Żarnowiecki dolohow

View GitHub Profile
#include<iostream>
template <typename T>
class CMatrix{
public:
T* matrix;
int x, y;
CMatrix(int _x, int _y) :x{_x}, y{_y}
{
matrix = new T[x*y];
class Worker:
def __init__(self, name=None, pay=None):
self.name = name
self.pay = pay
bob = Worker()
is_logged = True
def login_required(func):
def a():
<!DOCTYPE html5>
<html>
<head>
<style>
.bread-slide {
height: 500px;
background: red;
width: 100%;
margin: 5px;
}
&::after
content: ''
position: absolute
width: 100%
background-color: $dark-gray
height: 2px
left: 0
top: 14px
package main
import (
"fmt"
"os"
"time"
)
func main() {
c := make(chan int)
[Unit]
Description=Backups via rsync
[Service]
ExecStart=/bin/true
ExecStop=/usr/bin/rsync -aAX --exclude-from=/mnt/backup/ryszard/.exclude /home/ryszard /mnt/backup
Type=oneshot
RemainAfterExit=yes
[Install]
package main
import (
"fmt"
"os"
"time"
)
func cancel(abort chan bool) {
fmt.Println("Exit (y/n)")
function add(x, y) {
return x + y;
}
function mul(x, y) {
return x * y;
}
function make(arg) {
var arr = [];
// ==UserScript==
// @name Auction script
// @version 0.1
// @description Improve auction services experience
// @author Łukasz Żarnowiecki
// @grant GM_registerMenuCommand
// @grant GM_openInTab
// @grant GM_xmlhttpRequest
// @match *://allegro.pl/*
// @match *://*.ebay.pl/*
@dolohow
dolohow / subtitles_download.py
Last active February 18, 2019 10:22
subtitles_download.py
#!/usr/bin/python2
import random
import string
import md5
import chardet
import sys
import urllib
import os
import glob