Skip to content

Instantly share code, notes, and snippets.

View josylad's full-sized avatar
👨‍💻
Building the Future!

Joseph Adediji josylad

👨‍💻
Building the Future!
View GitHub Profile
@josylad
josylad / currencies.js
Created March 2, 2024 11:48 — forked from avaleriani/currencies.js
Currencies list with emojis (XOF, XCD and XAF have representatives flag emojis)
export default [
{
"symbol": "€",
"name": "Euro",
"symbol_native": "€",
"code": "EUR",
"emoji": "🇪🇺"
},
{
"symbol": "$",
@josylad
josylad / all_filters.md
Last active November 29, 2023 07:08
How to use Django Template Filters

Join Filter

<!-- the value -->
[‘python’, ‘is’, ‘fun'] | join:" - "
<!-- the output -->
"python - is - fun"

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@josylad
josylad / gist:aa8905fc8bc66f0c5f9a8a67089d2e17
Created September 16, 2020 21:45 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@josylad
josylad / forms.py
Created March 9, 2020 07:24 — forked from maraujop/forms.py
django-crispy-forms bootstrap form example
# -*- coding: utf-8 -*-
from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field
from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions
class MessageForm(forms.Form):
text_input = forms.CharField()
@josylad
josylad / date.html
Created March 5, 2020 09:13 — forked from maraujop/date.html
Datepicker template for django-crispy-forms
{% load crispy_forms_field %}
<div id="div_{{ field.auto_id }}" class="control-group{% if form_show_errors and field.errors %} error{% endif %} {% if field.field.widget.attrs.class %} {{ field.field.widget.attrs.class }}{% endif %}">
{% if field.label %}
<label for="{{ field.id_for_label }}" class="control-label {% if field.field.required %}requiredField{% endif %}">
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
</label>
{% endif %}
@josylad
josylad / Heroku-Deployment.md
Created October 7, 2019 14:18 — forked from kamauvick/Heroku-Deployment.md
Deploying to Heroku manual

A guide for deploying to Heroku

Info:

This guide shows a simple step by step tutorial for deploying django applications.

Tested with django 2.2.5

Requirements:

Starters:

  • A heroku account
@josylad
josylad / Heroku-Deployment.md
Created October 7, 2019 14:18 — forked from kamauvick/Heroku-Deployment.md
Deploying to Heroku manual

A guide for deploying to Heroku

Info:

This guide shows a simple step by step tutorial for deploying django applications.

Tested with django 2.2.5

Requirements:

Starters:

  • A heroku account
@josylad
josylad / DEPLOYING-DJANGO-APPS-TO-HEROKU.md
Created October 3, 2019 08:14 — forked from newtonkiragu/DEPLOYING-DJANGO-APPS-TO-HEROKU.md
Deploying Django Applications to heoroku

How to Deploy Django Applications on Heroku

Install heroku CLI

Sign up to Heroku.

Then install the Heroku Toolbelt. It is a command line tool to manage your Heroku apps

After installing the Heroku Toolbelt, open a terminal and login to your account: