Skip to content

Instantly share code, notes, and snippets.

View ParkinT's full-sized avatar

Thom Parkin ParkinT

View GitHub Profile

I Sometimes Wonder...

  • Who invented the Dotted Line...?
  • What would they do if you said, "No" to "May I place you on a brief hold?"...?
  • Whose original idea was The Coupon…?
  • Do people in Europe, who make a business out of hosting travelers in their home, have a hostel work environment?
  • If AstroPhysicists hosted a competition, would it be called the Spatial Olympics?
  • Is it merely coincidence that Oral Roberts has spent his life as an ORATOR?
  • Is it merely coincidence that Bernie Madoff has "made off" with lots of other people's money?
  • Suppose "Sign Twirlers" formed a union. Then if they decide to strike. What would that look like?

MemDeck Trainer

Master a Memorized Deck faster than ever before possible. And easily regardless of language. 

This will be The Most Memorable Item in your Magic inventory.

Memory By Association

Whenever you roll dice you know instantly the number rolled.  It is not necessary to count the dots.

@ParkinT
ParkinT / Collatz Random Number.md
Created August 12, 2012 16:44
Random Number generator using Collatz Conjecture

When I first uncovered Collatz conjecture it made perfect sense to me. You are simply dividing an even number in half until you reach one and, if the number is not even you coerce it to be so.

This created a flash of inspiration for me to devise this simple routine.

{This could be used as the basis of a program to prove the "unsolved problem" of whether Collatz conjecture applies to ALL numbers greater than one.}

@ParkinT
ParkinT / TSExport.md
Last active November 11, 2020 14:03
Clarification of Typescript syntax specifically related to export and import

This table associates different export statement forms with the expected export name and local names:

For importing, though...

  • If you are importing a default export, you have to explicitly name the import. Default exports will not automatically have a local name after importing. Example: import express from "express". The local name does not matter. Could as well be import banana from "express".
  • If you are importing a named export, by default, the local name will be the same as the exported name. Example: If you have export const x = 2, then, you should import it as import { x } from "module". You can also rename the import like this: `import { x as y } from "module".

Trump KILLED businesses:

  • 1991: Trump Taj Mahal. (Bankrupted)
  • 1992: Trump Castle Hotel & Casino. (Bankrupted)
  • 1992: TrumpPlaza Casino. (Bankrupted)
  • 1992: Trump Plaza Hotel. (Bankrupted)
  • 2004: Trump Hotels & Casino Resorts. (Bankrupted)
  • 2009: Trump Entertainment Resorts (Bankrupted)
  • 2015: Trump international golf club In Puerto Rico (bankrupted)
  • 2019: American farmers( bankrupted)
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)
<!DOCTYPE html>
<body>
<p><a href="https://app.frame.io/presentations/e81e04a0-ce02-4310-934a-581718e6e041?fbclid=IwAR2ZP89CDZ15kKU0mXXdtUD0Kl5CdjQernN6u3NBo-hhyySl364msfxQd00" title="Stunning Magic by Doug Roy">Doug Roy Magic: Awesome entertainment</a></p>
</body>
@ParkinT
ParkinT / blog.md
Last active December 13, 2017 18:04
A Blog about Encouraging and Optimistic things

Optimist Prime

GistLog is one of the most ingenious applications I have seen. Leveraging GitHub Gists, you can have a simple blog!


##Alphabetic Intellectual Insult

"You have shown yourself to be

  • an apogenous,
  • bovaristic, 
  • coprolalial, 
  • dasypygal, 
  • excerebrose, 
  • facinorous, 
  • gnathonic, 
@ParkinT
ParkinT / RailsSites.md
Last active August 23, 2016 00:33
Over the life of the Internet I have created innumerable web sites (many corporate 'internal' sites) and many have become extinct. After discovering Ruby-on-Rails (around 2006) I have become a Serial Rails Developer. When asked "What have you done?" I am at a loss for more than the site on which I most recently worked. This is my personal invent…

Thom Rails Sites

Over the life of the Internet I have created innumerable web sites (many corporate 'internal' sites) and many have become extinct. After discovering Ruby-on-Rails (around 2006) I have become a Serial Rails Developer. When asked "What have you done?" I am at a loss for more than the site on which I most recently worked. This is my personal inventory of Rails Sites (simply as a memory aid for me).