Skip to content

Instantly share code, notes, and snippets.

@pedroeuzebioo
pedroeuzebioo / README.md
Last active May 13, 2024 21:35
Modelo de README (Perfil)

Olá! Tudo bem? Eu sou o Seu nome

Linha adicional de texto informativo sobre você. Seu Sobre deve ter cerca de 2 ou 3 linhas.

Linha adicional de citação de texto. (Opcional)

@devemdobro
devemdobro / README.md
Created January 31, 2022 20:49
README perfil devemdobro
@jfktrey
jfktrey / getch.py
Last active May 13, 2024 21:31
Cross-platform getch() for Python without any fuss
import platform
if platform.system() == "Windows":
import msvcrt
def getch():
return msvcrt.getch()
else:
import tty, termios, sys
def getch():
fd = sys.stdin.fileno()
@Samyany
Samyany / FFmpeg_french_quick_userguide.md
Last active May 13, 2024 21:30
Guide d'utilisation rapide en français de FFmpeg pour la manipulation vidéo

Guide rapide d'utilisation de FFmpeg

Ce document est un résumé rapide basé sur la documentation officielle de FFmpeg. Il a été créé pour faciliter la manipulation vidéo, bien que certaines informations puissent également être pertinentes pour l'audio.

Note : Ce document est une compilation de ce que j'ai compris et de mes propres expériences. Il est fait d'abord pour moi, est incomplet et peut contenir des erreurs.

Informations générales

@tanaikech
tanaikech / submit.md
Created November 11, 2020 05:23
Benchmark: Measuring Process Costs for Formulas in Cells on Google Spreadsheet using Google Apps Script

Benchmark: Measuring Process Costs for Formulas in Cells on Google Spreadsheet using Google Apps Script

Description

When Google Spreadsheet is used, there is the case that the built-in functions and the custom functions in the cells are used. For the functions of Google Apps Script, there is the method for measuring the process cost. Ref But for the built-in functions, it is required to create the script for it. In this report, the script for measuring a function put in a cell has been proposed, and the process cost of the built-in functions has been measured. The proposed script can measure the process cost for the built-in functions and custom functions on Google Spreadsheet. The script is created with using Google Apps Script. When the process cost can be known for the built-in functions and custom functions, it is considered that it will be useful for the developers using Google Spreadsheet.

The origin of this method

export const firstNameAndLastnamePattern: string = '([a-zA-Z]+) ([a-zA-Z]+)';
export const emailPattern: string = "^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$";
@swick
swick / silverblue-devel-utils
Last active May 13, 2024 21:25
silverblue-devel-utils
#!/bin/sh
set -euo pipefail
#set -x
MICRODNF_PACKAGES_F38="https://kojipkgs.fedoraproject.org//packages/microdnf/3.9.0/2.fc38/x86_64/microdnf-3.9.0-2.fc38.x86_64.rpm \
https://kojipkgs.fedoraproject.org//packages/libpeas/1.34.0/3.fc38/x86_64/libpeas-1.34.0-3.fc38.x86_64.rpm \
https://kojipkgs.fedoraproject.org//packages/dnf/4.14.0/2.fc38/noarch/dnf-data-4.14.0-2.fc38.noarch.rpm \
https://kojipkgs.fedoraproject.org//packages/libdnf/0.68.0/2.fc38/x86_64/libdnf-0.68.0-2.fc38.x86_64.rpm"
@mikesmullin
mikesmullin / x86-assembly-notes.md
Last active May 13, 2024 21:23
Notes on x86-64 Assembly and Machine Code

Mike's x86-64 Assembly (ASM) Notes

Assembling Binary Machine Code

Operating Modes:

These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.

Modern operating systems, booted inside Real mode,

@MjHead
MjHead / jet-engine-relations-update.php
Created February 2, 2022 09:27
JetEngine. Relations. Update related items
<?php
/**
* Update related item from form action/notification
*
* @param array $args [description]
* @return [type] [description]
*/
function my_update_related_items( $args = array() ) {
$relation = ! empty( $args['relation'] ) ? $args['relation'] : false;

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH