Skip to content

Instantly share code, notes, and snippets.

@ricog
ricog / 00-deploy-quasar-framework-using-aws-amplify-console.md
Last active May 5, 2024 21:20
Deploy Quasar Framework using AWS Amplify Console
  1. Modify build image settings to use the node:12 image (see screenshot below).
  2. Replace the amplify.yml file in the console with this one.

This will start the build using node:12, install Quasar CLI, run quasar build and speficy dist/spa as the output directory.

image

@munrocket
munrocket / wgsl_noise.md
Last active May 5, 2024 21:19
WGSL Noise Algorithms

WGSL Noise Algorithms

Operator % has changed, probably current code with it need a fix

Good and fast integer hash

// https://www.pcg-random.org/
fn pcg(n: u32) -> u32 {
    var h = n * 747796405u + 2891336453u;
    h = ((h >> ((h >> 28u) + 4u)) ^ h) * 277803737u;
'use strict';
// We start by accepting an input string of code, and we're gonna set up two
// things...
function tokenizer(input) {
// A `current` variable for tracking our position in the code like a cursor.
let current = 0;
// And a `tokens` array for pushing our tokens to.
var isMac = navigator.appVersion.indexOf( "Mac" ) != -1;
var HP = navigator.userAgent.indexOf( "HP" ) != -1;
var Sun = navigator.userAgent.indexOf( "Sun" ) != -1;
var IE = document.all;
var IE4 = navigator.appVersion.indexOf( "MSIE 4." ) != -1;
var IE5 = navigator.appVersion.indexOf( "MSIE 5." ) != -1;
var IE50 = navigator.appVersion.indexOf( "MSIE 5.0" ) != -1;
var IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
var IE7 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1)) ? true : false;
/*
Narrow non-breaking space before ? ! ; :
espaces fines insécables avant ? ! ; :
*/
import markdownIt from 'markdown-it'
<html>
<!--?xml version="1.0" encoding="utf-8"?-->
<!--?xml-stylesheet type="text/xsl" href="wsdl-viewer.xsl"?-->
<head></head>
<body>
<wsdl:definitions targetnamespace="http://www.axis.com/vapix/ws/action1" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:aa="http://www.axis.com/vapix/ws/action1" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/">
<wsdl:documentation xmlns="http://www.w3.org/1999/xhtml">
<body><pre style=display:block;overflow-x:auto;padding:0.5em;background:white;color:black;border:0px;cursor:pointer><code class=language-sql style=white-space:pre><span style=color:rgb(0,0,255)>With</span><span> child_parent_article </span><span style=color:rgb(0,0,255)>as</span><span>
</span><span>(</span><span style=color:rgb(0,0,255)>select</span><span> </span><span style=color:rgb(0,0,255)>distinct</span><span>
</span> ao_child.object_type_id,
ao_child.object_uuid child_uuid,
opr.parent_object_uuid parent_uuid
<span> </span><span style=color:rgb(0,0,255)>from</span><span> public.alation_object ao_child
</span><span> </span><span style=color:rgb(0,0,255)>left</span><span> </span><span style=color:rgb(0,0,255)>outer</span><span> </span><span style=color:rgb(0,0,255)>join</span><span> public.object_parent_relationship opr
</span><span> </span><span style=color:rgb(0,0,255)>on</span><span> ao_child.object_uuid </span><span class=hljs-operator>=</span><span> opr.object_uuid
This file has been truncated, but you can view the full file.
<!-- srch_results_local.twig -->
<strong style="display:block;">
<!-- srch_pager.twig -->
<div class="pull-right" style="padding-left:50px;">
<ul class="pagination pagination-sm" role="listbox" aria-label="Search Pagination">
<li class="disabled" role="option">
<a href="#">&lt;&lt;</a>
</li>
<li class="disabled" role="option">