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> | |
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]; |
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
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(): |
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
<!DOCTYPE html5> | |
<html> | |
<head> | |
<style> | |
.bread-slide { | |
height: 500px; | |
background: red; | |
width: 100%; | |
margin: 5px; | |
} |
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
&::after | |
content: '' | |
position: absolute | |
width: 100% | |
background-color: $dark-gray | |
height: 2px | |
left: 0 | |
top: 14px |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"time" | |
) | |
func main() { | |
c := make(chan int) |
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
[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] |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"time" | |
) | |
func cancel(abort chan bool) { | |
fmt.Println("Exit (y/n)") |
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
function add(x, y) { | |
return x + y; | |
} | |
function mul(x, y) { | |
return x * y; | |
} | |
function make(arg) { | |
var arr = []; |
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
// ==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/* |
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
#!/usr/bin/python2 | |
import random | |
import string | |
import md5 | |
import chardet | |
import sys | |
import urllib | |
import os | |
import glob |
OlderNewer