Skip to content

Instantly share code, notes, and snippets.

Matthew Bass pelargir

Block or report user

Report or block pelargir

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pelargir on github.
  • I am pelargir ( on keybase.
  • I have a public key ASAG6q9V4ZBTW4aU6v3eWeH_HCYt0mnMDrLCnnvuHQrIYAo

To claim this, I am signing this object:

View gist:a635e419aa17a7ec646d
== 20140614222207 MoveBlobsToS3: migrating ====================================
0 Printed Cases
PrintedCase#p: 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 0:00:00
0 Documents
Document#cont: 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 0:00:00
0 Batch Events
BatchEvent#ex: 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 0:00:00
pelargir / QRDA_Category_I_Release_2.sch
Created Jul 7, 2014
Schematron for QRDA Cat I files
View QRDA_Category_I_Release_2.sch
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<sch:schema xmlns:voc="" xmlns:svs="urn:ihe:iti:svs:2008" xmlns:xsi="" xmlns:cda="urn:hl7-org:v3" xmlns:sdtc="urn:hl7-org:sdtc" xmlns="urn:hl7-org:v3" xmlns:sch="">
<sch:ns prefix="voc" uri="" />
<sch:ns prefix="svs" uri="urn:ihe:iti:svs:2008" />
<sch:ns prefix="xsi" uri="" />
<sch:ns prefix="cda" uri="urn:hl7-org:v3" />
<sch:ns prefix="sdtc" uri="urn:hl7-org:sdtc" />
<sch:phase id="errors">
<sch:active pattern="p-required-template-ids"/>
<sch:active pattern="p-sdtc-errors-code" />
View gist:15da6cb1bdf23d1a0cf5
class OmniauthCallbacksController < ApplicationController
def wordpress_oauth2
self.current_user = User.find_for_wordpress_oauth2(request.env['omniauth.auth'])
if current_user
flash[:notice] = "Logged in successfully"
current_user.record_login request.user_agent
else[:error] = "Something went wrong (unable to login)"
pelargir / ss
Created Dec 13, 2012
launch Rails 2 or 3 server, or foreman if this is a Heroku app
View ss
if [ -f script/server ]
elif [ -f .env ]
foreman start -p 3000
script/rails server
View countdown.rb
numbers = (0..99).to_a
while numbers.any? do
i = numbers.pop
`say "#{i} cans of coke in the fridge"`
`say "#{i} cans of coke"`
`say "take one out, pass it around"`
`say "#{i - 1} cans of coke in the fridge"`
View tag_links.rb
View bad.erb
<% if @user.role == "ADMIN" -%>
<span class="admin">Welcome Admin</span>
<% elsif @user.role == "USER" -%>
<span class="user">Welcome User</span>
<% else -%>
<span class="peon">Welcome Peon</span>
<% end -%>
View gist:441161
$('#my_form').submit(function(event) {
type: 'POST',
dataType: 'json',
data: $(,
success: function(json) {
if (json['success'] == true) {
window.location = json['redirect_to'];
} else {
You can’t perform that action at this time.