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
04d08d89beaa0d8d29be5296496f99dae0003e86672b5ce496e49e25951cff352f315353f763d97607228e7607f306ed5ca9d0fbd362495e7f86b9879d5ce1e592 |
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
// in client-side controller: | |
Meteor.call('newClient', | |
$('input[name="username"]').val(), | |
$('input[name="password"]').val(), | |
$('input[name="email"]').val()); | |
// in startup.js (ignore password, this is just to show how I'm doing) | |
Meteor.methods({ | |
newClient: function (username, password, email) { |
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
/* | |
* A simple sketch that uses WiServer to get the hourly weather data from LAX and prints | |
* it via the Serial API | |
*/ | |
#include <WiServer.h> | |
#define WIRELESS_MODE_INFRA 1 | |
#define WIRELESS_MODE_ADHOC 2 |
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
<?php | |
/* @description Basic class to generate database querys for MySQL. The methods are chainable ( $this->a()->b()->c() ) | |
* @author Ricardo - 2009-11 | |
*/ | |
define(DB_HOST,'localhost'); | |
define(DB_NAME,'your_db'); | |
define(DB_USER,'user'); | |
define(DB_PASS,'pass'); |
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
/* It's just some sample, I need to get some free time to organize and post the full code */ | |
<?php | |
/* | |
* @description Classe de Base com configs de smarty, páginas e etcs | |
* @author Ricardo - 2009-11 | |
*/ | |
session_start(); | |
require_once('Database.class.php'); | |
require_once('configs.php'); |