Skip to content

Instantly share code, notes, and snippets.

View manojkarthick's full-sized avatar
powered by caffeine

Manoj Karthick manojkarthick

powered by caffeine
View GitHub Profile
@manojkarthick
manojkarthick / CyanideScraper.java
Created May 30, 2016 07:44
Simple Scraper for Cyanide and Happiness Comics
import org.jsoup.Connection;
import org.jsoup.HttpStatusException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
package main
import (
"fmt"
"io"
"log"
"net/http"
"os"
)
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"os"
)
rename "s/\s+//g" /Users/manojkarthick/Movies/Video_songs/*
@manojkarthick
manojkarthick / first.erl
Created February 27, 2017 09:33
Erlang Find Hypotenuse, area and perimeter for Right angles triangles
-module(first).
-export([double/1,mult/2,area/3,square/1,treble/1,cube/1]).
mult(X,Y) ->
X*Y.
@manojkarthick
manojkarthick / matches.erl
Created February 28, 2017 07:22
Erlang - MOOC Exercises Set 2
-module(matches).
-export([howManyEqual/3]).
howManyEqual(A,A,A) ->
3;
howManyEqual(A,A,_) ->
2;
howManyEqual(A,_,A) ->
2;
howManyEqual(_,A,A) ->
@manojkarthick
manojkarthick / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 10:22
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
@manojkarthick
manojkarthick / hn_api_extract_info.py
Last active May 13, 2017 17:49
Get Story/Post information from the Hacker News API
import requests
def get_response(story_type):
url = 'https://hacker-news.firebaseio.com/v0/' + story_type + 'stories.json'
response = requests.get(url)
story_id_data = response.json()
return story_id_data
def get_story_ids(stories, size):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def _get_dict(self, obj):
for attr, value in obj.__dict__.items():
self.__dict__[attr] = value
def _set_attributes(self, model):
if model:
self._get_dict(model)