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
{"_id":"65356e574e8c51dbfbe80638","titre":"Annonce 1","type":"Location","statusPublication":"publie","statusBien":"disponible","description":"","prix":10000,"dateAnnonce":"2023-10-22T00:00:00.000Z","photo":[{"url":"/images/1698000471941-3594623.png","nomFichier":"1698000471941-3594623.png","_id":"65356e574e8c51dbfbe80639"}],"__v":0} |
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
# fullfill_orders_job.rb | |
... | |
class FulfillOrdersJob < ApplicationJob | |
queue_as :default | |
def perform(*args) | |
Order.pending.each do |order| | |
Order.transaction do |
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
# fullfill_orders_job.rb | |
... | |
class FulfillOrdersJob < ApplicationJob | |
queue_as :default | |
def perform(*args) | |
Order.pending.each do |order| | |
Order.transaction do |
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
axios({ | |
"method": "POST", | |
"url": "https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/pricing/v1.0", | |
"headers": { | |
"content-type": "application/x-www-form-urlencoded", | |
"x-rapidapi-host": "skyscanner-skyscanner-flight-search-v1.p.rapidapi.com", | |
"x-rapidapi-key": "21bf4db0efmsh13832ff18554d96p141b46jsndbeff7a3cdca" | |
}, | |
"data": "inboundDate=2020-03-02&cabinClass=business&children=0&infants=0&country=US¤cy=USD&locale=en-US&originPlace=SFO-sky&destinationPlace=LHR-sky&outboundDate=2020-02-02&adults=1" | |
}).then((response) => { |
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
[{ | |
"name": "Club Montmartre", | |
"address": "84 Rue de Clichy, 75009 Paris, France", | |
"location": { | |
"lat": 48.8830876, | |
"lng": 2.3277620999999726 | |
}, | |
"image": { | |
"url": "https://s3.eu-west-3.amazonaws.com/actionpoker-app/logo_ccm.jpg" | |
}, |
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
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" | |
# Activate the gem you are reporting the issue against. |
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
/** | |
* Welcome to Pebble.js! | |
* | |
* This is where you write your app. | |
*/ | |
var UI = require('ui'); | |
var ajax = require('ajax'); | |
function fetchJSON(url) { |