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
| FB.api('/me', function(response) { | |
| alert("Name: "+ response.name + "\nFirst name: "+ response.first_name + "ID: "+response.id); | |
| var img_link = "http://graph.facebook.com/"+response.id+"/picture" | |
| }); |
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
| packages: | |
| yum: | |
| newrelic-php5: [] | |
| rpm: | |
| newrelic: http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm | |
| commands: | |
| configure_new_relic: | |
| command: newrelic-install install | |
| env: | |
| NR_INSTALL_SILENT: true |
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 Question < ActiveRecord::Base | |
| belongs_to :category | |
| belongs_to :pack | |
| # TODO Doit etre possible de le limiter | |
| # a une categorie passe en parametre et au question appartenant a un set | |
| # en particulier | |
| named_scope :random, :limit => 1,:order => 'RAND()' | |
| end |
NewerOlder