Skip to content

Instantly share code, notes, and snippets.

View roboshoes's full-sized avatar

Mathias Paumgarten roboshoes

View GitHub Profile
@roboshoes
roboshoes / challenge.json
Created August 22, 2023 01:05
Solution to Challenge 1
{
"Name": "Challenge 1 Login",
"CreationDate": "2023-8-21",
"Commands": [
{
"Command": "open",
"Target": "https://developer.automationanywhere.com/challenges/AutomationAnywhereLabs-Login.html?_gl=1*11gchew*_ga*MTcxNzY5NDIwLjE2OTI2NDYwNjM.*_ga_DG1BTLENXK*MTY5MjY2MDE4Mi4yLjEuMTY5MjY2MDIyMC4yMi4wLjA.&_ga=2.245163589.1726161213.1692646063-171769420.1692646063&_fsi=biLWhpkR",
"Value": "",
"Description": ""
},
@roboshoes
roboshoes / post-processing-canvas-sketch.ts
Created July 8, 2018 02:05
Setup to use canvas-recorder in combination with image-shader.
import { draw, options, stop, start, bootstrap } from "canvas-recorder/gl";
import { ImageShader } from "image-shader";
// @ts-ignore
import fragment from "./fragmant.glsl";
const SIZE = 1024;
const canvas = document.createElement( "canvas" );
canvas.width = SIZE;
@roboshoes
roboshoes / Spherical.cs
Last active November 22, 2017 22:29
Implementation of spherical coordinates in C# (based on https://github.com/mrdoob/three.js/blob/master/src/math/Spherical.js)
using UnityEngine;
public struct Spherical {
public float Radius;
public float Phi;
public float Theta;
Spherical( float radius = 1f, float phi = 0f, float theta = 0f ) {
Radius = radius;
@roboshoes
roboshoes / Gulpfile.js
Last active May 15, 2017 17:31
Spawning a GAE dev_appserver.py using gulp wrapper.
const spawn = require( "child_process" ).spawn;
var server;
gulp.task( "gae", function() {
if ( server ) server.kill();
server = spawn( "python", [
'C:/Users/<your user>/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin/dev_appserver.py',
"--port", "8080",
@roboshoes
roboshoes / append-license.js
Last active April 26, 2017 02:00
Appand Apache 2.0 license to all .js files found in a js folder
const path = require( "path" );
const fs = require( "fs" );
const license = new Buffer( `/**
* Copyright 2016 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@roboshoes
roboshoes / shader-pass.js
Created March 20, 2017 02:29
A short implementation of a shader pass based on (mostly stolen from) https://github.com/stackgl/gl-particles
import drawTriangle from "a-big-triangle";
import createShader from "gl-shader";
import createFBO from "gl-fbo";
const vertex = [
"precision mediump float;",
"attribute vec2 position;",
"void main() {",
" gl_Position = vec4( position, 1, 1 );",
"}"
@roboshoes
roboshoes / index.js
Last active March 7, 2017 03:36
Find attribute in node or parent.
// find attribute
export function findInParent( node, attribute, levels = Infinity ) {
return node.getAttribute( attribute ) ||
( levels > 0 ? findInParent( node.parentElement, attribute, --levels ) : null );
}
// find anything
export function findInParent( node, filter, levels = Infinity ) {
return filter( node ) ||
@roboshoes
roboshoes / index.html
Last active February 16, 2019 09:24
Basic setup with no dependencies to render fullscreen fragment shaders.
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
margin: 0;
padding: 0;
overflow: hidden;
}
@roboshoes
roboshoes / tween.js
Last active January 25, 2018 18:19
Small tweening function for the quick tween.
export function tween( time, update ) {
const start = Date.now();
var isCanceled = false;
var isComplete = false;
var chain = [];
function loop() {
if ( isCanceled ) return;
@roboshoes
roboshoes / package.json
Created July 27, 2016 18:11
NPM Scripts only build process for: TypeScript + Browserify, Jade, Less and serving and watching through Lite Server
{
"name": "",
"version": "0.1.0",
"scripts": {
"start": "npm run all && concurrently \"npm run tsc:w\" \"npm run less:w\" \"npm run watchify\" \"npm run lite\" \"npm run pug:w\" ",
"all" : "npm run prep && npm run assets && tsc && npm run browserify && npm run pug",
"lite": "lite-server public",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",