Skip to content

Instantly share code, notes, and snippets.

@MOPineyro
MOPineyro / keybase.md
Created November 11, 2016 00:50
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 February 4, 2015 00:11
Slow PlayerSelections Controller
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
@MOPineyro
MOPineyro / gist:3c15a85dca03fe31bc0b
Created January 22, 2015 02:01
Ember checkin controller
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 February 20, 2013 16:55
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
<style type="text/css">
/*<![CDATA[*/
#outlook a{padding:0;}
@MOPineyro
MOPineyro / dabblet.css
Created February 20, 2013 16:55
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
<style type="text/css">
/*<![CDATA[*/
#outlook a{padding:0;}