Instantly share code, notes, and snippets.

💭
10x Ninja Rockstar

💭
10x Ninja Rockstar
• Sort options
Last active Oct 14, 2019
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
 0-mail.com 0815.ru 0clickemail.com 0wnd.net 0wnd.org 10minutemail.com 20minutemail.com 2prong.com 30minutemail.com 3d-painting.com
Created Feb 8, 2016
Toptal Codility Problem: Convert to-and-from base -2
View base-neg-2.js
 'use strict'; function toDecimal(A) { var sum = 0; for (var i = 0; i < A.length; i++) { sum += A[i] * Math.pow(-2, i); } return sum; }
Created Sep 24, 2019
Python truth table and truthiness
View truthiness.py
 import math values = [ True, False, 1, 0, -1, "true", "false", "1", "0", "-1", "", None, math.inf, -math.inf, [], {}, [[]], [0], [1] ] print("Truth Table") print("-----------") for value in values: print(f"\t", end="")
Last active Sep 23, 2019
Python is a very inelegant language. Here are some things I dislike.
View python_sucks.py
 # 1. Clunky lambda syntax numbers = [1, 2, 3] # don't do this... doubled = list(map(lambda n: n * 2, numbers)) # There's no way to define the end of the block except that comma. What about wrapping lines? # better for this case doubled = [n * 2 for n in numbers]
Created Jan 18, 2011
View fb-fan-export.js
 /* For more detailed instructions on how to use this script, sign up with your email here: http://adamloving.com/internet-programming/how-toexport-facebook-page-fans DISCLOSURE: This javascript runs in your browser pretending to be you looking through your page fans. Facebook should have no problem with this, but who knows if they will think it is strange to see you looking through all your fans so quickly (the script waits 3s before requesting each page). I've had no problem running this so far for 1000s of page fans, but I
Last active Sep 3, 2019
Simple Git workflow for collaborating on a project. I wrote this to help a co-worker learn Git (and help me remember after a year of working on my own).
View git-collaborative-workflow.md

# Creating the change

``````\$ git checkout -b my-feature
``````

... modify code ....

``````\$ git add <filename>
\$ git commit -m “my feature is this”
``````
Created Mar 25, 2015
Read PowerPoint ppt pptx using Apache Poi in java!
View HelloPoi.java
 import java.io.*; import org.apache.poi.xslf.usermodel.XMLSlideShow; import org.apache.poi.POIXMLProperties.*; import org.apache.poi.xslf.usermodel.*; public class HelloPoi { public static void main(String[] args) {
Last active Dec 20, 2018
Sampling of popular email service providers. These were the most frequent from my list that I was able to eyeball. From an experiment to figure out what percentage of email addresses on an email list use an ISP for email as opposed to a corporate, educational, or military email address.
View common-email-providers.txt
 gmail.com yahoo.com hotmail.com aol.com columbus.rr.com sbcglobal.net comcast.net msn.com insight.rr.com earthlink.net
Created May 15, 2011
The simplest way to get a user's Twitter timeline using Javascript and jQuery