This file contains 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
// import this after importing all of bulma | |
// add responsive spacing helpers | |
@each $property, | |
$shortcut in $spacing-shortcuts { | |
@each $name, | |
$value in $spacing-values { | |
// All directions |
This file contains 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
local expect = dofile("rom/modules/main/cc/expect.lua").expect | |
if not fs.exists("/bin") then | |
fs.makeDir("/bin") | |
end | |
if not fs.exists("/home") then | |
fs.makeDir("/home") | |
end | |
This file contains 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 | |
// CONFIG | |
$override_title = null; //set overide title to use instead of directory name | |
// END CONFIG | |
?> | |
<?php |
This file contains 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
# Get new tags from remote | |
git fetch --tags | |
# Get latest tag name | |
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) | |
# Checkout latest tag | |
git checkout $latestTag |
This file contains 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
public class ExampleUsage : UdonSharpBehaviour { | |
public void OnGameFinished() { | |
// determine the winner somehow up here | |
VRCSDKBaseVRCPlayerApi wiwnner = ... | |
// find the winner and run the teleport command on them | |
for (var i = 0; i < networkManager.playerIds.Length; i++) | |
{ | |
if (networkManager.playerIds[i] == winner.playerId) { | |
networkManager.clients[i].SendCustomNetworkEvent(NetworkEventTarget.Owner, "TeleportPlayerToSpawn"); |
This file contains 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 interface Vector2 { | |
x: number | |
y: number | |
} | |
const distance = (a: Vector2, b: Vector2): number => | |
Math.sqrt((b.x - a.x) ** 2 + (b.y - a.y) ** 2) | |
const subtract = (b: Vector2, a: Vector2): Vector2 => { | |
return { x: b.x - a.x, y: b.y - a.y } |
This file contains 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 clamp (v: number, min: number, max: number): number { | |
return Math.min(Math.max(v, min), max) | |
} |
This file contains 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
// Option 1: Import the entire three.js core library. | |
import * as THREE from 'three'; | |
import { BoxBufferGeometry, Mesh, MeshPhongMaterial } from 'three'; | |
import { BoxLineGeometry } from 'three/examples/jsm/geometries/BoxLineGeometry.js'; | |
import { VRButton } from 'three/examples/jsm/webxr/VRButton.js'; | |
import { XRControllerModelFactory } from 'three/examples/jsm/webxr/XRControllerModelFactory.js'; | |
let DB; |
This file contains 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
ffffffffffffffffffffffffffffffffffffffffffffffffffccffffffffffffffffffffffcfff7ffffffffffffcfffffffffffffffff9ffffcffffff | |
fffffffffff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffcfc7fcccffffffff7ffc7ff7ffff7ffffffffffff7fffffffffff | |
ffffffffffffffffffffffc7fffffffffffffffffffffffffffffffffffffffffbffff77a77ffffcbf7f7f7fcff7fffffffffffffffff7fffffcfffff | |
cfffffffffcff7cfff7fffcccccccffffff7ffffffffffffffccfffffffffffffffff7fff77fff7777cc7c7fffffffffffffffffffff7ffffff7f7fff | |
ffffffffffcfffffffccceeeeeeeeecccfffffffffffffffff77fffffff7cffffffffffffc777ccc77fcfccfffffffff7ff7ffffffff7ffffffff7fff | |
ffffffffffcffffffcee66666666666eeccffcffffffffffff77fffffffffffffffffffcccc7777ccf7fffffffffffffcfffffffff7ffffffffff7fff | |
fffffffffffffffcee666666666666666eeccfff7fffffffffcfffffffffffffffff7cccccfc77bab77cfffffffff7ffffffffffffffffffffffffff7 | |
ffffffffffffffce6666666666666660666eeccffffffcffffffffcffffffffffffffff7fffc7c7fccfffffffcffff7fffffffffffffffffffffffffa | |
fffffffffffffce6666666666666666066661ecffffff7ff |
This file contains 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
333333333333333333333333333333333333333333333333333333333333333333333333333333333333338c7c7333333333333333333333333878777 | |
3333333333333333333333333333333333333333333333333333333333333333333333333333333333333cccc7c333333333333333333333387777777 | |
3333333333333333333333333333333333333333333333333333333333333333333333333333333333333cc7c7cc33333333333333333338777777777 | |
333333333333333333333333333333333333333333333333333333333333333333333333333c7ccccc7ccccccccccccccc33333333333878777778777 | |
333333333333333333333333333333333333c333333333333333333333333333cccccccc7cccccccc7cc7cccccccccc7cc7c3cc333387777777778777 | |
3333333333333333333333333333333333c77c3333333333333cc7ccccc7c7ccccccccc7cccc77c7cccccccccccccccccccc7ccccc877c77877777c77 | |
3333333333333333333333333333333333c7c7c33cccccccccccc7ccccccccccccccccccc7c7c7cce8cc7cc7ccccccc77cccccccccc7cc78cc7c77c77 | |
333333333333333333333333333333333cc7777cc7cccc7cccccccccccccccccccc7ccccccc7ccc788ccccccc7ccccc77cc7ccc7ccc7cccccc7c77cc7 | |
333333333333333333333333300000cccc777777cccccccc |
NewerOlder