Open terminal
sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get update sudo apt-get install sublime-text
function puxa() { | |
//Creating Variables | |
var userID = "xxxxxxxxxx"; | |
var access_token = "yyyyyyyyyy"; | |
var url= "https://api.instagram.com/v1/users/"+userID+"/media/recent?access_token="+access_token; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
ss.insertSheet(); | |
var sheet = ss.getActiveSheet(); | |
var today = new Date(); |
// app/initializers/simple-auth-config.js | |
export default { | |
name: 'simple-auth-config', | |
before: 'simple-auth', | |
initialize: function() { | |
var tokenEndpoint = '/users/sign_in'; | |
MyAppnameENV['simple-auth'] = { | |
authorizer: 'simple-auth-authorizer:devise', | |
crossOriginWhitelist:[ |
// String utils | |
// | |
// resources: | |
// -- mout, https://github.com/mout/mout/tree/master/src/string | |
/** | |
* "Safer" String.toLowerCase() | |
*/ | |
function lowerCase(str) { | |
return str.toLowerCase(); |
#Using Font-Awesome with Rails 3.1 using CSS
Download font-awesome from https://github.com/FortAwesome/Font-Awesome
Put the font folder in the app/assets. I renamed the folder from font to fonts to make it clearer
Add config.assets.paths << "#{Rails.root}/app/assets/fonts"
to config/application.rb
. This is to include the apps/assets/fonts folder in the asset pipeline
Put the font-awesome.css file in the app/assets/stylesheets folder
gem 'pg' | |
group :development do | |
gem 'ruby-debug' | |
end | |
gem 'rake', '~> 0.8.7' | |
gem 'devise' | |
gem 'oa-oauth', :require => 'omniauth/oauth' | |
gem 'omniauth' | |
gem 'haml' | |
gem 'dynamic_form' |
# Gemfile | |
… | |
gem 'uuidtools' | |
… |
With Rails 3.0 released a few weeks ago I've migrated a few apps and I'm constantly finding useful new improvements. One such improvement is the ability to log anything in the same way that Rails internally logs ActiveRecord and ActionView. By default Rails 3 logs look slightly spiffier than those produced by Rails 2.3: (notice the second line has been cleaned up)
Started GET "/" for 127.0.0.1 at Mon Sep 06 01:07:11 -0400 2010
Processing by HomeController#index as HTML
User Load (0.2ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 3) LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 3) LIMIT 1
Rendered layouts/_nav.html.erb (363.4ms)