I hereby claim:
- I am josepjaume on github.
- I am josepjaume (https://keybase.io/josepjaume) on keybase.
- I have a public key ASCyMVYKDqjIg-xIEEODJ3D6du3aCiQJMFNRG2xaa9cw5Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| version: '3' | |
| services: | |
| app: | |
| image: decidim/decidim:0.7.2 | |
| working_dir: /app | |
| volumes: | |
| - .:/app | |
| - bundle:/usr/local/bundle | |
| - node_modules:/app/node_modules | |
| environment: |
| rust-server: | |
| image: didstopia/rust-server | |
| restart: always | |
| mem_limit: 15g | |
| ports: | |
| - "28015:28015" | |
| - "28015:28015/udp" | |
| - "28016:28016" | |
| - "80:8080" | |
| volumes: |
| class AccountController < ApplicationController | |
| before_action :authenticate_user! | |
| before_action :set_account | |
| load_and_authorize_resource class: "User" | |
| def show | |
| end | |
| def update | |
| if @account.update(account_params) |
| gem 'rack-cors' |
| <link rel="import" href="../components/polymer/polymer.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| </style> | |
| </template> | |
| <script> |
| // Batch find for Ember Data. It will coerce all the finds on the same run loop | |
| // and execute a single batch find for all the records. It mimics the find | |
| // semantics. | |
| // | |
| // Example usage: | |
| // | |
| // var user1 = store.find('user', 1); | |
| // var user2 = store.find('user', 2); | |
| // | |
| // user1.then(function(user){ |
| require 'futuroscope/convenience' | |
| searches = ["Ed Balls", "Lady Gaga", "Justin Bieber"] | |
| results = searches.future_map do|search| | |
| Twitter.search(search, lang: 'en').results.length | |
| end | |
| puts results.inject(:+) |
| var HashLocationFromUrl = Ember.HashLocation.extend({ | |
| getURL: function(){ | |
| var location = this.get('location'); | |
| if(location.hash){ | |
| return get(this, 'location').hash.substr(1); | |
| }else{ | |
| return this.get('location').pathname; | |
| } | |
| } | |
| }); |
| gem 'webmock' | |
| gem 'vcr' |