Skip to content

Instantly share code, notes, and snippets.

View wangonya's full-sized avatar
🎧
Wired in

Kelvin Wangonya wangonya

🎧
Wired in
View GitHub Profile
@thedelchop
thedelchop / dracula.vim
Created May 10, 2019 14:20
Dracula SpaceVim Theme
"=============================================================================
" dracula.vim --- dracula theme for SpaceVim
" Author: Joseph DelCioppio < joseph.delcioppio@gmail.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
" The default color palette that Dracula.vim exports
" {
" 'bgdarker': ['#191A21', 234],
" 'bgdark': ['#21222C', 235],
@codediodeio
codediodeio / database.rules.json
Last active January 28, 2024 19:07
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@mhulse
mhulse / Super simple background image slideshow.css
Last active January 18, 2020 12:46
Super simple jQuery background-image random slideshow (using CSS3 for the transition and gets the image paths via HTML5 `data` attribute).
[data-slides] {
background-image: url(../../uploads/banner1.jpg); /* Default image. */
background-repeat: no-repeat;
background-position: center top;
background-size: cover;
transition: background-image 1s linear;
}
/* Use additional CSS to control the `height` of `[data-slides]`, like so: */
@garaud
garaud / sqlalchemy-orm-query-to-dataframe.py
Last active April 11, 2024 04:08
Example to turn your SQLAlchemy Query result object to a pandas DataFrame
# -*- coding: utf-8 -*-
"""From a Query.all(), turn this result to a pandas DataFrame
Table creation and example data come from the official SQLAlchemy ORM
tutorial at http://docs.sqlalchemy.org/en/latest/orm/tutorial.html
Just take a look at the 'query_to_dict' function and the last part of the __main__.
"""
@ksamuel
ksamuel / gist:1521153
Created December 26, 2011 13:30
Urwid chat UI
#!/usr/bin/env python
# coding: UTF-8
# code extracted from nigiri
import os
import datetime
import sys
import traceback
import re