Skip to content

Instantly share code, notes, and snippets.

View ehbc221's full-sized avatar
🏠
Working from home

El Hadj Babacar Cissé ehbc221

🏠
Working from home
  • Sonatel SA
  • Dakar, Sénégal
  • X @ehbc221
View GitHub Profile
@ehbc221
ehbc221 / webdev_online_resources.md
Created September 23, 2018 03:44 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@ehbc221
ehbc221 / django-postgres
Created December 1, 2018 21:46
Configuration to use for Postgres SQL in Django projects
1) Our first step will be install all of the pieces that we need from the repositories.
We will install pip, the Python package manager, in order to install and manage our Python components.
We will also install the database software and the associated libraries required to interact with them.
sudo apt-get update
sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql-contrib
2) Log into an interactive Postgres session by typing:
sudo -u postgres psql
3) First, we will create a database for our Django project.
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
@ehbc221
ehbc221 / docker-help.md
Created July 10, 2019 20:53 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@ehbc221
ehbc221 / switch-docker-daemon.sh
Created May 24, 2021 19:04
Switch Docker Daemon
cd C:\Program Files\Docker\Docker
DockerCli.exe -SwitchDaemon
package com.example.network
import android.util.Log
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import com.example.utils.ErrorUtils
/**
* Extension for awaitResponse
@ehbc221
ehbc221 / jhipster-json-folder-to-dot-notation.py
Last active June 23, 2022 09:22
Convert Jhipster translations to dot annotation (for Wieldy React Admin Template)
from getopt import getopt, GetoptError
from json import load, loads, dumps
from os import listdir, SEEK_END
from os.path import isfile, isdir, join
from sys import argv, exit, stdout
# Query Yes or No to the user
def query_yes_no(question, default="yes"):
"""Ask a yes/no question via raw_input() and return their answer.
@ehbc221
ehbc221 / jhipster-json-to-dot-notation.py
Last active June 23, 2022 09:22
Json to Dot Notation for Jhipster translations
import getopt
import json
import os
import sys
import pyperclip
def get_input_string_from_clipboard():
input_string = json.loads(pyperclip.paste())
@ehbc221
ehbc221 / iterm2-solarized.md
Created September 22, 2022 15:54 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k