Skip to content

Instantly share code, notes, and snippets.

View maheshagodekere's full-sized avatar
🙃
Stippling AI

Mahesha Godekere maheshagodekere

🙃
Stippling AI
  • Bangalore, India
View GitHub Profile
@maheshagodekere
maheshagodekere / find.class.in.jars
Last active August 29, 2015 14:17
Finding a class in jars
# prints name of the name of the jar
grep -l "classname" *.jar
# prints package of the class
find . -name "*.jar" -exec jar -t -f {} \; | grep "classname"
# list all the class files that match a given name:
find path/to/libs -name '*.jar' -exec grep -Hls <className> {} \;
# JAR could be anywhere in the system use locate and find command:
@maheshagodekere
maheshagodekere / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@maheshagodekere
maheshagodekere / SNSTopic.py
Created December 26, 2017 08:57 — forked from stuartmyles/SNSTopic.py
A complete example of how to use Amazon Web Services Simple Notification Services from Python. This code uses the boto library https://github.com/boto/boto to create a topic, wait for a confirmation and then send a success message. Simply plug in your AWS access and secret keys, plus your email and mobile phone number.
# An example of how to use AWS SNS with Python's boto
# By Stuart Myles @smyles
# http://aws.amazon.com/sns/
# https://github.com/boto/boto
#
# Inspired by parts of the Ruby SWF SNS tutorial http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-sns-tutorial-implementing-activities-poller.html
# And the Python SNS code in http://blog.coredumped.org/2010/04/amazon-announces-simple-notification.html and http://awsadvent.tumblr.com/post/37531769345/simple-notification-service-sns
import boto.sns as sns
import json
# Update Anaconda
conda update --all
# List all the installed packages
conda list -n <env-name>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maheshagodekere
maheshagodekere / stats-normal-dist.ipynb
Last active March 15, 2018 04:58
Central tendency for a normal distribution
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maheshagodekere
maheshagodekere / stats-skewed-dist.ipynb
Last active March 15, 2018 04:53
Central tendency for skewed distribution
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.