Skip to content

Instantly share code, notes, and snippets.

View flexchar's full-sized avatar

Lukas Vanagas flexchar

View GitHub Profile
@flexchar
flexchar / notify.js
Last active March 3, 2018 19:01
VueJS Instance to display notifications (toast + snackbar). Depends on Buefy.
/*
* ----------------------------------------------------------------------
* VueJS + Buefy handler for displaying toast and snackbar notifications
* API: https://buefy.github.io/#/documentation/toast
* depends on VueJS and Buefy (and Bulma)
*
* inspired by JACurtis notifiation.blade.php/LaraFlash Package
* https://gist.github.com/jacurtis/9fa687e8f7512bb197decce7ffc30091
* ----------------------------------------------------------------------
*/
@flexchar
flexchar / graphics.py
Created November 13, 2017 11:39
Code dump for uni assignment `pip install mysqlclient, matplotlib`
print('\nBooting...\n');
# Import modules
import MySQLdb;
import matplotlib.pyplot as plt;
from math import pi;
def bye():
print("\nDone, shutting down...\n");
exit();
@flexchar
flexchar / gist:24d824d63c4e3027ea742112e3547dd9
Last active November 15, 2023 11:06 — forked from farico/gist:3938084
Lietuviškų žodžių linksniavimas PHP Trait
<?php
namespace path\to\this;
/**
* Lietuviškų vardų linksniai.
*/
trait Linksniai {
/**
* Vardų transformacija