Skip to content

Instantly share code, notes, and snippets.

@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active April 19, 2024 13:41
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@igorbenic
igorbenic / example_false.php
Last active April 19, 2024 13:40
Handle WordPress Remote Requests with OOP | ibenic.com
<?php
$remote_request = new WordPressRemoteJSON( 'https://leanpub.com/wpb3/coupons.json', array( 'body' => array("coupon_code" => "coupon-code-123456" ) ), "post" );
$remote_request->run(); //False
@Klerith
Klerith / Dockerfile
Last active April 19, 2024 13:40
Preparar imagen de Docker - Node App
# Install dependencies only when needed
FROM node:18-alpine3.15 AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
# Build the app with cache dependencies
FROM node:18-alpine3.15 AS builder
@scriptdev
scriptdev / .html
Last active April 19, 2024 13:40
OCULTAR A COMBO DA UNIDADE NO LOGIN (Builder Theme) ADIANTI BUILDER
<!-- app/templates/theme-builder/login.html -->
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
{LIBRARIES}
{LIBRARIES_THEME}
@qoomon
qoomon / conventional_commit_messages.md
Last active April 19, 2024 13:39
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@trongnghia203
trongnghia203 / install_pyenv.md
Last active April 19, 2024 13:37
Install pyenv
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:37
APLICAR BORDA AZUL DO CAMPO PADRÃO DO BOOTSTRAP
<?php
$css = "
.form-control:focus {
box-shadow: 0 0 5px #66afe9;
border-color: #66afe9;
}
";
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:35
AUDIO REGISTRO SALVO
<?php
public function onSave($param = null)
{
$object->store();
TTransaction::close();
TToast::show('success', "REGISTRO SALVO COM SUCESSO!", 'center', 'far:check-circle');
@mrflobow
mrflobow / nextcloud_backup.sh
Last active April 19, 2024 13:35
Unraid Nextcloud Backup Script
#!/bin/bash
#
######### UNRAID Nextcloud Backup Script #########
#
#Created for Nextcloud Linuxserver.io Container
#
#Update the params to meet your requirements
#
##################################################