Skip to content

Instantly share code, notes, and snippets.

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

Ilya Azin azinit

🏠
Working from home
View GitHub Profile
@rxaviers
rxaviers / gist:7360908
Last active November 20, 2024 00:07
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:
@adamghill
adamghill / messages_and_errors_django_template.html
Created January 3, 2014 21:20
Show messages and errors in Django templates. Useful to just throw in a base template.
{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}">{{ message|safe }}</div>
{% endfor %}
{% endif %}
{% if form.errors %}
<div class="alert alert-error">
<h4>Please fix the following errors</h4>
<ul>
@Ashton-W
Ashton-W / Issue.md
Last active October 21, 2024 23:21
GitHub Markdown toggle code block
Click to toggle contents of `code`
CODE!
@fredrikaverpil
fredrikaverpil / pyside2_dynamic.py
Last active January 19, 2020 15:35 — forked from cpbotha/pyside_dynamic.py
pyside_dynamic.py with minor improvements - also see http://stackoverflow.com/a/14894550/532513
from __future__ import (print_function, division, unicode_literals,
absolute_import)
import os
import sys
from PySide2.QtCore import Slot, QMetaObject
from PySide2.QtUiTools import QUiLoader
from PySide2.QtWidgets import QApplication, QMainWindow, QMessageBox
@hyamamoto
hyamamoto / string.hashcode.js
Created September 30, 2016 07:19
JavaScript Implementation of String.hashCode() .
/**
* Returns a hash code for a string.
* (Compatible to Java's String.hashCode())
*
* The hash code for a string object is computed as
* s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
* using number arithmetic, where s[i] is the i th character
* of the given string, n is the length of the string,
* and ^ indicates exponentiation.
* (The hash value of the empty string is zero.)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 19, 2024 19:30
Semantic Commit Messages

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

@afig
afig / customBadges.md
Last active October 29, 2024 19:53
Creating a Custom Badge for GitHub Projects

Custom Badges

The Shields service (at shields.io) provides a way to create custom badges for your projects. These are badges are very common and are frequently used to show status information about the project, or demonstrate tools that were used for the development of your project.

Example badge:

Creating a badge

@primaryobjects
primaryobjects / react-confirm.js
Created November 1, 2017 19:03
A simple example of a confirm alert dialog in ReactJs / React.
<div className='delete-button' onClick={() => { if (window.confirm('Are you sure you wish to delete this item?')) this.onCancel(item) } } />
@atnartur
atnartur / README.md
Last active December 1, 2020 15:51
Генератор списка источников для Google Docs

Генератор списка источников для Google Docs

Скрипт генерирует список источников в виде отдельного списка, который вставляется в конце документа. Работает с помощью комментариев Google Docs.

Установка

  1. Открыть документ в Google Docs
  2. В верхнем меню нажать Инструменты / Редактор скриптов
  3. Вставить содержимое файла app_script.gs
@jameshd
jameshd / README.md
Created May 20, 2021 15:29
Docusaurus Footer Override