Skip to content

Instantly share code, notes, and snippets.

Vignesh Sarma K vigneshsarma

Block or report user

Report or block vigneshsarma

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
View uwsgi_sample.sh
#!/usr/bin/env bash
uwsgi_ini="$( cat <<EOF
[uwsgi]
http = :8902
thunder-lock = true
processes = 2
master = true
pidfile = /tmp/uwsgi.pid
module = sample.wsgi
View install_pdf2htmlex.sh
#!/bin/bash
set -e
source /etc/environment
#sudo add-apt-repository ppa:coolwanglu/pdf3htmlex --yes
#sudo apt-get update
# sudo apt-get install libpoppler-dev libspiro-dev libcairo-dev autoconf libtool libgtk2.0-dev build-essential
export LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib
pushd /tmp
wget https://github.com/coolwanglu/pdf2htmlEX/archive/v0.11.tar.gz -O - | /bin/tar -zxf -
@vigneshsarma
vigneshsarma / comparison.py
Created Jun 21, 2014
June Bangpypers meetup - Magic Methods - Python
View comparison.py
# comparison
from functools import total_ordering
@total_ordering
class Person(object):
def __init__(self, name, age):
self.name = name
@vigneshsarma
vigneshsarma / gist:4502768
Created Jan 10, 2013
formated with web-mod.el
View gist:4502768
<html>
<head>
<link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="static/bootstrap/js/bootstrap.min.js"></script>
<script src="static/script.js"></script>
<link href="static/main.css" rel="stylesheet">
<title>Address Book</title>
</head>
<body>
View gist:1433254
$ (git::master) make && make install
Making all in po
make[1]: Entering directory `/home/vignesh/Source/jhbuild/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vignesh/Source/jhbuild/po'
Making all in scripts
make[1]: Entering directory `/home/vignesh/Source/jhbuild/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vignesh/Source/jhbuild/scripts'
Making all in triggers
View more_jhbuild_log
$ (git::master) ./autogen.sh
checking for autoconf >= 2.57...
testing autoconf2.50... not found.
testing autoconf... found 2.68
checking for automake >= 1.8...
testing automake-1.11... found 1.11.1
checking for libtool >= 1.5...
testing libtoolize... found 2.4
checking for gettext >= 0.12...
testing gettextize... found 0.18.1
View jabuild_build_output
$ /bin/bash gnome-shell-build-setup.sh
Updating jhbuild ... done
Installing jhbuild...
make: *** [include-check] Error 1
Writing ~/.jhbuildrc ... done
Done.
@vigneshsarma
vigneshsarma / spiral_thr_matrix_2.c
Created Sep 21, 2011
My Corrected second solution with the base case n<=N/2
View spiral_thr_matrix_2.c
#include<stdio.h>
#include<conio.h>
//int w[20][20];
int w[3][3]={1,2,3,4,5,6,7,8,9};
int N=3;
void printer(int n) {
int i,j;
if(n<N/2){
return;
@vigneshsarma
vigneshsarma / spiral_thr_matrix.c
Created Sep 21, 2011
My first solution with out the base case
View spiral_thr_matrix.c
#include<stdio.h>
#include<conio.h>
//int w[20][20];
int w[3][3]={1,2,3,4,5,6,7,8,9};
int N=3;
void printer(int n) {
int i,j;
printf("\n ");
View double_squre.py
import math
def isSuperSqure(n):
hlf=int(math.sqrt(n))
start=0
count=0
while(hlf>=start):
if((start+hlf)<=n):
no=(start**2)+(hlf**2)
if(no>n):
You can’t perform that action at this time.