Skip to content

Instantly share code, notes, and snippets.

View shankara-n's full-sized avatar

Shankara Narayana shankara-n

View GitHub Profile
@gldraphael
gldraphael / AppCompatPreferenceActivity.java
Last active May 22, 2019 17:19
Abstract base class for the SettingsActivtiy which implements and proxies the necessary calls to be used with AppCompat, and the Settings Activity that inflates a toolbar at runtime.
package com.example.activities;
import android.content.res.Configuration;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatDelegate;
import android.support.v7.widget.Toolbar;
@blazindragon
blazindragon / sendmail.py
Created December 4, 2013 02:05
Zip image files from directory and send to email
import os
import re
import zipfile
import smtplib
import sys
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email import Encoders
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000