Skip to content

Instantly share code, notes, and snippets.

View draganmarjanovic's full-sized avatar

Dragan Marjanovic draganmarjanovic

View GitHub Profile
start_lat start_lon end_lat end_lon airline airport1 airport2 cnt
32.89595056 -97.0372 35.04022222 -106.6091944 AA F0 F3 1
32.89595056 -97.0372 35.04022222 -106.6091944 BB F1 F2 1
41.979595 -87.90446417 30.19453278 -97.66987194 AA ORD AUS 1
32.89595056 -97.0372 41.93887417 -72.68322833 AA DFW BDL 1
name pop lat lon
Singapore 966 1.2931 103.8558
Ashburn 909 39.0481 -77.4728
Frankfurt am Main 633 50.1155 8.6842
Amsterdam 448 52.3529 4.9415
Tokyo 385 35.685 139.7514
London 363 51.5353 -0.6658
Boardman 322 45.8696 -119.688
Mountain View 312 37.4056 -122.0775
Beijing 303 39.9288 116.3889
COUNTRY NODE_COUNT CODE
United States 4896 USA
China 1996 CHN
Germany 1930 DEU
Singapore 1059 SGP
Netherlands 813 NLD
France 713 FRA
Japan 639 JPN
Russia 594 RUS
Republic of Korea 554 KOR
$$\begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} \begin{Bmatrix} a & b \\ c & d \end{Bmatrix} & b \\ c & d \end{Bmatrix} & b \\

Keybase proof

I hereby claim:

  • I am draganmarjanovic on github.
  • I am dmarj97 (https://keybase.io/dmarj97) on keybase.
  • I have a public key ASC26IYsFZYjsMGJI8ndv1auJpv9NEc-oGVeeQy6cDdJDQo

To claim this, I am signing this object:

import graphviz as gv
tree = [54, 26, 15, 93, 8, 1, 23, 39];
def left_child(index, length):
child = (index * 2 + 1)
if (child <= length - 1):
return child
else:
return -1
" Vundle Stuff
set nocompatible
filetype off
set rtp+=~/.config/nvim/bundle/Vundle.vim
" Plugins
call vundle#begin()
Plugin 'VundleVim/Vundle.vim' " Vundle
Plugin 'airblade/vim-gitgutter'
Plugin 'mattn/gist-vim' " Create Gists
@draganmarjanovic
draganmarjanovic / string_exercises.c
Created July 24, 2016 09:11
C String Exercises
//Ex.4 - Write a function that reads a line of any length from a file and
//returns it as a string.
#include <stdio.h>
#include <stdlib.h>
/*
* Counts the length of NUL terminated
* character array.
# Colours
maincolour="%{$fg_bold[white]%}"
altcolour="%{$fg[green]%}"
gitcolour="%{$fg[yellow]%}"
resetcolour="%{$reset_color%}"
usercolour="" #"%{fg[blue]%}"
hostcolour="%{$fg[blue]%}"
function prompt_hostname()
{
# Name: Makefile
# Author: Dragan Marjanovic
# Based on https://github.com/obdev/CrossPack-AVR/
DEVICE = atmega324a
CLOCK = 8000000
PROGRAMMER = -c avrispmkii
OBJECTS = project.o
AVRDUDE = avrdude $(PROGRAMMER) -p m324pa -F -B10
COMPILE = avr-gcc -Wall -Os -std=gnu99 -DF_CPU=$(CLOCK) -mmcu=$(DEVICE)