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
--[[ | |
Bounce Network Measurement Script | |
Version: 1.4.3 | |
Sends events to the Boune Network when players join or leave the experience (live game only for join/leave events). | |
Sends a verification event when run in Studio. | |
Sets a global variable _G.BOUNCE_TRACKER_VERSION. | |
Setup: | |
1. Place this script inside ServerScriptService in your Roblox experience. |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.Linq; | |
public class CameraContentActivator : MonoBehaviour { | |
//to use this code, tag all your wall cameras first. | |
//NorthCam, SouthCam, EastCam, WestCam, FloorCam |
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 compare(s, i, p, n) { | |
const current = s[i] | |
const prev = i > 0 ? s[i - p] : '' | |
const next = i < (s.length - n) ? s[i + n] : '' | |
if(s.length == 1) | |
return false | |
if(prev == next) | |
return [p+1, n+1, true] |
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 table = [ | |
// ["_", "W", "_", "_"], | |
// ["_", "_", "_", "W"], | |
// ["_", "W", "_", "W"], | |
// ["_", "W", "_", "_"], | |
// ] | |
const table = [ | |
["G", "W", "_", "_","_", "W", "_", "_","_", "W", "_", "_","_", "W", "_", "_","_", "W", "_", "_","_", "W", "_", "_"], | |
["_", "_", "_", "W","_", "_", "_", "W","_", "W", "_", "W","_", "_", "_", "W","_", "W", "_", "W","_", "W", "_", "W"], |
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 scene = new THREE.Scene(); | |
var camera = new THREE.PerspectiveCamera( 50, window.innerWidth/window.innerHeight, 0.1, 1000 ); | |
camera.up = new THREE.Vector3(0,0,1); | |
var renderer = new THREE.WebGLRenderer(); | |
renderer.setSize( window.innerWidth, window.innerHeight ); | |
document.body.appendChild( renderer.domElement ); | |
var geometry = new THREE.BoxGeometry( 1, 1, 1 ); |
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
/* | |
GLSL distance functions and tesselation demo | |
Live demo at: https://www.shadertoy.com/view/4lccW8 | |
*/ | |
/* Euclidean distance */ | |
/* https://en.wikipedia.org/wiki/Euclidean_distance */ | |
float euclideanDistance(float p1, float p2) { | |
float d1 = (p1 - p2); | |
return sqrt(pow(d1, 2.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
a = window; | |
TIME_SWITCH_TIME = 4000; | |
DOWNLOAD_TIME = 2000; | |
function captureImage(time) { | |
document.createElement("img"); | |
var c = document.createElement("canvas"), | |
d = c.getContext("2d"), | |
e, |
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 Shiffman | |
// http://codingtra.in | |
// http://patreon.com/codingtrain | |
// Code for: https://youtu.be/QHEQuoIKgNE | |
import processing.pdf.*; | |
ArrayList<Circle> circles; | |
void setup() { |
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
id | name | |
---|---|---|
-1 | Northern Cyprus | |
-2 | Kosovo | |
-3 | Somaliland | |
4 | Afghanistan | |
8 | Albania | |
10 | Antarctica | |
12 | Algeria | |
16 | American Samoa | |
20 | Andorra |
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
/* Space out content a bit */ | |
body { | |
padding-top: 20px; | |
padding-bottom: 20px; | |
} | |
/* Everything but the jumbotron gets side spacing for mobile first views */ | |
.header, | |
.marketing, | |
.footer { |
NewerOlder