Skip to content

Instantly share code, notes, and snippets.

dCsadaGAvj61QcA2QQUTQqTtzVy3usdJa)wvsdvvKgoHQoMY5iKfQkIfRkLLtjEQkSms9CvfMOQunvQAYQIQPt0LjPRRI2SQOSDvL8zcv(UQeEmHYHvvQNrX4vv0jvfY0OY1uPtRkW2iX3OuJJGMHNJxF7LQIj)apsoEHQ6djnhF99)PkEoe70IfvRYNE()tJdXoTyr1Q848TF1Vu)PXHyNwSOAv((PvXP(Q1h98pjTMdPQ6JFGvXXt4q8N))FGNgEA4PrgstJmKMCKJU0LuOPq20SjH0gjIMMMaAgAJMJMM2fjPXtJmijdEAKM0KiYqta5On6skKczt2KqKKdpnstAYqgAKJuOlDrsx80OrAYrgYqosbjPGNgnKKnEA0inDjd5ihzOlPrscXtJmKMgzin5O5Ol5ifAgYMUKqAcirKcnb0U0gjKMMSPzirijr4PrIinPqgYMCKq6sosHUKnzqstaEA0inPjdzihztxYrk0LSjfsijKerIOjGMaAJ2qsB4PrJ0KHmKc5ihsAA80idPjnsAg80OzinnbKH0iP5WtJUKMCKHgsAx80OHKMnEA0qIejsoKQFk54D1N995Vejaa

Keybase proof

I hereby claim:

  • I am baoist on github.
  • I am baoist (https://keybase.io/baoist) on keybase.
  • I have a public key whose fingerprint is C960 A310 ABD6 D298 4EE5 0E1F 8122 FBC0 EE45 FAB4

To claim this, I am signing this object:

shared_examples_for "non-working versions" do
let!(:export) { create(:export, clinical_protocol: clinical_protocol) }
before(:each) do
post endpoint, params, auth_headers
end
it 'should return 422 status code' do
expect(response).to have_http_status 422
end
type Querier interface {
All() (Monitors, error)
Find(int) (Monitor, error)
}
type DB struct {
postgres.DB
}
var db Querier = DB{postgres.DB{}}

Keybase proof

I hereby claim:

  • I am baoist on github.
  • I am baoist (https://keybase.io/baoist) on keybase.
  • I have a public key whose fingerprint is D248 A3EA 6EF3 66B0 6E00 7DAC B440 1040 3366 C146

To claim this, I am signing this object:

// WeightConvert Object:
//
// Takes a series of objects, fields they represent
//
// relies on:
// jQuery
// underscore
// String.parseFloat
Number.prototype.roundToHundredth = function() {
.gallery_items.header-section
%h3 Gallery Items
= f.fields_for :gallery_items, wrapper: false do |gallery_item|
.gallery_item.fields{id: "gallery_item-#{gallery_item.index}"}
= gallery_item.hidden_field :id
.facet-constraints
= gallery_item.fields_for :gallery_item_constraints, wrapper: false do |constraint|
= render partial: 'admin/gallery_items/gallery_item_constraint', locals: {constraint: constraint}
module Approval
def self.included(base)
base.class_eval do
state_machine :state, initial: :awaiting_approval do
state :awaiting_approval
state :flagged
state :approved
end
def inform_owner_of_approval
var tele = {};
_(all).each(function( pkt ) {
var role = pkt[1];
tele[role] = ( !tele[role] )? 1 : tele[role] + 1;
});