This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public CueVerticalTest : public testing::Test | |
{ | |
protected: | |
virtual void SetUp() | |
{ | |
} | |
virtual void SetFile(char * fileName) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
class NumToString | |
{ | |
private: | |
struct Comparator | |
{ | |
bool operator()(int x, int y) const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ctime> | |
#include <string> | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
class Suit | |
{ | |
private: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="vtt.js"></script> | |
<script src="parse.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Implement this class fully, including virtual functions. | |
class Score { | |
int mScore; | |
string mName; | |
public: | |
Score(int score, int name); | |
virtual string getName() const; | |
virtual int getScore() const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var obj = JSON.stringify(getMyJson()); | |
console.log(obj.results.geomentry.location); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Top level app folder | |
// app/js/app.js | |
angular.module('App', [ 'Components' ]); | |
// Top level components folder | |
// app/js/components/_module.js | |
angular.module('Components', [ 'Person' ]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function UserFactory($http) { | |
var factory = {}; | |
var users = {}; | |
factory.load = function load() { | |
// Return promise returned by $http.get | |
return $http.get('http://localhost:3000/users') | |
.success(function(data) { | |
angular.forEach(data, function(item, index) { | |
users[data.id] = data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Foo() {} | |
Foo.prototype.myState = {}; | |
Foo.prototype.myBehaviour = function() { | |
console.log('Doing something'); | |
} | |
foo = new Foo(); | |
console.log(foo.state); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var events = {} | |
function publish(e, message) { | |
var subscribers = events[e]; | |
subscribers.map(function(sub) { | |
sub(message); | |
}); | |
} | |
function on(e, cb) { |
OlderNewer