Skip to content

Instantly share code, notes, and snippets.

View birante's full-sized avatar
🎯
Focusing

Birante SY birante

🎯
Focusing
View GitHub Profile
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
</head>
# Controller
def orange_money
@reservation_id = session[:reservation_id]
@transaction_id = session[:transaction_id]
@total_amount = session[:total_amount].to_f
@om_secret_key = ["xxxxxxxxxxxxxxxx"].pack("H*")
@s2m_identifiant = Digest::MD5.hexdigest("xxxxxxxxxxxxx")
@s2m_site = Digest::MD5.hexdigest("xxxxxxxxxxx")
@s2m_htype = "SHA512".downcase
Returned data:
{
data: {
name: {
raw: 'Abdou Aziz DIENE',
first: 'Abdou',
last: 'Diene',
middle: 'Aziz',
title: ''
},
Yay! Resume {
parts: {
name: 'Abdou Aziz',
experience: 'professionnelle\n' +
'Abdou Aziz DIENE 2020-2021 * SENCALL TECHNOLOGIES»® (Responsable de production)\n' +
'e Formation, insertion et supervision des équipes de vente.\n' +
'e Recrutement de profils adéquats a la production.\n' +
"Adresse : Rue 11x16, e Reporting, analyses et proposition de plans d'actions.\n" +
'Medina,\n' +
'Dakar 2019-2020 * ECG Assurances® (Courtage en Assurance)\n' +
@birante
birante / eligibility
Created January 15, 2021 09:42
Voici la réponse a une demande d'éligibilité par numéro de téléphone
{
"eligibilities": [
{
"operator": "orange",
"is_eligible": true
},
{
"operator": "bouygues",
"is_eligible": true
},
@birante
birante / _vue-rails.md
Created May 13, 2020 12:14 — forked from przbadu/_vue-rails.md
Vue js and Rails integration

Setup Rails and Vuejs

  1. Generate new rails app using --webpack flag
rails new myApp --webpack=vue

Note:

  1. You can use --webpack=angular for angular application and --webpack=react for react.
@birante
birante / 06.png
Created January 25, 2020 01:01 — forked from mfd/06.png
Gilroy font
06.png
Averta PE (https://serieseight.com/)
@birante
birante / web-fonts-asset-pipeline.md
Created November 24, 2019 10:20 — forked from anotheruiguy/web-fonts-asset-pipeline.md
Custom Web Fonts and the Rails Asset Pipeline

Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.

Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.

As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.

The recommended way

Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.

@birante
birante / web-fonts-asset-pipeline.md
Created November 24, 2019 10:20 — forked from anotheruiguy/web-fonts-asset-pipeline.md
Custom Web Fonts and the Rails Asset Pipeline

Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.

Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.

As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.

The recommended way

Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.