Skip to content

Instantly share code, notes, and snippets.

View adamloving's full-sized avatar
💭
10x Ninja Rockstar

Adam Loving adamloving

💭
10x Ninja Rockstar
View GitHub Profile
@adamloving
adamloving / temporary-email-address-domains
Last active April 15, 2024 00:32
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
@adamloving
adamloving / git-collaborative-workflow.md
Last active January 27, 2024 02:36
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).

Creating the change

$ git checkout -b my-feature

... modify code ....

$ git add <filename> 
$ git commit -m “my feature is this”
@adamloving
adamloving / installer_controller.rb
Created February 1, 2011 06:11
Rails controller action for an HTML5 cache manifest file.
class InstallerController < ApplicationController
# Rails controller action for an HTML5 cache manifest file.
# Generates a plain text list of files that changes
# when one of the listed files change...
# So the client knows when to refresh its cache.
def cache_manifest
@files = ["CACHE MANIFEST\n"]
@files << 'favicon.ico'
@adamloving
adamloving / severity-and-priority.md
Last active January 24, 2023 00:35
This gist defines "severity" and "priority" as they relate to prioritizing bugs to be fixed.

When you've got a pile of bugs and features, it's usefull to separate severity from priority in order to prioritize them. At the end of the day, priority is all that matters - but severity helps clarify how "bad" the bug is.

Basically, it comes down to...

  • SnP1 = hotfix (where n is any number)
  • SnP2 = in this sprint
  • SnP3 = later (maybe never)

... but almost always, high severity bugs will have a high priority.

@adamloving
adamloving / ci.yml
Created August 9, 2022 23:34
RedwoodJS CI workflow action for Github (put this in .github/workflows)
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
@adamloving
adamloving / fb-fan-export.js
Created January 18, 2011 01:02
Export Facebook Page Fans
/*
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
@adamloving
adamloving / common-email-providers.txt
Last active April 1, 2022 13:53
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.
gmail.com
yahoo.com
hotmail.com
aol.com
columbus.rr.com
sbcglobal.net
comcast.net
msn.com
insight.rr.com
earthlink.net
@adamloving
adamloving / swift-command-line.swift
Created March 27, 2015 20:43
example swift command line script
#!/usr/bin/env xcrun swift -i
println("Process.arguments gave args:")
for s in Process.arguments {
println(s)
}
@adamloving
adamloving / example.ts
Last active July 27, 2021 07:32
Isomorphic (shared) Typescript models for full stack Node Express React Postgres projects #NERP
import { array, object, number, string, date, InferType } from "yup";
import { Model } from "objection";
// Shared
// Shared API data schema (objects shared between client and server)
export const sharedSchema = object({
// none of these are required since not set until save (but they are also not nullable)
id: number()
.integer()
.notRequired(),
@adamloving
adamloving / hover-video.html
Created March 22, 2016 23:01
Hover to play video
<html>
<head>
<style>
.viewport {
position: relative;
width: 300px;
height: 300px;
}
.viewport:hover img {