Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am mopineyro on github.
  • I am mopineyro (https://keybase.io/mopineyro) on keybase.
  • I have a public key whose fingerprint is 6EF2 05A7 B8F3 DDBD 82B3 97AA 2F76 80AF 369B 3BE1

To claim this, I am signing this object:

@MOPineyro
MOPineyro / gist:4112faa8ba1ba7588da3
Created Feb 4, 2015
Slow PlayerSelections Controller
View gist:4112faa8ba1ba7588da3
class PlayerSelectionsController < ApplicationController
def create
selection = PlayerSelection.new(player_selection_params.merge(user_id: current_user.id, game: Game.current_game))
if selection.save
render json: selection, status: 201, serializer: PlayerSelectionSerializer
else
render json: {errors: selection.errors}, status: 422
end
end
View gist:3c15a85dca03fe31bc0b
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
checkIn: function() {
var controller = this;
var checkIn = this.store.createRecord('check-in');
var success = function(position) {
checkIn.set('latitude', position.coords.latitude);
@MOPineyro
MOPineyro / dabblet.css
Created Feb 20, 2013
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
<style type="text/css">
/*<![CDATA[*/
#outlook a{padding:0;}
@MOPineyro
MOPineyro / dabblet.css
Created Feb 20, 2013
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
<style type="text/css">
/*<![CDATA[*/
#outlook a{padding:0;}