Skip to content

Instantly share code, notes, and snippets.

@Apo45ty
Apo45ty / Vec2Test
Last active August 29, 2015 14:22
Sparky Math Test Function
void Vec2Test() {
using namespace sparky;
using namespace math;
std::cout << "Printing Vector 2 test cases" << std::endl;
//test functions
Vec2 vector(1.0f, 2.0f);
std::cout << "\"" << vector << "\" expected: Vec2(1 , 2)" << std::endl;
vector.add(Vec2(5.0f, 4.0f));
std::cout << "\"" << vector << "\" expected: Vec2(6 , 6)" << std::endl;
vector.divide(Vec2(6.0f, 6.0f));
@cesarandreu
cesarandreu / AngularJS Provider Test Example
Last active February 6, 2018 17:59
Example of how you can test your AngularJS providers.
Look at the README.
@vjames19
vjames19 / EclipseWorkspaceCreatorKeepingPreferences.py
Last active December 17, 2015 03:29
Copies the preferences from the src workspace to the dest workspace. If the dest workspace doesn't exist it will be created. Enjoy!
'''
Created on May 8, 2013
@author: Victor J. Reventos
Copies the preferences from the src workspace to the dest workspace.
If the dest workspace doesn't exist it will be created.
Enjoy!
'''