Skip to content

Instantly share code, notes, and snippets.


Adam Buga liladas

View GitHub Profile
liladas / index.haml
Created Jun 1, 2020
LILROBO - Solar System landing page (Pure CSS)
View index.haml
%B Lilrobo
, we're looking
liladas /
Last active Mar 21, 2020
Python Property Verbose
class PurchaseOrder():
""" PurchaseOrder - Models a Purchase made from market """
def __init__(self, order_id: string):
self._order_id = order_id
# defining a property
def order_id():
liladas / .bash_profile
Last active Feb 27, 2020
Programmatically switch colorschemes of the terminal and gvim for brighter days. ☼
View .bash_profile
export GVIMCOLOR=slate
alias bright="osascript ~/scripts/brighten_up.scpt \"Man Page\" &>/dev/null; export GVIMCOLOR=morning"
alias dark="osascript ~/scripts/brighten_up.scpt \"Slate\" &>/dev/null; export GVIMCOLOR=slate"
alias light="osascript ~/scripts/brighten_up.scpt \"Basic\" &>/dev/null; export GVIMCOLOR=morning"
liladas /
Last active Dec 12, 2019
Core Albums
liladas /
Created Nov 18, 2019
Installing SAM w/ Python 3.7
# there is some trickyness installing AWS SAM CLI on Ubuntu 16.04
# Official documentation recommends using Linux Homebrew... uhm nope.
# SAM needs Python3.6+ and a blanket install sort fucks up the system and other apps.
# Install requirements
sudo apt-get install -y build-essential \
checkinstall \
libreadline-gplv2-dev \
libncursesw5-dev \
liladas /
Created Sep 16, 2019
Keybase Verification

Keybase proof

I hereby claim:

  • I am liladas on github.
  • I am liladas ( on keybase.
  • I have a public key ASDUZ2aVUlDMMYjsCHwQYZ4OeoFCIYFu0sDZCUL1BmUQgAo

To claim this, I am signing this object:

liladas /
Created Jun 27, 2019 — forked from oseiskar/
Converts Swagger YAML to a static HTML document (needs: pip install PyYAML)
# Copyright 2017 Otto Seiskari
# Licensed under the Apache License, Version 2.0.
# See for the full text.
# This file is based on
# (Copyright 2017 SmartBear Software, Licensed under Apache 2.0)
liladas /
Created Mar 27, 2019
Check Daylight Savings
PST_TIME=$(env TZ=America/Los_Angeles date +"%-H")
UTC_TIME=$(env TZ=UTC date +"%-H")
echo "PST Hour:" $PST_TIME
echo "UTC Hour:" $UTC_TIME
liladas /
Last active Aug 9, 2018
"Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”."
# FizzBuzz in Python w/ Generators
# -- inspired by @dabeaz
def fizzbuzz(max_num=101):
for i in range(max_num):
value = ""
if i % 3 == 0: value += "Fizz"
if i % 5 == 0: value += "Buzz"
yield value if value else i
liladas /
Created Jun 8, 2018 — forked from XueshiQiao/
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
You can’t perform that action at this time.