Skip to content

Instantly share code, notes, and snippets.

View ricomoss's full-sized avatar
🎲
Would rather be playing board games.

Rico Cordova ricomoss

🎲
Would rather be playing board games.
View GitHub Profile
class ArmoredMantis(Card):
def __init__(self, *args, **kwargs):
self.card_type = constants.FOREST
self.stars = 3
self.wait = 4
self.starting_wait = 4
self.cost = 9
self.base_hp = 540
self.hp_inc = 39
self.base_atk = 125
class ThornQueen(Card):
def __init__(self, *args, **kwargs):
self.card_type = constants.SWAMP
self.stars = 3
self.wait = 4
self.starting_wait = 4
self.cost = 9
self.base_hp = 730
self.hp_inc = 9
self.base_atk = 205
if (Meteor.isClient) {
Template.hello.greeting = function () {
Meteor.subscribe('firstName', 'ricomoss');
var profile = Profile.findOne({username: 'ricomoss'});
return profile.firstName;
};
Template.hello.greeting1 = function () {
Meteor.subscribe('lastName', 'ricomoss');
var profile = Profile.findOne({username: 'ricomoss'});
return profile.lastName;
if (Meteor.isClient) {
Meteor.subscribe('profile');
Template.hello.greeting = function () {
var profile = Profile.findOne({username: 'ricomoss'});
return profile.username;
};
}
if (Meteor.isServer) {
Meteor.publish('profile', function(username) {
if (Meteor.isClient) {
Meteor.subscribe('Profile');
Template.hello.greeting = function () {
var profile = Profile.findOne({username: 'ricomoss'});
return profile.firstName;
};
}
if (Meteor.isServer) {
Meteor.publish('Profile', function(username) {
if (Meteor.isClient) {
function PlaySound() {
var SOUND_PATH = 'static/media/';
var sound_files = [
'ahem.wav', 'bloop.wav', 'boing_spring.wav', 'boing.wav',
'bowling.wav', 'burp.wav', 'camera1.wav', 'cheering.wav',
'gasp.wav'];
var sound_paths = [];
sound_files.forEach(function(filename) {
sound_paths.push(SOUND_PATH + filename);
if (Meteor.isClient) {
Template.twitter_feeds.feeds = function () {
return Feeds.find({}, {sort: {created_at: -1}});
};
Meteor.setInterval(function () {
Meteor.call('twit_get');
var count = Feeds.find({}).count();
var play = false;
console.log(count);
while (count > 7) {
Feeds = new Meteor.Collection('feeds');
if (Meteor.isServer) {
var twitter_user_id = 0;
var boundCallback = Meteor.bindEnvironment(function (err, resp) {
var play = true;
return play;
});
Meteor.methods({
var sound = new Audio('static/media/ahem.wav');
sound.play();
Feeds = new Meteor.Collection('feeds');
if (Meteor.isClient) {
Meteor.setInterval(function () {
var sound = new Audio('static/media/ahem.wav');
sound.play();
}, 5000);
}