Skip to content

Instantly share code, notes, and snippets.

View sorskoot's full-sized avatar
🌷
Developing cool stuff

Sorskoot sorskoot

🌷
Developing cool stuff
View GitHub Profile
@sorskoot
sorskoot / OBS RGB Glitch Shader.hlsl
Last active February 2, 2023 22:23
OBS RGB Glitch shader
uniform float speed;
uniform float stepsize;
uniform float amount;
float4 mainImage(VertData v_in) : TARGET
{
float time = elapsed_time*speed;
float glitch = 0;
if( frac(sin(time) * cos(v_in.uv.y*sin(time*1.45))) > amount) glitch=stepsize;
@sorskoot
sorskoot / HueShiftShaderOBS.shader
Last active November 30, 2021 02:44
Random Hue shader for OBS ShaderFilter
uniform float speed;
uniform float stepsize;
uniform float shift;
float3 rgb2hsv(float3 c)
{
float4 K = float4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
float4 p = lerp(float4(c.bg, K.wz), float4(c.gb, K.xy), step(c.b, c.g));
float4 q = lerp(float4(p.xyw, c.r), float4(c.r, p.yzx), step(p.x, c.r));
@sorskoot
sorskoot / index.html
Last active May 27, 2018 20:19
BabylonJS WebVR Hello World
<canvas id="renderCanvas"></canvas>
@sorskoot
sorskoot / index.html
Created November 26, 2017 21:22
Very basic A-Frame Scene with Red Cube
<html>
<head>
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-box color="red" position="-1 0.5 -3" ></a-box>
</a-scene>
</body>
</html>
@sorskoot
sorskoot / advanced-routing.js
Last active March 15, 2017 22:48
Express.js route to success
router.all('*', function(req, res, next){
//…
next();
});
router.get('/p/:name', function(req, res, next){
//…
});
router.param('name', function(req, res, next, name){
@sorskoot
sorskoot / users.js
Created March 7, 2017 15:16
default users.js routing file
var express = require('express');
var router = express.Router();
/* GET users listing. */
router.get('/', function(req, res, next) {
res.send('respond with a resource');
});
module.exports = router;
@sorskoot
sorskoot / bootstrap express
Created March 6, 2017 15:42
bootstrap express
express --view=pug --css=sass --git
@sorskoot
sorskoot / install express-generator
Last active March 6, 2017 15:36
install express-generator though npm
npm install express-generator -g
@sorskoot
sorskoot / app.js
Created March 3, 2017 07:42
Getting started with Node.js on ChakraCore - Express.js example
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Hello World!');
});
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});