Skip to content

Instantly share code, notes, and snippets.

View buster95's full-sized avatar
πŸ¦–

Walter Corrales buster95

πŸ¦–
View GitHub Profile
@buster95
buster95 / project1.code-workspace
Created February 13, 2025 03:16
workspace examples
{
"folders": [
{
"path": ".",
},
{
"name": "frontend",
"path": "../frontend/infiniti-gold"
}
],
@buster95
buster95 / convert.py
Created January 27, 2025 08:48
Instagram convert post_id into media_id
# This is Python port of this Javascript method:
# https://github.com/notslang/instagram-id-to-url-segment/blob/master/lib/index.coffee
url = "https://www.instagram.com/p/B8iwlG9pXHI/"
# ----> use regexp to extract code from url
code = "B8iwlG9pXHI"
charmap = {
'A': '0',
'B': '1',
@buster95
buster95 / links for auto signin.txt
Last active September 6, 2023 14:09
Google meet auto signin
@buster95
buster95 / aem_show_hide.js
Last active February 5, 2025 18:48
javascript functions
function checkboxLogic(comp, val, isChecked) {
var panel = comp.findParentByType('panel');
var addPrimaryCta = panel.getComponent('addPrimaryCta');
var primaryCtaRedirect = panel.getComponent('primaryCtaRedirect');
var primaryCtaText = panel.getComponent('primaryCtaText');
var primaryCtaLink = panel.getComponent('primaryCtaLink');
var primaryCtaAriaLabel = panel.getComponent('primaryCtaAriaLabel');
var primaryCtaDesign = panel.getComponent('primaryCtaDesign');
if (isChecked) {
primaryCtaRedirect.show();
@buster95
buster95 / puppeter.Dockerfile
Created May 17, 2023 02:02
Dockerfile examples
FROM node:12.18.3
WORKDIR /app
COPY . .
# --production --dev
RUN npm install
RUN apt-get update
# Installing chromium libraries
@buster95
buster95 / combineComponents.tsx
Last active April 15, 2023 04:18
React combine components
// combineComponents.tsx
// https://javascript.plainenglish.io/how-to-combine-context-providers-for-cleaner-react-code-9ed24f20225e
import React, { ComponentProps, FC } from 'react';
export const combineComponents = (...components: FC[]): FC => {
return components.reduce(
(AccumulatedComponents, CurrentComponent) => {
return ({ children }: ComponentProps<FC>): JSX.Element => {
return (
<AccumulatedComponents>
@buster95
buster95 / validator.java
Last active June 16, 2022 14:14
Nicaragua Cedula Validator Java
package denisjtorresg.info;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.JOptionPane;
@buster95
buster95 / slackCommands.jsonc
Last active December 8, 2021 05:53
SlackBody Examples
{
"token": "2XcC2UGO3SJamwSMSqJqJjTh",
"team_id": "T33D257PC",
"team_domain": "moonshotpartners",
"channel_id": "D02FERQPCBU",
"channel_name": "directmessage",
"user_id": "U02EWSAH7C5",
"user_name": "walter.corrales",
"command": "/go1Walter",
"text": "help",
@buster95
buster95 / npm-registry-licenses.txt
Created September 27, 2021 04:15 — forked from robertkowalski/npm-registry-licenses.txt
The licenses in the npm-registry from their package.json, from the latest version of each module 23.11.2013
The licenses in the npm-registry from their package.json, from the latest version of each module
23.11.2013
[ { key: 'undefined', value: 27785 },
{ key: 'MIT', value: 20811 },
{ key: 'BSD', value: 5240 },
{ key: 'BSD-2-Clause', value: 621 },
{ key: 'Apache 2.0', value: 263 },
{ key: 'GPL', value: 233 },