Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / launch.json
Created December 28, 2020 16:57
VSCode launch config for automatically starting two processes in node.js, client and server. Visual Studio Code, VS Code, launch.json
{
// VSCode launch.json for starting two processes (a server and a client) via an npm script.
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "server",
"program": "${workspaceFolder}/app.js"
},
@primaryobjects
primaryobjects / launch.json
Last active December 28, 2020 16:56
VSCode node.js launch config for automatically starting the web browser. Visual Studio Code, VS Code, launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
@primaryobjects
primaryobjects / main.md
Last active December 23, 2020 20:55
How to Rename Your "master" Branch to "main" on GitHub

How to Rename Your "master" Branch to "main" on GitHub

The following steps may be used to rename your "master" branch to "main" on GitHub.

Use the following commands from a command-prompt.

  1. git checkout master
  2. git branch -m main
  3. git push origin -u main
@primaryobjects
primaryobjects / aframe.md
Last active May 14, 2023 01:03
How to use A-Frame audio sound in iOS iPhone Safari mobile web browser.

A-Frame Audio Sound in iOS

The iPhone has certain restrictions in playing audio in the web browser. This example shows how to successfully play audio on mobile.

The sound effect will play when the camera moves within a certain distance of the target object. The user will need to tap the iPhone screen (once) to allow sounds to play.

Quick Start

  1. Add script.js to your project.
Challenges in VR
TOTAL POINTS 5
1.
Question 1
Which is the cheapest lighting effect to render?
1 point
@ Diffuse
See also http://www0.cs.ucl.ac.uk/teaching/VE/Slides/2009-2010/04_presence2.pdf
The Three Illusions of Virtual Reality
TOTAL POINTS 15
1.
Question 1
In an ideal VR system, we should simulate all five senses (vision, sound, smell, haptic, and taste). Which of these five senses are currently supported by a standard HMD system (for instance, HTC VIVE or Oculus with controllers)?
1 point
@primaryobjects
primaryobjects / Readme.md
Created November 25, 2020 03:52
VR Applications quiz, Introduction to Virtual Reality

VR Applications TOTAL POINTS 5 1. Question 1 Which of the following statements are true about applications in Virtual Reality? 1 point

@ We can be somewhere else in VR

@primaryobjects
primaryobjects / Readme.md
Last active May 8, 2023 05:18
VR HMDs and VR History quiz, Introduction to Virtual Reality

VR HMDs and VR History TOTAL POINTS 15 1. Question 1 We define VR as the experience "in which the user is effectively immersed in a responsive virtual world. This implies user dynamic control of viewpoint." Who gave this definition in which year? 1 point

Ivan Sutherland, 1968

@primaryobjects
primaryobjects / necklace.cpp
Last active March 11, 2021 01:52
[2020-03-09] Challenge #383 [Easy] Necklace matching https://jsfiddle.net/cy0tz28q/12/
bool same_necklace(string a, string b){
if(a.size() != b.size()) return false;
a += a;
size_t index = a.find(b);
if(index != string::npos) return true;
return false;
}
@primaryobjects
primaryobjects / wumpus-1.csv
Last active October 12, 2020 21:12
Playing Wumpus World with supervised learning using AI machine learning in R and caret. http://primaryobjects.github.io/wumpus
room_n room_e room_s room_w breeze stench glitter move
unvisited unvisited wall wall false false false north
visited unvisited wall wall false false false east
unvisited unvisited visited wall false false false north
unvisited visited visited wall false false false north
visited unvisited visited wall false false false east
unvisited unvisited visited wall true false false south
unvisited unvisited visited wall false true false south
unvisited unvisited visited wall true true false south
unvisited unvisited visited wall false false true north