This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i = Message::Identifier.new( hl7_file ) | |
def init_patient | |
self.patient = find_patient(i.patient_criteria) | |
some error if( patient.blank? ) | |
end | |
def init_visit | |
self.visit = find_visit( i.visit_criteria( patient )) | |
some_error if ( self.visit.blank? ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brand new slice as root: | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libxml2-dev libxslt-dev libreadline6-dev libyaml-dev libmysqlclient-dev | |
cd /tmp | |
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz | |
tar -xvzf ruby-2.1.2.tar.gz | |
cd ruby-2.1.2-p<tab> | |
./configure --prefix=/usr/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope) { | |
$scope.name = 'World'; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeError: String#append primitive only accepts Strings | |
from kernel/bootstrap/string.rb:25:in `append' | |
from kernel/common/string19.rb:623:in `<<' | |
from /home/jw/.rvm/gems/rbx-head/gems/pdf-reader-1.3.3/lib/pdf/reader/buffer.rb:307:in `prepare_regular_token' | |
( https://github.com/yob/pdf-reader/blob/v1.3.3/lib/pdf/reader/buffer.rb#L307 ) | |
from /home/jw/.rvm/gems/rbx-head/gems/pdf-reader-1.3.3/lib/pdf/reader/buffer.rb:174:in `prepare_tokens' | |
( https://github.com/yob/pdf-reader/blob/v1.3.3/lib/pdf/reader/buffer.rb#L174 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trying to follow instructions at | |
https://github.com/puma/puma/tree/master/tools/jungle/init.d#installation | |
but it doesn't seem to be working. My sense is that public.production.config | |
is correct since I can start puma with bundle exec puma ( illiustrated below ) | |
but it own't start with /etc/init.d/puma... so I suspect /etc/puma.conf | |
jw@paisley:~$ sudo /etc/init.d/puma start | |
[sudo] password for jw: | |
* => Running the jungle... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('ApiNotice', []). | |
config(function ($httpProvider) | |
{ | |
$httpProvider.responseInterceptors.push('myHttpInterceptor'); | |
var spinnerFunction = function (data, headersGetter) | |
{ | |
// todo start the spinner here | |
$('#api-error').hide(); | |
$('#api-access').show(); | |
return data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jw@logopolis:/projects/saw/v3$ rvm cleanup all | |
Cleaning up rvm archives | |
Cleaning up rvm repos | |
Cleaning up rvm src | |
Cleaning up rvm log | |
Cleaning up rvm tmp | |
Cleaning up rvm gemsets | |
Cleaning up rvm links | |
chmod: cannot operate on dangling symlink `/home/jw/.rvm/bin/gem-rbx-head@medycation' | |
- failed - /home/jw/.rvm/bin/gem-rbx-head@medycation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module User::Abilities | |
# this is included in User | |
# | |
# class User < AR:B | |
# include Abilities | |
# end | |
# | |
def can_create?( object ) | |
admin? || | |
case object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
format.js do | |
@order = params[:orders]} | |
end | |
format :js { render :action => 'create', :locals => {:order => params[:orders]}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"statuscode": 0, | |
"copyright": { | |
"text": "© 2014 MapQuest, Inc.", | |
"imageUrl": "http://api.mqcdn.com/res/mqlogo.gif", | |
"imageAltText": "© 2014 MapQuest, Inc." | |
}, | |
"messages": [] | |
}, |