This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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; |
This file contains hidden or 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
| 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) { |
This file contains hidden or 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
| 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) { |
This file contains hidden or 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
| 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); |
This file contains hidden or 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
| 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) { |
This file contains hidden or 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
| 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({ |
This file contains hidden or 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 sound = new Audio('static/media/ahem.wav'); | |
| sound.play(); |
This file contains hidden or 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
| Feeds = new Meteor.Collection('feeds'); | |
| if (Meteor.isClient) { | |
| Meteor.setInterval(function () { | |
| var sound = new Audio('static/media/ahem.wav'); | |
| sound.play(); | |
| }, 5000); | |
| } |