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
CREATE TABLE countries | |
( | |
`id` UInt8, | |
`iso` String, | |
`name` String, | |
`nice_name` String, | |
`iso3` String, | |
`num_code` UInt32, | |
`phone_code` UInt32 | |
) |
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
CREATE TABLE states_raw( | |
d date, | |
uid UInt64, | |
first_name String, | |
last_name String, | |
modification_timestamp_mcs DateTime64(3) default now64(3) | |
) ENGINE = Null; | |
CREATE TABLE final_states_by_month( | |
d date, |
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
export PS1='\[\e[33m\]\u@\h:\w\[\e[0m\] $(if [[ $? == 0 ]]; then echo "\[$(tput setaf 2)\]:) "; else echo "\[\e[31m\]:( "; fi)\[$(tput sgr0)\]' |
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 com.rambo; | |
import com.arangodb.ArangoDBException; | |
import com.arangodb.entity.BaseDocument; | |
import com.arangodb.entity.CollectionEntity; | |
import com.arangodb.velocypack.VPack; | |
import com.arangodb.velocypack.VPackSlice; | |
import org.msgpack.MessagePack; | |
import com.arangodb.ArangoDB; |
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 cv2 | |
import copy | |
class Copyable: | |
__slots__ = 'a', '__dict__' | |
def __init__(self, a, b): | |
self.a, self.b = a, b |
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
### installation | |
### connection | |
su - postgres | |
psql | |
#### psql commands | |
# connect to a database | |
\connect dbname |
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
apt install build-essential -y | |
apt install zlib1g-dev -y | |
apt install libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev libtk8.5 libgdm-dev libdb4o-cil-dev libpcap-dev -y | |
apt update | |
apt upgrade | |
git clone https://github.com/deadsnakes/python3.6 | |
cd python3.6 | |
./configure --enable-optimizations | |
# make command will take 10 mins | |
make |
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 os | |
from typing import Any | |
from apistar import App, Route, http | |
from apistar.codecs.multipart import MultiPartCodec | |
from werkzeug.datastructures import FileStorage | |
UPLOAD_FOLDER = os.path.join('.', 'uploads') | |
PORT = 8080 |
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
__coin_info = { | |
'1ST': {'name': 'FirstBlood', 'status': 'black', 'category': []}, | |
'420G': {'name': 'GanjaCoin', 'status': 'black', 'category': ['drug']}, | |
'4CHN': {'name': 'ChanCoin', 'status': 'black', 'category': ['gambling']}, | |
'2GIVE': {'name': '2GIVE', 'status': 'black', 'category': ['riba']}, | |
'ABY': {'name': 'ArtByte', 'status': 'white', 'category': []}, | |
'ADA': {'name': 'Cardano', 'status': 'white', 'category': []}, | |
'ADT': {'name': 'adToken', 'status': 'white', 'category': []}, | |
'ADX': {'name': 'AdEx', 'status': 'white', 'category': []}, | |
'AEON': {'name': 'Aeon', 'status': 'white', 'category': []}, |
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
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |
NewerOlder