Skip to content

Instantly share code, notes, and snippets.

View daniel-schroeder-dev's full-sized avatar

Daniel Schroeder daniel-schroeder-dev

  • Qualus
  • New Orleans, LA
View GitHub Profile
@daniel-schroeder-dev
daniel-schroeder-dev / codewizards.sql
Created December 6, 2020 15:04
H14 - API & Database - Lesson 8 - SQL
DROP TABLE IF EXISTS students;
CREATE TABLE IF NOT EXISTS students(
name TEXT,
course TEXT,
progress INTEGER,
instructor TEXT
);
DROP TABLE IF EXISTS students;
@daniel-schroeder-dev
daniel-schroeder-dev / chase.html
Created December 6, 2020 21:57
Chaseg Collide Thing
<html>
<head>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/n5ro/aframe-physics-system@v4.0.1/dist/aframe-physics-system.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.1/dist/aframe-extras.min.js"></script>
</head>
<body>
<a-scene>
<a-entity kinematic-body="radius: 1.5" wasd-controls="acceleration:300" look-controls>
<a-camera look-controls="enabled:false" wasd-controls="enabled: false"></a-camera>
AFRAME.registerComponent('updown', {
init: function() {
var camera = document.querySelector('a-camera');
document.body.addEventListener('keydown', e => {
if (e.key == 'ArrowUp') {
camera.object3D.position.y += 1;
} else if (e.key == 'ArrowDown') {
camera.object3D.position.y -= 1;
}
})
@daniel-schroeder-dev
daniel-schroeder-dev / updown.html
Created December 9, 2020 00:06
Bill HTML updown
<html>
<head>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script type="text/javascript" src="updown.js"></script>
</head>
<body>
<a-scene updown>
<a-camera wasd-controls="acceleration: 1500"></a-camera>
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></a-box>
<a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere>
@daniel-schroeder-dev
daniel-schroeder-dev / stuff.py
Created December 12, 2020 01:51
Lincolnd Intro Prog Py 1
import random
betaHQ = addText('Huston, this is BetaHQ. You have requested emergency landing, code is 111', 25)
positionEl (betaHQ, 50, 20)
btn = addButton('Push to Enter Landing Code')
def testLuck():
badLuck = 100
if badLuck < 50:
@daniel-schroeder-dev
daniel-schroeder-dev / more-stuff.html
Created December 12, 2020 02:15
Lincoln Part deuce
<html><head> <link href="rocket.css" rel="stylesheet"/> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script><link href="https://fonts.googleapis.com/css?family=Lato|Shadows+Into+Light+Two|Playfair+Display+SC" rel="stylesheet"> <title>Spaceship</title></head><body><script src="//projects.codewizardshq.com/dist/cwhq-skulpt.js" type="text/javascript"></script><div id="errorMessage"></div> <div id='canvas'> <div class="container" id="containerID"><p id="error"></p><div id="messages"> </div><div id="launchTime"> </div></div><img id="foreground" src="skyfg.png"></div> <script>
function landRocket() {
document.querySelector('#input0').value = 'go';
document.querySelector('#button1').click();
console.log(rocket)
rocket.descending = true;
descend(1)
killIgnition()
}
path=intro_prog_py_2%2FPP%2Fspaceship.html&data=%3Chtml%3E%3Chead%3E%3Clink%20href%3D%22spaceship.css%22%20rel%3D%22stylesheet%22%20%2F%3E%3Cscript%20src%3D%22https%3A%2F%2Fcode.jquery.com%2Fjquery-3.1.1.min.js%22%3E%3C%2Fscript%3E%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DAudiowide%22%20rel%3D%22stylesheet%22%3E%3Ctitle%3ESpaceship%3C%2Ftitle%3E%3C%2Fhead%3E%3Cbody%3E%3Cscript%20src%3D%22%2F%2Fprojects.codewizardshq.com%2Fdist%2Fcwhq-skulpt.js%22%20type%3D%22text%2Fjavascript%22%3E%20%3C%2Fscript%3E%3Cdiv%20id%3D%22errorMessage%22%3E%3C%2Fdiv%3E%3Cdiv%20id%3D'canvas'%3E%3C%2Fdiv%3E%3Caudio%20src%3D%22music.mp3%22%20id%3D%22bgMusic%22%20loop%20autoplay%3E%3C%2Faudio%3E%20%C2%A0%3Cscript%3Evar%20audioTag%20%3D%20document.getElementById(%22bgMusic%22)%3B%20audioTag.volume%20%3D%200.2%3B%0A%2F******************************************************************************%0A*%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%20%20P%20Y%20T%20H%20O%20N%20%
@daniel-schroeder-dev
daniel-schroeder-dev / index.html
Created December 12, 2020 21:32
Lincolnd Working Rocket
<html><head> <link href="rocket.css" rel="stylesheet"/> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script><link href="https://fonts.googleapis.com/css?family=Lato|Shadows+Into+Light+Two|Playfair+Display+SC" rel="stylesheet"> <title>Spaceship</title></head><body><script src="//projects.codewizardshq.com/dist/cwhq-skulpt.js" type="text/javascript"></script><div id="errorMessage"></div> <div id='canvas'> <div class="container" id="containerID"><p id="error"></p><div id="messages"> </div><div id="launchTime"> </div></div><img id="foreground" src="skyfg.png"></div> <script>
/******************************************************************************
* P Y T H O N C O D E B E L O W
*******************************************************************************/
/* HOMEWORK: Write down the steps below to land a rocket */
var prog=
@daniel-schroeder-dev
daniel-schroeder-dev / index.html
Created December 13, 2020 21:29
Deetya Stuff
<html>
<head>
<script type="text/javascript" src="https://unpkg.com/jquery@3.5.1/dist/jquery.js"></script>
<script src="https://aframe.io/releases/1.1.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-aabb-collider-component@3.1.0/dist/aframe-aabb-collider-component.min.js"></script>
<script type="text/javascript" src="door-collide-restart.js"></script>
<script type="text/javascript" src="door-collide-continue.js"></script>
</head>
<body>
<a-scene>
function restart() {
console.log('restarting')
}
AFRAME.registerComponent('door-collide-restart', {
init: function() {
$(this.el).on('hitstart', restart)
},
});