This file contains 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
ARG RUBY_VERSION=2.6 | |
FROM ruby:$RUBY_VERSION | |
ARG DEBIAN_FRONTEND=noninteractive | |
ARG NODE_VERSION=11 | |
RUN curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ |
This file contains 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
Rails 5 Plain vs API-only comparison | |
plain api | |
bundle exec derailed bundle:mem 27.4375 MiB 19.8594 MiB 72% | |
bundle exec derailed bundle:objects | |
Total allocated: 9957164 bytes (72809 objects) 1748401 bytes (14328 objects) 17% (19%) | |
Total retained: 1125270 bytes (8821 objects) 186684 bytes (1762 objects) 16% (20%) | |
bundle exec derailed exec perf:mem_over_time: 72.66 MiB 67.85 MiB 93% | |
This file contains 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
singleton_class.send(:alias_method , :new_method, :old_method) |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
class Array | |
def median | |
return nil if self.empty? | |
mid = self.length / 2 | |
sorted = self.sort | |
self.length.odd? ? sorted[mid] : 0.5 * (sorted[mid] + sorted[mid - 1]) | |
end | |
def median_index | |
return nil if self.empty? |
This file contains 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
[2012-10-31 12:08:30,961] ERROR (postprocessor:?): xstream out:<com.mirth.connect.model.Response> | |
<status>SUCCESS</status> | |
<message>%PDF-1.4 | |
%ª«¬ | |
4 0 obj | |
<< | |
/Creator (Apache FOP Version 1.0) | |
/Producer (Apache FOP Version 1.0) | |
/CreationDate (D:20121031170830Z) | |
>> |
This file contains 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
<channel> | |
<id>aa95eb89-0553-40d9-bebd-ba9cb4e1b8b8</id> | |
<name>ClinicNoteWriter</name> | |
<description></description> | |
<enabled>true</enabled> | |
<version>2.2.1.5861</version> | |
<lastModified> | |
<time>1351701637481</time> | |
<timezone>America/Chicago</timezone> | |
</lastModified> |
This file contains 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
%PDF-1.4 | |
%ª«¬ | |
4 0 obj | |
<< | |
/Creator (Apache FOP Version 1.0) | |
/Producer (Apache FOP Version 1.0) | |
/CreationDate (D:20121031161927Z) | |
>> | |
endobj | |
5 0 obj |
This file contains 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
asdfad |