Skip to content

Instantly share code, notes, and snippets.

View mmasias's full-sized avatar
💬
Under construction

Manuel Masías mmasias

💬
Under construction
View GitHub Profile
@mmasias
mmasias / vidstab_ffmpeg.md
Created December 14, 2024 10:58 — forked from hlorand/vidstab_ffmpeg.md
Video stabilization using VidStab and FFMPEG

Video stabilization using VidStab and FFMPEG

** Step 1 **

Install ffmpeg with the vidstab plugin.

@mmasias
mmasias / gist:f65bf506e88542bf5bec6e1011a822c2
Created May 23, 2024 17:21
Listado de commits en consola
git log --pretty=format:"%h - %an, %ar : %s"
@mmasias
mmasias / README.md
Created April 7, 2024 19:30 — forked from paolobrasolin/README.md
A::B prompting challenge
@mmasias
mmasias / PalindromeChecker.java
Created April 6, 2024 10:36
Detección de una cadena de texto palindrómica #recursividad
public class PalindromeChecker {
public static boolean isPalindrome(String string) {
String strippedString = string.replaceAll("\\W", "");
int length = strippedString.length();
if (length > 1) {
return palindrome(strippedString.toLowerCase(), 0, length - 1);
}
A::B is a system with 4 tokens: `A#`, `#A`, `B#` and `#B`.
An A::B program is a sequence of tokens. Example:
B# A# #B #A B#
To *compute* a program, we must rewrite neighbor tokens, using the rules:
A# #A ... becomes ... nothing
A# #B ... becomes ... #B A#
@mmasias
mmasias / @GoogleSheet
Created January 18, 2024 08:47
Oculta todas las hojas (excepto la hoja en la que está el usuario)
function hideAllOthersSheets() {
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var sheets = spreadsheet.getSheets();
var actualSheet = spreadsheet.getActiveSheet().getName()
for (var sheet = 0; sheet < sheets.length; s++) {
if (sheets[sheet].getName() != actualSheet) {
sheets[sheet].hideSheet();
}
}
@mmasias
mmasias / InsideAnyClass.java
Created December 21, 2023 09:01
Introducir una pausa en el programa
static void pause(int seconds) {
try {
Thread.sleep(1000 * seconds);
} catch (InterruptedException e) {
}
}
@mmasias
mmasias / InsideAnyClass.java
Last active December 21, 2023 09:02
Método estático para limpiar la consola
static void cleanScreen() {
System.out.print("\033[H\033[2J");
System.out.flush();
}
@mmasias
mmasias / ClassWithScanner.java
Last active November 3, 2024 12:25
Plantilla java que incluye la clase Scanner
import java.util.Scanner;
class ClassWithScanner {
public static void main(String[] args) {
Scanner entrada = new Scanner(System.in);
entrada.close();
}
@mmasias
mmasias / ClassName.java
Last active December 21, 2023 08:55
Plantilla de una clase
class ClassName {
public static void main(String[] args) {
}
}