Skip to content

Instantly share code, notes, and snippets.

Puneeth Chaganti punchagan

Block or report user

Report or block punchagan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sellout
sellout / color-theme-solarized.el
Created Mar 26, 2011
First step of a Solarized color theme for Emacs (http://ethanschoonover.com/solarized)
View color-theme-solarized.el
(eval-when-compile
(require 'color-theme))
(defun color-theme-solarized (mode)
"Color theme by Ethan Schoonover, created 2011-03-24.
Ported to Emacs by Greg Pfeil, http://ethanschoonover.com/solarized."
(interactive "Slight or dark? ")
(let ((base03 "#002b36")
(base02 "#073642")
(base01 "#586e75")
@baali
baali / MajorClust.py
Last active May 28, 2016
MajorClust algorithm implementation using sklearn based on SO conversation about text clustering using python(http://stackoverflow.com/questions/1789254/clustering-text-in-python).
View MajorClust.py
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import linear_kernel
import numpy as np
from itertools import combinations
from random import shuffle
def majorclust_sklearn():
texts = [
"foo blub baz",
"foo bar baz",
@edrex
edrex / camlistore-server-vps-s3.md
Last active Jun 8, 2016
Camlistore on a VPS with S3 blob storage
View camlistore-server-vps-s3.md

Let's set up Camlistore on a Linux server, with blobs stored in s3. This seems to be the currently best-supported option for "cloud" deployment.

This is meant as a supplement to the official server config doc. Read through both docs before you start.

http://camlistore.org/docs/server-config

This blog post is also recommended reading.

I've posted my config files for reference, but they will be created the first time you run camlistored (for the server) and camput init (for the client) so don't copy them.

View New Years Resolution - Learn eLisp For Emacs
Interested in learning eLisp for Emacs, ever thought you should?
I wanted to learn eLisp but there are no decent beginners' book - so I decided to write one - and by decent I mean super-basic starting assuming you know nothing at all.
It is my 'official' side-project; something to work on when I am bored or blocked in my main work.
You can see how much progress I have made here:
http://learn-elisp-for-emacs.org/
The book will get written quicker if other people muck in.
@dmedvinsky
dmedvinsky / xwrits-lock-hooks.diff
Created Sep 1, 2010
Adds ability to execute sh scripts in xwrits before lock and after unlock.
View xwrits-lock-hooks.diff
diff -u xwrits-2.26//main.c xwrits/main.c
--- xwrits-2.26//main.c 2009-04-04 01:17:02.000000000 +0400
+++ xwrits/main.c 2010-09-01 14:06:52.531052264 +0400
@@ -10,6 +10,7 @@
#ifdef HAVE_XINERAMA
#include <X11/extensions/Xinerama.h>
#endif
+#include <signal.h>
static Options onormal;
@kinjo
kinjo / .gitignore
Created Aug 5, 2010
HTML5 Presentation export for Org-mode
View .gitignore
README.html
@zflat
zflat / pg_migrate_steps.sh
Last active Sep 4, 2018
Migrate pg dump from Heroku to local sqlite3 development (and beyond)
View pg_migrate_steps.sh
# Export the Heroku PG database to a local dump file
# https://devcenter.heroku.com/articles/heroku-postgres-import-export#export
heroku pgbackups:capture
curl -o latest.dump `heroku pgbackups:url`
# Install postregs & Setup password
# https://help.ubuntu.com/community/PostgreSQL
# List databases
sudo -u postgres psql -l
@bep
bep / hugo-on-android.md
Last active Jul 13, 2019
Run Hugo on an Android phone
View hugo-on-android.md

First install Termux

Then there are two options:

Build from source

Open the Termux terminal on your Android device and copy-and-paste the commands listed below and hit ENTER:

@sgillies
sgillies / geo_interface.rst
Last active Jul 22, 2019
A Python Protocol for Geospatial Data
View geo_interface.rst

Author: Sean Gillies Version: 1.0

Abstract

This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.

Introduction

@fperez
fperez / ProgrammaticNotebook.ipynb
Last active Jul 25, 2019
Creating an IPython Notebook programatically
View ProgrammaticNotebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.