Skip to content

Instantly share code, notes, and snippets.

Privacy Policy

Jeremy Jackson built the English - Al Bhed Translator app as a Free app. This SERVICE is provided by Jeremy Jackson at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at English - Al Bhed Translator unless otherwise defined in this Privacy Policy.

update: function() {
"use strict";
Point1_text.text = Point1;
Point2_text.text = Point2;
if (Point1 === 2 || Point2 === 2) {
return this.handleGameOver();
}
jeu.physics.arcade.collide(Joueur1, Balle, function() {
jeu.sound.play("Ping");
});
@jeremyjackson89
jeremyjackson89 / clean_code.md
Created January 28, 2018 17:58 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

function getNormalized(point) {
var norm = Math.sqrt((point.x * point.x) + (point.y * point.y));
var normalized = { x: 0, y: 0 };
if (norm != 0) {
normalized.x = point.x / norm;
normalized.y = point.y / norm;
}
return normalized;
}