See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| #!/usr/bin/env python3 | |
| import hashlib | |
| import binascii | |
| import zlib | |
| import zipfile | |
| import sys | |
| import os | |
| from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
| from cryptography.hazmat.backends import default_backend |
| import React, { useRef } from "react"; | |
| import { cn } from "@/lib/utils"; | |
| import CodeEditor from "@uiw/react-textarea-code-editor"; | |
| export interface CodeBlockProps | |
| extends React.TextareaHTMLAttributes<HTMLTextAreaElement> { | |
| language?: string; | |
| darkMode?: boolean; | |
| } |
| export default class EventEmitter | |
| { | |
| constructor() | |
| { | |
| this.callbacks = {} | |
| this.callbacks.base = {} | |
| } | |
| on(_names, callback) | |
| { |
| const { useState, useEffect, useRef } = require('react'); | |
| function useImage({ src }) { | |
| let [ image, setImage ] = useState({ src: null, status: 'loading' }); | |
| let imageElement = useRef(); | |
| let loadedUrls = useRef(new Set()); | |
| useEffect(() => { | |
| const onload = () => { | |
| setImage(img => { |
| # Unix (Terminal) | |
| open -a "Google Chrome" --args --disable-gpu-vsync --disable-frame-rate-limit | |
| # Windows (Command prompt) | |
| start chrome --args --disable-gpu-vsync --disable-frame-rate-limit |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Mime type checker</title> | |
| <script type="text/javascript" src="/jquery.min.js"></script> | |
| <script> | |
| $(function () { | |
| var result = $('div#result'); | |
| if (window.FileReader && window.Blob) { |
| <?php | |
| /** | |
| * Simple request response script | |
| * | |
| * Point you cURL request to this script to see all incoming data | |
| */ | |
| echo '*API*'. PHP_EOL; |
| // I wrote this to convert dB to percentage with a weird scale. | |
| // For instance, a user may set an amplifier's min-max dB limits to -50 - 10. | |
| // The UI they use only increments by 1 and dB does not (properly) scale linearly. | |
| // Having to work around these issues I wrote this based on the script I found here www.redwirez.com/pcalc.jsp | |
| // =-=-=-=-=-=-=-= | |
| // Calcs dB to percent with a non-standard dB range | |
| // it does this by getting a new percentage range using min/max dB | |
| // defaults to the standard range of -80 ~ 0 if no min or max is provided | |
| const calcDb = (perc, minDb, maxDb, minP, maxP) => { |