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
| export function showHoverEffect(el) { | |
| //... | |
| //insert before return line - return (isSpawner || !isPinned || isFrozen) && canMove; | |
| if (window.APP.hubChannel.can("spawn_emoji")) | |
| { | |
| //enable visitors movements | |
| AFRAME.scenes[0].systems["hubs-systems"].characterController.isMotionDisabled = false; | |
| AFRAME.scenes[0].systems["hubs-systems"].characterController.isTeleportingDisabled = false; | |
| } |
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
| <?php | |
| //method 1 - faster | |
| //host this webpage on your server, Heroku or any other host | |
| //paste your link to a Hubs Page using the format: | |
| //https://yourserver.com/yourpath/link.php?img=https://yourserver.com/yourpath/yourimage.jpgorpng&url=https://anyotherserver.com/finallink | |
| //this will trick Hubs to capture a snapshot of the image "img", so keep it in the 16:9 ratio for instance 1280x720 | |
| ?> | |
| <!DOCTYPE html> | |
| <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
| /* | |
| Daniel DP - https://gist.github.com/dprado75/eb317ebca12d5fea1663645039c0b6d9 | |
| Code created based in the following links: | |
| Lid Library By Linear Spoon - https://www.autohotkey.com/board/topic/92888-lidwatcher-monitor-the-state-of-your-laptop-lid/ | |
| Battery status by AntonyB - https://www.autohotkey.com/board/topic/7022-acbattery-status/ | |
| */ |
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
| param( | |
| [string]$SourceFolder, | |
| [string]$OutputFolder | |
| ) | |
| # Ensure output folder exists | |
| if (-not (Test-Path -Path $OutputFolder)) { | |
| New-Item -ItemType Directory -Path $OutputFolder | |
| } |
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
| # This script is meant to monitor a new laptop battery | |
| # | |
| # It saves the power level to a log file on disk to help you determine the real battery duration and to monitor any sudden power drops | |
| # How to use it: | |
| # | |
| # 1 - First of all, ideally run the battery report before replacing your old unit. | |
| # (on a Admin CMD windows) | |
| # powercfg /batteryreport | |
| # | |
| # 2 - save that report for comparison later |