Skip to content

Instantly share code, notes, and snippets.

Avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / launch.json
Created Dec 28, 2020
VSCode launch config for automatically starting two processes in node.js, client and server. Visual Studio Code, VS Code, launch.json
View 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 Dec 28, 2020
VSCode node.js launch config for automatically starting the web browser. Visual Studio Code, VS Code, launch.json
View 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 Dec 23, 2020
How to Rename Your "master" Branch to "main" on GitHub
View main.md

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 Dec 19, 2020
How to use A-Frame audio sound in iOS iPhone Safari mobile web browser.
View aframe.md

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.
View quiz5.txt
Challenges in VR
TOTAL POINTS 5
1.
Question 1
Which is the cheapest lighting effect to render?
1 point
@ Diffuse
View quiz3.txt
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 Nov 25, 2020
VR Applications quiz, Introduction to Virtual Reality
View Readme.md

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
Created Nov 24, 2020
VR HMDs and VR History quiz, Introduction to Virtual Reality
View Readme.md

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 Nov 7, 2020
[2020-03-09] Challenge #383 [Easy] Necklace matching https://jsfiddle.net/cy0tz28q/12/
View necklace.cpp
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 Oct 12, 2020
Playing Wumpus World with supervised learning using AI machine learning in R and caret. http://primaryobjects.github.io/wumpus
View wumpus-1.csv
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
You can’t perform that action at this time.