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 express = require('express'); |
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
#!/usr/bin/python3 | |
import cgitb | |
cgitb.enable | |
from helper import showData | |
import sqlite3 | |
con = sqlite3.connect('database/bookshelf.db') |
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
/* | |
* transform: A jQuery cssHooks adding cross-browser 2d transform capabilities to $.fn.css() and $.fn.animate() | |
* | |
* limitations: | |
* - requires jQuery 1.4.3+ | |
* - Should you use the *translate* property, then your elements need to be absolutely positionned in a relatively positionned wrapper **or it will fail in IE678**. | |
* - transformOrigin is not accessible | |
* | |
* latest version and complete README available on Github: | |
* https://github.com/louisremi/jquery.transform.js |
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
<html> | |
<head> | |
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script> | |
<script src="https://unpkg.com/[email protected]/dist/aframe-aabb-collider-component.min.js"></script> | |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | |
<script type="text/javascript"> | |
function checkpoint() { | |
console.log('hit the checkpoint'); | |
} |
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
AFRAME.registerComponent('clock', { | |
tick: function(time, timeDelta) { | |
var milliseconds = Math.round(time % 1000); | |
var seconds = Math.round(time / 1000); | |
seconds = seconds == 60 ? 0 : seconds; | |
var minutes = Math.round(seconds / 60); | |
$('#time-text-ms').attr('value', milliseconds); | |
$('#time-text-s').attr('value', seconds); | |
$('#time-text-m').attr('value', minutes); |
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; | |
function start(){ | |
scene = $('a-scene'); | |
zombie = $('.dummy-creeper'); | |
addCreeper(); | |
} | |
function build(event) { | |
var clickedPosition = event.detail.intersection.point; | |
var position = `${clickedPosition.x} ${clickedPosition.y} ${clickedPosition.z}`; |
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
#!/usr/bin/python3 | |
print("Content-Type: text/html \n") | |
import sqlite3 | |
import requests | |
from random import randint | |
def create_gradebook(): | |
""" |
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
#!/usr/bin/python3 | |
import cgitb | |
cgitb.enable() | |
print("Content-type:text/html") | |
print() | |
######## E X E R C I S E S ######### | |
# |
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
#!/usr/bin/python3 | |
import cgitb | |
cgitb.enable() | |
print("Content-Type: text/html \n") | |
import sqlite3 | |
connection = sqlite3.connect('database/codewizards.db') | |
sql = connection.cursor() |
OlderNewer