Skip to content

Instantly share code, notes, and snippets.

View arlk's full-sized avatar
🏖️

Arun Lakshmanan arlk

🏖️
View GitHub Profile
@arlk
arlk / install-julia.sh
Last active November 5, 2018 21:56
Julia Linux Installer
#!/bin/bash
typeset -A julia
# specify major.minor version
# just grabs most recent patch of non-rc/alpha/beta version (if available)
julia[1.0]='julia julia1 julia10'
julia[0.7]='julia0 julia07'
julia[0.6]='julia06'
rm -rf julia-bins

Workflow management

  1. Switch to denite.nvim
  2. Fix dotfiles installation (test with docker)
  3. Get zplug to keep track of dotfiles
  4. Bash script to install minimal working setup
  5. Emacs EVIL????

Website

__author__='Arun Lakshmanan'
class bowlingScore(object):
""" This class generates the score for a bowling game based on the following rules:
-- 10 frames of 2 rolls
-- strike: 10 points 1st roll + points from next 2 rolls
-- spare: 10 points 1st and 2nd rolls + points from next roll
-- 10th frame may have 3 rolls for spare, strike bonus
Example:
__author__ = "Arun Lakshmanan"
class fibbonaci(object):
def __init__(self):
""" This class generates the first n Fibbonnaci numbers F(n) and modifies it in the following ways:
- ... "Buzz" when F(n) is divisible by 3.
- ... "Fizz" when F(n) is divisible by 5.
- ... "BuzzFizz" when F(n) is prime.
- ... the value F(n) otherwise.
@arlk
arlk / bb8.py
Created November 22, 2015 13:47 — forked from ali1234/bb8.py
Control Sphero BB-8 from Linux.
#!/usr/bin/env python
# BB-8 Python driver by Alistair Buxton <a.j.buxton@gmail.com>
from bluepy import btle
import time
class BB8(btle.DefaultDelegate):
def __init__(self, deviceAddress):
@arlk
arlk / listener.py
Last active August 29, 2015 14:23 — forked from vo/listener.py
#!/usr/bin/env python
import sys, os, socket, pickle
from time import time
from optparse import OptionParser
UDP_IP = "127.0.0.1"
UDP_PORT = 31200
# tell python where to find mavlink so we can import it
@arlk
arlk / override_rc.py
Last active August 29, 2015 14:23 — forked from vo/override_rc.py
#!/usr/bin/env python
import sys, os
from optparse import OptionParser
import Tkinter as tk
# tell python where to find mavlink so we can import it
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../mavlink'))
from pymavlink import mavutil