Simple Config To Push Your RoR app To Heroku using Pg:
- Let sqlite just in development & test environment
group :development, :test do
gem 'sqlite3', '1.3.12'
end
/** | |
* Simple script to show how to solve the scrope update | |
* When using the native js TimeOut call | |
* | |
* @author dassiorleando | |
*/ | |
(function (angular) { | |
'use strict'; | |
angular |
/* | |
Node.js, express, oauth example using Twitters API | |
Install Dependencies: | |
npm install express | |
npm install oauth | |
Create App File: | |
Save this file to app.js | |
The API we are creating in this gist will follow these rules :
password
Grant Type only (no need for Authorization pages and such).v1.api.example.com
)The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :
<?php | |
namespace NoxLogic\DemoBundle\Form\Type; | |
use Doctrine\ORM\EntityManager; | |
use NoxLogic\DemoBundle\Entity\Province; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; |
package cm.flashbusiness.core.util; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import org.joda.time.DateTime; | |
/** | |
* @author dassi |