Skip to content

Instantly share code, notes, and snippets.

View lakinduakash's full-sized avatar
😉
Spending life

Lakindu Akash lakinduakash

😉
Spending life
View GitHub Profile
package main
import (
"fmt"
)
func world(c chan string) {
c <- "World!"
fmt.Println("World finished")
}
package main
import (
"fmt"
"time"
)
func world() {
fmt.Print("World")
}
@lakinduakash
lakinduakash / IsoCountryList.ts
Created April 29, 2019 12:43
Typescript array of ISO country list- ISO-3166-1: Alpha-2 Codes
export const isoCountries = [
{code : 'AF', name : 'Afghanistan'},
{code : 'AX', name : 'Aland Islands'},
{code : 'AL', name : 'Albania'},
{code : 'DZ', name : 'Algeria'},
{code : 'AS', name : 'American Samoa'},
{code : 'AD', name : 'Andorra'},
{code : 'AO', name : 'Angola'},
{code : 'AI', name : 'Anguilla'},
{code : 'AQ', name : 'Antarctica'},
@lakinduakash
lakinduakash / dtotalv.py
Last active October 15, 2018 18:46
Count total duration of videos in a specific folder
#!/usr/local/bin/python3
import subprocess
import shlex
import json
import glob
import sys
# This depend on ffmpeg
def findVideoMetada(pathToInputVideo):