Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using UnityEngine.Events;
[AddComponentMenu("Playground/Conditions/Condition Collision")]
[RequireComponent(typeof(Collider))]
public class ConditionCollision : ConditionBase
{
// This function will be called when something touches the trigger collider
void OnCollisionEnter(Collision collision)
damageDealt = 0
armor -= dmg
if armor <= 0
{
damageDealt = -armor
armor = 0
}
hp -= damageDealt
@jm
jm / games.md
Created April 23, 2018 21:52
Lot of SNES and NES games

SNES

  • Street Fighter Alpha 2
  • Shadowrun
  • Super Punch Out!!
  • Street Fighter 2: Turbo
  • Super Mario All Stars
  • Super Mario Kart
  • NBA Jam
@jm
jm / keybase.md
Created January 3, 2017 02:08
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:

### 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 December 1, 2015 15:37
Peanuts in PNG

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 June 23, 2015 21:39
IRB is my friend
irb(main):002:0> class X
irb(main):003:1> end
=> nil
irb(main):004:0> X.is_a?(Module)
=> true

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.

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
@jm
jm / wtf.txt
Created January 25, 2014 18:15
wtf
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()