Skip to content

Instantly share code, notes, and snippets.

Mario Gonzalez Macedo omgm

Block or report user

Report or block omgm

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
omgm / vector-test.js
Last active Aug 29, 2015
vector.js' moveTo
View vector-test.js
// Adding this test fails
describe('One vector: ', function () {
it('is moved to another position', function () { // is converted into another?
var x = new v(1,0,0);
var y = new v(1,1,0);
var c = x.distanceFrom(y);
public class Palindrome {
// This method checks whether its input reads the same forwards
// as backwards. For example, isPalindrome("noon") should return
// true, but isPalindrome("night") should return false.
// Note that this implementation contains a deliberate bug.
public static boolean isPalindrome(String s) {
if (s.length() == 0) {
You can’t perform that action at this time.