Skip to content

Instantly share code, notes, and snippets.

View testlnord's full-sized avatar

Arkady Kalakutsky testlnord

  • Russia, Saint-Petersburg
View GitHub Profile
@testlnord
testlnord / vector.R
Created February 8, 2019 12:34
Implementation of vector of dynamic length in R (simiarl to stl::vector in c++)
## mit license
Vector <- R6::R6Class(
"Vector",
public= list(
initialize = function(type_func){
private$capasity = 1000
private$type_func <- type_func
private$vector = type_func(private$capasity)
private$length = 0
},
@testlnord
testlnord / countries.md
Created May 17, 2017 08:27 — forked from richjenks/countries.md
ISO 3166 countries by region — AMER, EMEA & APAC
Country ISO 3166 Region
Afghanistan AF EMEA
Åland Islands AX EMEA
Albania AL EMEA
Algeria DZ EMEA
American Samoa AS APAC
Andorra AD EMEA
Angola AO EMEA
Anguilla AI AMER
#! /bin/sh
echo "" >> /etc/hosts
echo "127.0.0.1 "$1 >> /etc/hosts
echo "127.0.0.1 www."$1 >> /etc/hosts
echo "::0 "$1 >> /etc/hosts
echo "::0 www."$1 >> /etc/hosts
#! /bin/bash
$* >/dev/null 2>/dev/null &