Skip to content

Instantly share code, notes, and snippets.

View nealrs's full-sized avatar
💭
code monster

Neal Shyam nealrs

💭
code monster
View GitHub Profile
@nealrs
nealrs / check.py
Last active December 15, 2016 02:58
supply a first, last, and domain name -- and this script will run through common email patterns to find valid email addresses. worried about domains with catchalls & missing mx records? yeah we got that covered. $ python check.py eric cartman southpark.com
#!/usr/bin/env python
# encoding: utf-8
# install dependencies: sudo pip install validate_email pyDNS
# run it: python check.py robin hood gmail.com
# FYI, forwarding addresses (not catchalls) will report 'probably not valid'. that's all i've got right now.
import sys
from validate_email import validate_email
@nealrs
nealrs / giphy.js
Created May 5, 2014 21:32
use the giphy api to search for & add an animated gif to a webpage.
// on page load, search for & display a random gif matching your search term using the Giphy API.
// usage:
// include giphy.js in your <head>
// set q to your search term (e.g. "brunch")
// add <span id = "giphyme"></span> wherever you want to display the image. -- FYI, it will be centered.
// big ups to the Giphy crew (giphy.com)
// 2014 - Neal Shyam [@nealrs | nealshyam.com]
document.addEventListener('DOMContentLoaded', function () {
q = "finger guns"; // search query
@nealrs
nealrs / checkrap.py
Last active September 27, 2018 04:34
Use rapportive.py from Jordan Wright to validate common email patterns given a first, last, and domain name.
#!/usr/bin/env python
# encoding: utf-8
# 2014 - Neal Shyam [@nealrs | nealshyam.com]
# usage: $python checkrap.py first_name last_name domain_name
# e.g: $python checkrap.py john doe gmail.com
#
#
# PLEASE DON'T BE A DICK OR USE THIS FOR EVIL.
# Seriously, the internet is a nice place, let's keep it that way.
@nealrs
nealrs / gist:1a4804a0b00c95b5dcb8
Last active August 29, 2015 14:01
g@m Jr. demo
# Say hello to Jr.
This is a demo of [David Pennington](https://github.com/Xeoncross)'s client-side [static site generator](https://github.com/Xeoncross/jr).
The whole page is regular markdown (except for the `jr.js` load)
*For basic bloggers &amp; the CMS averse, this may be just want you need.*
<script src="js/jr.js"></script>
@nealrs
nealrs / gist:2ad91bd4fbb8c830b972
Created October 26, 2014 16:56
fix non-looping gifs
# fix non-looping gifs
#source: http://superuser.com/questions/159212/how-do-i-make-an-existing-animated-gif-loop-repeatedly
./gifsicle -bl /path/to/image.gif
@nealrs
nealrs / demo i62.py
Last active August 29, 2015 14:09
Toga demo for issue 62 of Git@Me
# Giphy API search written with Toga -- written for Issue 62 of Git@Me
# This is entirely cribbed from the Toga Browser tutorial. This isn't a particuarly good demo, but it'll do. @nealrs 2014
#!/usr/bin/env python
from __future__ import print_function, unicode_literals, absolute_import
import urllib
import json
import toga
@nealrs
nealrs / neal.json
Last active June 1, 2022 21:09
source file for NealAPI (Git@Me issue 69)
{
"neal" : [
{
"year":1983,
"live": "New Delhi, India",
"school": null,
"work": null
},
{
"year":1984,
@nealrs
nealrs / .zshrc
Last active July 25, 2021 04:50
my oh-my-zsh config
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
#autoenv
source /usr/local/opt/autoenv/activate.sh
source ~/.autoenv/activate.sh
#tmpdir
if [ -f $(which tmpdir-tab) ]; then
. $(which tmpdir-tab)
@nealrs
nealrs / ys.zsh-theme
Created February 9, 2015 14:19
my edits to the ys theme for oh-my-zsh
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background and the font Inconsolata.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
#
# http://ysmood.org/wp/2013/03/my-ys-terminal-theme/
# Mar 2013 ys
# Machine name.
function box_name {
@nealrs
nealrs / 5_28_15.md
Created May 28, 2015 15:06
great CP projects
  • Created by a team Led by Todd Semple, ceator of Plants vs. Zombies
  • VR Puzzle Game using GearVR
  • excellent blackless color pallette inspired by impressionist exhibit at the deYoung museum in SF
  • ride a magic carpet, collect items, avoid danger, get lost
  • looking up to the sky lets you access inventory / navigate / other tasks - pretty innovative!
  • created for Oculus VR Jam