Skip to content

Instantly share code, notes, and snippets.

James Baber jamesbaber

Block or report user

Report or block jamesbaber

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

Keybase proof

I hereby claim:

  • I am jamesbaber on github.
  • I am jamesbaber ( on keybase.
  • I have a public key whose fingerprint is 6D2C 02D8 5BC1 4E65 C13C 96FF AB75 D222 6482 B782

To claim this, I am signing this object:

jamesbaber / forceHTTPS.html
Created Mar 1, 2016
HTML Script Tag to Force HTTPS (SSL) on a Webpage
View forceHTTPS.html
if (window.location.protocol != "https:")
window.location.href = "https:" + window.location.href.substring(window.location.protocol.length);
jamesbaber / removeDeadEnemies.js
Last active Mar 1, 2016
Removing object from array depending on value
View removeDeadEnemies.js
function IsDead( enemy ) {
if ( <= 0) {
return true;
} else {
return false;
function RemoveDead(enemy) {
var deadEnemies = enemys.find(IsDead);
You can’t perform that action at this time.