Skip to content

Instantly share code, notes, and snippets.

View vectorman1's full-sized avatar

Boris Lachev vectorman1

  • Sofia, Bulgaria
  • 18:27 (UTC +03:00)
View GitHub Profile
@vectorman1
vectorman1 / install-pacaur.sh
Created March 19, 2016 20:31 — forked from rumpelsepp/install-pacaur.sh
A small script for arch linux which builds and installs "pacaur" automatically
#!/bin/sh
#
# The MIT License (MIT)
#
# Copyright (c) 2015-2016 Stefan Tatschner
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@vectorman1
vectorman1 / goats.cpp
Created July 11, 2016 13:48
Kozichki :)
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
vector<int> sheep;
bool cr(const int a, const int b)
{
return a > b;
}
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
const int NMAX = 1024;
struct Circle
{
int x,y;
@vectorman1
vectorman1 / lyrics.py
Created March 30, 2017 18:07
Python script to get Lyrics from an API
import json
from pip._vendor import requests
# You only need to input your API key
__APIKEY__ = ""
__APIURL__ = "http://api.musixmatch.com/ws/1.1/"
endpoints = ["track.search?q_track={}&page_size=10000&page=1&s_track_rating=desc", "track.lyrics.get?track_id={}"]
@vectorman1
vectorman1 / README.txt
Last active January 12, 2022 15:38
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=builtin&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS