Skip to content

Instantly share code, notes, and snippets.

⛔️🙇‍♂💻 ⛔️

Milos Gajdos milosgajdos83

⛔️🙇‍♂💻 ⛔️
Block or report user

Report or block milosgajdos83

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
milosgajdos83 / Vagrantfile
Created Oct 7, 2018
Intel Movidius Vagrantfile
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
$provision = <<SCRIPT
apt-get update -qq && apt-get install -y vim curl python-software-properties build-essential cmake pkg-config
Vagrant.configure("2") do |config| = "ubuntu/xenial64"
config.vm.provider "virtualbox" do |vb|
View mvnc_api.c
* Copyright 2017 Intel Corporation.
* The source code, information and material ("Material") contained herein is
* owned by Intel Corporation or its suppliers or licensors, and title to such
* Material remains with Intel Corporation or its suppliers or licensors.
* The Material contains proprietary information of Intel or its suppliers and
* licensors. The Material is protected by worldwide copyright laws and treaty
* provisions.
* No part of the Material may be used, copied, reproduced, modified, published,
* uploaded, posted, transmitted, distributed or disclosed in any way without
View gist:4ca9ebe64458447f7c20608ad97ac6a3
Verifying my Blockstack ID is secured with the address 1AHxu7PSk6nE44E2hahHypc3QJPDCLoCNH
View enter for debug
I have run an nginx container...
docker ps
6d67de07731d nginx "nginx -g 'daemon ..." 40 minutes ago Up 40 minutes 80/tcp, 443/tcp epic_goldberg
I want to use Debian for debug:
docker run -it --pid=container:6d67de07731d --net=container:6d67de07731d --cap-add sys_admin debian
I can see the nginx process:

Keybase proof

I hereby claim:

  • I am milosgajdos83 on github.
  • I am milosgajdos ( on keybase.
  • I have a public key whose fingerprint is 1266 FF68 4487 5404 BDE5 5150 505D EC48 749E 8140

To claim this, I am signing this object:

View cacheinverse.R
# makeCacheMatrix accepts a matrix as an argument and generates a list object
# which provides various functions to retrieve and modify the underlying matrix
# and its inverse matrix
makeCacheMatrix <- function(x = matrix()) {
# stop and return error if supplied matrix is not invertible
if (!(class(try(solve(x),silent=T))=="matrix")){
stop("supplied matrix is not invertible")
# inverse matrix
inv <- NULL
View iris.R
# split data per Species
species_frames <- split(iris,iris$Species)
# calculate mean per species
lapply(species_frames, function(x) colMeans(x[,"Sepal.Length"]))
# simple version of ^^ calculate mean over Sepal.Length split by Species
tapply(iris$Sepal.Length, iris$Species, mean)
View test.R
file70 <- read.csv("specdata/070.csv")
file71 <- read.csv("specdata/071.csv")
file72 <- read.csv("specdata/072.csv")
df70 <- sum(complete.cases(file70))
df71 <- sum(complete.cases(file71))
df72 <- sum(complete.cases(file72))
data70 <- file70[complete.cases(file70), "nitrate"]
milosgajdos83 / tuple_match.ex
Created Oct 26, 2015
Find out if all elements in tuple have the same value
View tuple_match.ex
iex(5)> foo = {1,2,3}
{1, 2, 3}
iex(6)> bar = {1,1,1}
{1, 1, 1}
iex(7)> {item, item, item} = foo
** (MatchError) no match of right hand side value: {1, 2, 3}
iex(7)> {item, item, item} = bar
{1, 1, 1}
View test.go
package queue_test
import (
You can’t perform that action at this time.