Skip to content

Instantly share code, notes, and snippets.

View dominic248's full-sized avatar
💻
Focusing

Dominic Silveira dominic248

💻
Focusing
  • Senior Software Engineer
View GitHub Profile
@rdli2020
rdli2020 / index.html
Created February 17, 2020 18:05
CSS, JSX, Component, Props, State, Event, Lifecycle, form // source https://jsbin.com/cinotof
<!DOCTYPE html>
<html lang="en">
<title>CSS, JSX, Component, Props, State, Event, Lifecycle, form</title>
<script src= "https://unpkg.com/react@16/umd/react.production.min.js"></script>
<script src= "https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
<script src= "https://unpkg.com/[email protected]/babel.min.js"></script>
<style>
$myColor: red;
h1 {
@rg3915
rg3915 / views.py
Last active September 28, 2023 15:08
Read csv InMemoryUploadedFile Django
import csv
import io
def import_csv(request):
if request.method == 'POST' and request.FILES['myfile']:
myfile = request.FILES['myfile']
# Read csv file InMemoryUploadedFile
file = myfile.read().decode('utf-8')
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active April 7, 2025 16:27
Online Resources For Web Developers (No Downloading)
@matthewzring
matthewzring / markdown-text-101.md
Last active April 28, 2025 07:24
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@tianchu
tianchu / django_auth.js
Last active June 1, 2023 21:44
How to authenticate Django users in node.js
/*
* Authenticate Django users in node.js.
*
* Django is great for many projects, while node.js does some fantastic
* jobs that Django couldn't. For example, you may have a Django app
* managing your user accounts and another real-time service or application
* running on Node, then you probably will need to read Django user session
* to authenticate users in the Node project.
*
* This gist is not production ready yet, but it demonstrates how could it