Skip to content

Instantly share code, notes, and snippets.

View serg2801's full-sized avatar

Sergey Koretskiy serg2801

View GitHub Profile
Require cycle: node_modules/expo/build/av/Audio.js -> node_modules/expo/build/av/Audio/Recording.js -> node_modules/expo/build/av/Audio/Sound.js -> node_modules/expo/build/av/Audio.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
- node_modules/metro/src/lib/polyfills/require.js:109:19 in metroRequire
- node_modules/expo/build/av/Audio/Sound.js:3:0 in <unknown>
- node_modules/metro/src/lib/polyfills/require.js:292:12 in loadModuleImplementation
- node_modules/expo/build/av/Audio/Recording.js:4:0 in <unknown>
- node_modules/metro/src/lib/polyfills/require.js:292:12 in loadModuleImplementation
- node_modules/expo/build/av/Audio.js:2:0 in <unknown>
- node_modules/metro/src/lib/polyfills/require.js:292:12 in loadModuleImplementation
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/............
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.6
Using minitest 5.10.3
Using thread_safe 0.3.6
Using tzinfo 1.2.3
Using activesupport 5.1.4
Using builder 3.2.3
PLAY [Deplay the integration appliance.] *****************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [common : Install ntp] ******************************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [common : Start the ntp service] ********************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
{
"resourceType": "Practitioner",
"id": "1912007",
"meta": {
"versionId": "0",
"lastUpdated": "2013-09-26T23:25:59.000-05:00"
},
"text": {
"status": "generated",
"div": "<div><p><b>Practitioner</b></p><p><b>Name</b>: McCurdy, Michael</p><p><b>Status</b>: Active</p></div>"
{
"resourceType": "Patient",
"id": "4342008",
"meta": {
"versionId": "184",
"lastUpdated": "2018-12-14T19:46:59.000Z"
},
"text": {
"status": "generated",
"div": "<div><p><b>Patient</b></p><p><b>Name</b>: SMART, WILMA</p><p><b>DOB</b>: Mar 16, 1947</p><p><b>Administrative Gender</b>: Female</p><p><b>Marital Status</b>: Married</p><p><b>Status</b>: Active</p></div>"
# frozen_string_literal: true
require 'roo'
class ParserXlsx
def initialize(company)
@company = company
file_path = company.file.path
open_file(file_path)
# frozen_string_literal: true
require 'net/ftp'
require 'open-uri'
require 'openssl'
module ParserXml
class Parser
DEPTH = 'depth' # param in xml file
HEIGHT = 'height' # param in xml file
# frozen_string_literal: true
require 'prawn'
class OrderPdf < Prawn::Document
def initialize(order, pdf_name)
super()
@order = order
file_name = Rails.root.join("public/pdf/orders/#{pdf_name}.pdf")
ActiveAdmin.register Coupon do
menu label: proc { current_user.admin? ? 'Coupons' : 'My coupons' }
actions :all, except: [:destroy]
permit_params :name, :coupon_type, :picture, :note, :for_deleting, :business_owner_id
# ===== scopes =====
scope_to :current_user, if: proc { current_user.business_owner? }
scope :all, default: true do |coupons|
coupons
end
require 'net/ftp'
require 'open-uri'
require 'openssl'
module ParserXml
class Parser
DEPTH = 'depth' # param in xml file
HEIGHT = 'height' # param in xml file
LENGTH = 'length' # param in xml file
VOLUME = 'volume' # param in xml file