Skip to content

Instantly share code, notes, and snippets.

Girish Patil theevilhead

  • India
Block or report user

Report or block theevilhead

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
theevilhead / amp-email-personalised-newsletter.html
Last active Apr 29, 2019
This amp email has personalised posts in newsletters with bookmarking and upvoting options. Which hit an endpoint on action. It also has a unsubscribe/resubscribe button inside the email. All these operations are done without leaving your email.
View amp-email-personalised-newsletter.html
<!doctype html>
<!-- Either ⚡4email or amp4email is valid -->
<html ⚡4email>
<!-- REQUIRED -->
<meta charset="utf-8">
<script async src=""></script>
<script async custom-element="amp-form" src=""></script>
<script async custom-element="amp-list" src=""></script>
theevilhead /
Last active Dec 18, 2018
Secret santa mixmatch with google sheets and apps script : Use this script following the instructions in the gist to create a Secret santa mix-match and if needed send each user their partner's details Read whole post here @Hashnode
/** Dummy data Thomas Bolan Rafael Ridgley Shoshana Zarrella Shavon Cales Mirian Fasano Wilfred Patch Allan Bankes Edwin Acheson Emanuel Oriley  
theevilhead /
Last active Nov 18, 2017
Serve vue js webpack templet dev server over wifi to all your local devices.

change the 'localhost' to '' everywhere in the file build/dev-server.js

depengind the on the port number visit the ip on your local devices. This is best way thatn going with ngrok tunnel as it uses your data and reloads will take time.

View gist:2b1f20e99d8075eaf66f8ed673660190
#smooth way to install scikit learn on python 2.6
# Install miniconda from
# Now run the script
bash ./
#It will install mini conda
# Now run
theevilhead / gist:7ac2fbc3cda897ebd87dbe9aeac130d6
Created Apr 24, 2016
easiest way to detect direction of drag
View gist:7ac2fbc3cda897ebd87dbe9aeac130d6
var dragStartX;
var dragStartY;
dragStartX = Math.ceil(e.offsetX/70);
dragStartY = Math.ceil(e.offsetY/70);
var dropX = Math.abs(dragstartX - e.screenX);
You can’t perform that action at this time.