This file contains hidden or 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
#pragma once | |
#include <vector> | |
#include <complex> | |
#include <cassert> | |
#include <stdexcept> | |
#include <cmath> | |
#include <memory> | |
#include <algorithm> | |
#include <arm_neon.h> // Include NEON header |
This file contains hidden or 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
#pragma once | |
#include <vector> | |
#include <complex> | |
#include <cassert> | |
#include <stdexcept> | |
#include <cmath> | |
#include <memory> | |
// Optional NEON support |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
# ------------------------------------------------------- | |
# Free IP2Location Firewall List by Country | |
# Source: https://www.ip2location.com/free/visitor-blocker | |
# Last Generated: 29 Jan 2020 09:48:33 GMT | |
# [Important] Please update this list every month | |
# ------------------------------------------------------- | |
add manual-accept 216.237.113.64/26 | |
add manual-accept 216.237.113.128/25 | |
add manual-accept 216.237.114.0/23 | |
add manual-accept 216.237.116.0/24 |
This file contains hidden or 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
# ------------------------------------- | |
# MAKEFILE | |
# ------------------------------------- | |
# Parse docker container name prefix from working dir | |
ifeq ($(OS),Windows_NT) | |
NAME := $(notdir $(CURDIR)) | |
LOCATION := $(CURDIR) | |
else | |
NAME := $(shell basename $$PWD | sed -e s/[_\\.]//g) |
This file contains hidden or 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
sudo apt-get install -y build-essential libtool | |
sudo apt-get install autotools-dev autoconf | |
sudo apt-get install -y libnl-3-dev libnl-genl-3-dev | |
sudo apt-get install -y sqlite3 libsqlite3-dev | |
sudo apt-get install -y libgcrypt20-dev libpcap-dev duma | |
sudo apt-get install -y libgcrypt11-dev | |
sudo apt-get install -y libpcre3-dev | |
sudo apt-get install -y libnl-3-dev libnl-genl-3-dev | |
./configure --with-experimental --with-ext-scripts --with-gcrypt --with-gcrypt --with-duma --with-simd |
This file contains hidden or 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 re | |
import itertools | |
import sys | |
from collections import Counter | |
from os import listdir | |
from os.path import isfile, join | |
filelist = [] | |
fileset = set() | |
parse_number = lambda num: "%%0%sd" % len(num) |
This file contains hidden or 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 re | |
import itertools | |
from os import listdir | |
from os.path import isfile, join | |
from collections import Counter | |
filelist = [] | |
This file contains hidden or 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
first_line = "3" | |
second_line = "1 2 4" | |
def main(first_line, second_line): | |
if int(first_line) != len(second_line.split()): | |
return False | |
else: | |
return sum((int(item) for item in second_line.split())) | |
This file contains hidden or 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
Telesign Take Home Task | |
======================= | |
Warm up | |
------- | |
Define a function to check if two words are a [palindrome](https://en.wikipedia.org/wiki/Palindrome). | |
Define a function to check if two words are an [anagram](https://en.wikipedia.org/wiki/Anagram). |
This file contains hidden or 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 json | |
import logging | |
import os | |
import os.path | |
import sys | |
import django | |
import requests | |
from optparse import OptionParser | |
parser = OptionParser() |
NewerOlder