Skip to content

Instantly share code, notes, and snippets.

View raagin's full-sized avatar
🎵

Yury Lapshinov raagin

🎵
View GitHub Profile
@raagin
raagin / GulpReactBrowserifyBabelify.md
Created July 15, 2017 10:31 — forked from lukin0110/GulpReactBrowserifyBabelify.md
Gulp + browserify + babelify + react

Use React with Gulp, Browserify and Babelify. This allows you to use React in jsx & node.js style. It let's you use require('module') in your JavaScript. Babelify will transform the jsx code to JavaScript code.

Development

gulp build-react

This will generate a main.min.js file in the build directory with sourcemaps.

Production

@raagin
raagin / outbound-email-with-cloudflare.md
Created May 28, 2024 09:32 — forked from irazasyed/outbound-email-with-cloudflare.md
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

from django.contrib import admin
from django.utils.translation import gettext_lazy as _
class MultiChoicesFieldListFilter(admin.ChoicesFieldListFilter):
def __init__(self, field, request, params, model, model_admin, field_path):
super().__init__(field, request, params, model, model_admin, field_path)
self.lookup_kwarg = "%s__in" % field_path
def choices(self, changelist):
yield {