This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float2 positions[3] = { | |
| float2( 0.0, -0.5), | |
| float2( 0.5, 0.5), | |
| float2(-0.5, 0.5) | |
| }; | |
| float4 colors[3] = { | |
| float4(1.0, 0.0, 0.0, 1.0), | |
| float4(0.0, 1.0, 0.0, 1.0), | |
| float4(0.0, 0.0, 1.0, 1.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var newScript = document.createElement("script"); | |
| newScript.onload = function() { | |
| var spector = new SPECTOR.Spector(); | |
| spector.displayUI(); | |
| }; | |
| document.head.appendChild(newScript); | |
| newScript.src = "https://spectorcdn.babylonjs.com/spector.bundle.js"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo modprobe v4l2loopback devices=1 video_nr=10 card_label="OBS Cam" exclusive_caps=1 | |
| ls -l /dev/video* | |
| v4l2-ctl --list-devices | |
| # https://www.google.es/search?sxsrf=ALeKk01prUlE8BPxGnfFe0RkbsMiSFo4Lg%3A1585693172189&ei=9MGDXtCaC-vjgwfMuYjwCA&q=obs+plugins+use&oq=obs+plugins+use&gs_lcp=CgZwc3ktYWIQAzIGCAAQFhAeMgUIABDNAjIFCAAQzQIyBQgAEM0COgQIABBHOgUIABCRAjoFCAAQywE6AggAULO1AVixwQFgvcIBaABwAngAgAFUiAGIA5IBATWYAQCgAQGqAQdnd3Mtd2l6&sclient=psy-ab&ved=0ahUKEwjQ5ICy38XoAhXr8eAKHcwcAo4Q4dUDCAs&uact=5 | |
| # https://obsproject.com/forum/resources/obs-virtualcam.539/ | |
| # https://github.com/CatxFish/obs-v4l2sink | |
| # https://github.com/CatxFish/obs-virtual-cam/issues/17 | |
| # https://srcco.de/posts/using-obs-studio-with-v4l2-for-google-hangouts-meet.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function showInteractiveAreas () { | |
| const root = APP.safeGetChildByName(""); | |
| const debugHitArea = "DebugHitArea"; | |
| const queue = [root]; | |
| while (queue.length > 0) { | |
| const element = queue.pop(); | |
| if (element.name === debugHitArea) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Extract wiki page links | |
| function extractWikiPageLinks () { | |
| const aNodes = document.querySelectorAll(".m-0.p-0.list-style-none>li a") | |
| return Array.from(aNodes).map(aNode => ({ | |
| title: aNode.text, | |
| href: aNode.href | |
| })); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const range = (min, max) => Array(max - min).fill().map((_, i) => i + min); | |
| function fastPrimes(n) { | |
| var p = range(2, n); | |
| for (var i = 0; i < p.length; i++) { | |
| for (var j = i + p[i]; j < p.length; j += p[i]) { p[j] = undefined; } | |
| p = p.filter(n => n); | |
| } | |
| return p; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const osmosis = require("osmosis"); | |
| const fs = require("fs"); | |
| function extractVideoLinks (code) { | |
| const resolutionRegex = /resolution *==+ *"(.*?)"/g; | |
| const sourceRegex = /source\.src *= *"(.*?)";/g; | |
| const links = {}; | |
| let match = false; | |
| do { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Cheat { | |
| constructor (game) { | |
| this.game = game; | |
| this._target = undefined; | |
| } | |
| get target () { | |
| if (!this._target || this._target.remainingWord.length === 0) { | |
| this._target = this.bestTarget; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --------------------- | |
| # Install base software | |
| # --------------------- | |
| # Install node LTS | |
| curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
| sudo aptitude install -y nodejs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function printHierarchy(node, padding="") { | |
| let newPadding = padding; | |
| if (node.name) { | |
| newPadding += " |"; | |
| console.log(`${padding}-${node.name}`); | |
| } | |
| node.children.forEach(child => printHierarchy(child, newPadding)); | |
| } |
NewerOlder