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
| <VirtualHost *:80> | |
| ServerName server_name | |
| ServerAdmin [email protected] | |
| AssignUserID user_name user_name | |
| #DocumentRoot "/home/user_name/site_env/web_app/user_name/public/" | |
| #<Directory /> | |
| # Options FollowSymLinks | |
| # AllowOverride None |
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
| server{ | |
| listen 80; #or change this to your public IP address eg 1.1.1.1:80 | |
| server_name www.blogcloud.com.br; #change this to the domain name, for example www.myblog.com | |
| access_log /var/log/wordpress.access_log; | |
| error_log /var/log/wordpress.error_log; | |
| location / { | |
| root /home/wordpress/public_html/wordpress; | |
| index index.php; |
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 Ze(): | |
| attr1 = 'viadinho' | |
| def __init__(self): | |
| # Isso e um construtor | |
| self.attr2 = 'gayzola' | |
| def canta_hino(self, time='palmeiras'): | |
| if(time == 'palmeiras'): | |
| return 'Quando surge...' | |
| return 'Nem' |
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
| window.onbeforeunload = function(e) { | |
| var message = "Your confirmation message goes here."; | |
| var name = Session.get('name'); | |
| Name.remove(nome); | |
| Meteor.flush(); | |
| return message; | |
| }; |
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
| Nomes = new Meteor.Collection("nomes"); | |
| Nome = { | |
| remove : function(nome) { | |
| return Nomes.remove({ | |
| nome : nome | |
| }); | |
| }, | |
| get : function(nome) { | |
| return Nomes.findOne({ |
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
| Nomes = new Meteor.Collection("nomes"); | |
| Nome = { | |
| remove : function(nome) { | |
| return Nomes.remove({ | |
| nome : nome | |
| }); | |
| }, | |
| get : function(nome) { | |
| return Nomes.findOne({ |
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 CLIENT_ID = '454038495802.apps.googleusercontent.com'; | |
| var SCOPES = 'https://www.googleapis.com/auth/drive'; | |
| /** | |
| * Called when the client library is loaded to start the auth flow. | |
| */ | |
| function handleClientLoad() { | |
| window.setTimeout(checkAuth, 1); | |
| } |
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
| Names = new Meteor.Collection("names"); | |
| Name = { | |
| remove : function(name, room) { | |
| return Names.remove({ | |
| name : name, | |
| room : room, | |
| host : PARENT // It's a string | |
| }); | |
| }, | |
| get : function(name, room) { |
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
| Template.body.connected = function(){ | |
| return Meteor.userLoaded(); | |
| }; | |
| Template.body.have_game = function(){ | |
| //get into game ... | |
| } | |
| Template.index.created = function(){ | |
| //list facebook friends |
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 CLIENT_ID = '[%client_id%]'; | |
| var SCOPES = 'https://www.googleapis.com/auth/drive'; | |
| /** | |
| * Called when the client library is loaded to start the auth flow. | |
| */ | |
| function handleClientLoad() { | |
| window.setTimeout(checkAuth, 1); | |
| } |
OlderNewer