Skip to content

Instantly share code, notes, and snippets.

Jeremy McAnally jm

Block or report user

Report or block jm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:124d5486f95db2253a69076a47361f11
damageDealt = 0
armor -= dmg
if armor <= 0
{
damageDealt = -armor
armor = 0
}
hp -= damageDealt
@jm
jm / games.md
Created Apr 23, 2018
Lot of SNES and NES games
View games.md

SNES

  • Street Fighter Alpha 2
  • Shadowrun
  • Super Punch Out!!
  • Street Fighter 2: Turbo
  • Super Mario All Stars
  • Super Mario Kart
  • NBA Jam
View keybase.md

Keybase proof

I hereby claim:

  • I am jm on github.
  • I am jmcanally (https://keybase.io/jmcanally) on keybase.
  • I have a public key whose fingerprint is F853 3A02 8F59 1F72 582C F0A9 5507 B445 849A 08FA

To claim this, I am signing this object:

View gist:5e34a701707d99de1fe45e2bf7647779
### Keybase proof
I hereby claim:
* I am jm on github.
* I am jmcanally (https://keybase.io/jmcanally) on keybase.
* I have a public key whose fingerprint is F853 3A02 8F59 1F72 582C F0A9 5507 B445 849A 08FA
To claim this, I am signing this object:
@jm
jm / text.md
Created Dec 1, 2015
Peanuts in PNG
View text.md

It's Giving Tuesday! I have something to give to: mamas in Papua New Guinea who don't have access to good pregnancy nutrition and literature.

My in laws are missionaries there, and they've seen first hand that the lack of education and bad diet causes a lot of birth defects and premature births. For instance, mothers don't really know that smoking is bad for babies. They also chew a nut called buai that is bad for them but they won't stop due to addiction and its alleged morning sickness curing abilities. Likewise their diets lack a lot of essential things that babies need, and since they're mostly a sustenance economy, that means if they don't grow it, they don't eat it. Thos factors combined with a lack of solid healthcare in PNG means that mothers are often left to deal with the pain and difficulty of defects and death.

So what's the thing you're giving to? I'm working with some folks to setup a non-profit here in the U.S. to work with doctors and nationals in PNG to develop nutrition and education

@jm
jm / modules.rb
Created Jun 23, 2015
IRB is my friend
View modules.rb
irb(main):002:0> class X
irb(main):003:1> end
=> nil
irb(main):004:0> X.is_a?(Module)
=> true
View apple.md

I am following up with you about your Apple Developer Program membership.

After further review, I noticed that your Apple ID for this program is also associated to another content provider in iTunes Connect. An Apple ID can be associated with only one iTunes Connect account to have successful access. We want you to have access to all of the resources of the program.

To proceed, we will need to disable your current account and process a refund for your payment. You can then reenroll into the program using a different Apple ID.

View gist:8628050
Number of files: 409
Total content size: 94.432945MB
Traceback (most recent call last):
File "test/harness", line 113, in <module>
main()
File "test/harness", line 110, in main
harness.run()
File "/Users/jeremymcanally/code/level3/test/lib/test_framework.py", line 106, in run
self.execute(test_cases_to_execute)
File "test/harness", line 74, in new_func
View wtf.txt
Starting master on port 9090
Jan 25, 2014 1:14:34 PM com.twitter.finagle.http.HttpMuxer$$anonfun$5 apply
INFO: HttpMuxer[/admin/metrics.json] = com.twitter.finagle.stats.MetricsExporter(<function1>)
Jan 25, 2014 1:14:35 PM com.twitter.finagle.Init$ apply
INFO: Finagle version 6.5.2 (rev=69027d3638f46795ac7f8cd9f44defc795c5d080) built at 20130723-110154
Cleaning up children
Killing child's pgid: 22315
Traceback (most recent call last):
File "test/harness", line 113, in <module>
main()
View plugin.rb
class Plugin
def self.plugins
@plugins ||= []
end
def self.inherited(klass)
@plugins ||= []
@plugins << klass
end
You can’t perform that action at this time.