Skip to content

Instantly share code, notes, and snippets.

View install-janus.sh
#!/bin/bash
# Instruction: https://github.com/meetecho/janus-gateway/blob/master/README.md
# Host: Ubuntu 18.04.3 (LTS) x64
# Run: /opt/janus/bin/janus
# Prepare: apt full-upgrade -y && sudo reboot now
sudo add-apt-repository universe
apt install -y libmicrohttpd-dev libjansson-dev \
@nullicorn
nullicorn / mnist.py
Last active Dec 13, 2017 — forked from akesling/mnist.py
Python script for working with MNIST dataset. Minor edits to work with python3 and ascii_show function
View mnist.py
import os
import struct
import numpy as np
"""
Source: https://gist.github.com/akesling/5358964
Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py
which is GPL licensed.
"""
@nullicorn
nullicorn / Javascript ISO country code to flag emoji conversion ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function.
View Javascript ISO country code to flag emoji conversion
var isoCountries = {
'AF' : '🇦🇫',
'AX' : '🇦🇽',
'AL' : '🇦🇱',
'DZ' : '🇩🇿',
'AS' : '🇦🇸',
'AD' : '🇦🇩',
'AO' : '🇦🇴',
'AI' : '🇦🇮',
'AQ' : '🇦🇶',