Skip to content

Instantly share code, notes, and snippets.

View shibasisp's full-sized avatar

Shibasis Patel shibasisp

View GitHub Profile
@shibasisp
shibasisp / README-Template.md
Created October 26, 2016 03:08 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@shibasisp
shibasisp / beautiful_idiomatic_python.md
Created June 5, 2017 11:06 — forked from JeffPaine/beautiful_idiomatic_python.md
Transforming Code into Beautiful, Idiomatic Python: notes from Raymond Hettinger's talk at pycon US 2013. The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:

Keybase proof

I hereby claim:

  • I am shibasisp on github.
  • I am shibasisp (https://keybase.io/shibasisp) on keybase.
  • I have a public key ASAdpjJphZ0ojqxgM-N1mXmf-aGodk93_CjbnKaca46vrAo

To claim this, I am signing this object:

  1. First upgrade the kernel to 3.16 as shown in accepted answer at this link
  2. Reboot into the new 3.16.x by command sudo reboot.
  3. After rebooting, run sudo apt-get -f autoremove
  4. Now we have to remove old kernel, for that, first list the kernels currently present by command sudo dpkg --list | grep linux-image
  5. It gives a list of kernels, identify the older version, for example linux-image-3.11
  6. Give command sudo apt-get purge linux-image-3.14
  7. Now give command : sudo update-grub2
  8. Now reboot by sudo reboot
  9. Now we have to install realtek driver. For that follow below commands :
  • sudo apt-get install linux-headers-generic build-essential git
@shibasisp
shibasisp / gsoc-pres.md
Created August 13, 2017 19:56
Slides used by me for presentation on GSoC

--

GSoC 2017

--

About me

  • I'm Eklavya Sharma, a 3rd year CS student at BITS.
  • I participated in GSoC 2016 under Zulip.
#include <casacore/casa/Quanta.h>
#include <casacore/casa/Quanta/QLogical.h>
#include <casacore/casa/Quanta/QuantumHolder.h>
#include <casacore/casa/Quanta/MVTime.h>
#include <casacore/casa/Quanta/MVAngle.h>
#include <casacore/casa/Containers/Record.h>
#include <casacore/casa/Exceptions/Error.h>
#include <casacore/casa/sstream.h>
#include <casacore/casa/BasicSL/String.h>
@shibasisp
shibasisp / riot-matrix-workshop.md
Created September 28, 2017 13:25 — forked from attacus/riot-matrix-workshop.md
Create your own encrypted chat server with Riot and Matrix

Running your own encrypted chat service with Matrix and Riot

Workshop Instructor:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?

The goal of this workshop is to teach you how to configure and run your own Matrix/Riot service. By the end of the workshop, you should be able to log into secure chat rooms and invite others to the same server.

@shibasisp
shibasisp / bibtex.png
Created May 28, 2018 07:10 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
https://wireframe.cc/IaFRtx
https://marvelapp.com/project/1915876/
https://app-manifest.firebaseapp.com/
http://www.goodnet.org/pages/submit_a_site
https://coggle.it/diagram/V03U3YqpQl8S-QCZ
https://us11.campaign-archive.com/home/?u=884d5f16016183c67252bd18c&id=364cecaf87
https://apiary.io/
https://www.codemade.io/?ref=producthunt
https://www.figma.com/files/recent
https://snyk.io/org/selfrefactor
def factorial(n):
if n == 0: return 1
else: return factorial(n-1) * n
def tail_factorial(n, accumulator=1):
if n == 0: return 1
else: return tail_factorial(n-1, accumulator * n)