Skip to content

Instantly share code, notes, and snippets.

View codeAshu's full-sized avatar
👋

Ashutosh Trivedi codeAshu

👋
View GitHub Profile
@codeAshu
codeAshu / feeds_unique.txt
Created May 12, 2018 11:15 — forked from eteubert/feeds_unique.txt
List of Podcast RSS Feeds, extracted via iTunes API
This file has been truncated, but you can view the full file.
<http://sailortalk.podOmatic.com/rss2.xml>
HTTP://www.knient.com/CAL/CAL-Podcast/CAL-Podcast.xml
Http://feeds.feedburner.com/fridgeandhbomb
Http://feeds.feedburner.com/wfodicks
Http://ravenc-taouf.podomatic.com/rss2.xml
Http://www.calvaryonline.org/podcasts/podcast.xml
Http://www.changkhui.com/XML/teemateepai.xml
httP://dtfreunde.podcaster.de/Deutsches_Theater.rss
http://-myantioch.sermon.tv/rss/main
http://004.podOmatic.com/rss2.xml
@codeAshu
codeAshu / plot_clusters.py
Created June 27, 2018 05:11
cluster plot
import pylab as pl
from itertools import cycle
def plot_2D(data, target, target_names):
colors = cycle('rgbcmykw')
target_ids = range(len(target_names))
pl.figure()
for i, c, label in zip(target_ids, colors, target_names):
pl.scatter(data[target == i, 0], data[target == i, 1],
c=c, label=label)
pl.legend()
@codeAshu
codeAshu / fakemails.txt
Created July 27, 2018 07:10
List of all fake mail generators domains. Please double check before you add it, I have sourced it from other gists.
nobuma.com
15qm.com
nokiamail.com
sofimail.com
10minut.xyz
emailgo.de
inbax.tk
gowikifilms.com
mybitti.de
mierdamail.com
import pylab as pl
from itertools import cycle
def plot_2D(data, target, target_names):
colors = cycle('rgbcmykw')
target_ids = range(len(target_names))
pl.figure()
for i, c, label in zip(target_ids, colors, target_names):
pl.scatter(data[target == i, 0], data[target == i, 1],
c=c, label=label)
pl.legend()
import json
input_ls = []
f = open('inputTraining.txt')
for line in iter(f):
try:
input_ls.append(json.loads(line))
except ValueError:
print line +'is not a proper json line'