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 ContactImportWorker | |
include Sidekiq::Worker | |
require 'sidekiq' | |
require 'csv' | |
# require 'sidekiq/testing/inline' | |
sidekiq_options queue: :med | |
#sidekiq_options retry: false |
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
Plugin 'gmarik/Vundle.vim' | |
Plugin 'bling/vim-airline' | |
Plugin 'vim-ruby/vim-ruby' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'tpope/vim-rails' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'sjl/gundo.vim' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'szw/vim-tags' |
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
{{:xmlElement, :AirShoppingRS, :AirShoppingRS, [], | |
{:xmlNamespace, :"http://www.iata.org/IATA/EDIST", | |
[{'xsi', :"http://www.w3.org/2001/XMLSchema-instance"}]}, [], 1, | |
[{:xmlAttribute, :xmlns, [], [], [], [AirShoppingRS: 1], 1, [], | |
'http://www.iata.org/IATA/EDIST', false}, | |
{:xmlAttribute, :"xmlns:xsi", [], {'xmlns', 'xsi'}, [], [AirShoppingRS: 1], | |
2, [], 'http://www.w3.org/2001/XMLSchema-instance', false}], | |
[{:xmlText, [AirShoppingRS: 1], 1, [], '\n ', :text}, | |
{:xmlElement, :Document, :Document, [], | |
{:xmlNamespace, :"http://www.iata.org/IATA/EDIST", |
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
" Note: Skip initialization for vim-tiny or vim-small. | |
" Required: | |
"set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
"endif | |
" Required: | |
call plug#begin() | |
" Required: |
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
defmodule AlivePlug do | |
import Plug.Conn | |
def init(opts) do | |
opts | |
end | |
def call(conn, _opts) do | |
conn = send_chunked(conn, 200) | |
# send initial chunk |
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
<AirShoppingRQ Version="15.2" xmlns="http://www.iata.org/IATA/EDIST" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.iata.org/IATA/EDIST ../AirShoppingRQ.xsd"> | |
<Document> | |
<Name>NDC Wrapper</Name> | |
<ReferenceVersion>1.0</ReferenceVersion> | |
</Document> | |
<Party> | |
<Sender> | |
<ORA_Sender> | |
<AirlineID>C9</AirlineID> | |
<Name>Kronos Air</Name> |
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
<AirShoppingRQ Version="15.2" xmlns="http://www.iata.org/IATA/EDIST" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.iata.org/IATA/EDIST ../AirShoppingRQ.xsd"> | |
<Document> | |
<Name>NDC Wrapper</Name> | |
<ReferenceVersion>1.0</ReferenceVersion> | |
</Document> | |
<Party> | |
<Sender> | |
<ORA_Sender> | |
<AgentUser> | |
<Name>Travel Wadus</Name> |
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
let scrollstep = 100 | |
set smoothscroll | |
let scrollduration = 200 |
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
defmodule NDCCoreRequest do | |
require Logger | |
def process_request(conn, :AirShopping, query_data, [forwarded_hosts], [consumer]) do | |
forwarded_hosts | |
|> AirlineProfile.get_providers(consumer) | |
|> Enum.map(fn(provider) -> | |
Task.async(fn -> | |
provider | |
|> String.upcase |
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
defmodule NDCThreadRequest do | |
use Timex | |
require Logger | |
alias Timex.Interval, as: Interval | |
def start_thread(provider, request_data, method, consumer) do | |
time_start = Time.now | |
IO.inspect "NDCThread start | Provider: #{provider}" | |
{status, response} = try do |
OlderNewer