- welcome to the course
- no stupid questions
- who here at one point did not know what javascript is?
- musician, songwriter, generative artist
- been wriitng songs and to a lesser degree, releasing music since 2005
- started web dev in 2005
uniform float time; | |
varying vec2 vUv; | |
void main() { | |
vec3 color = vec3(1.0); | |
float sun = step(mod(vUv.y * 20. + time, 1.), -0.2 + 0.35 * vUv.y * 3.7); | |
color.x *= sun; | |
color.y *= sun * (0.6 + vUv.y - 0.7 ); | |
color.z = 0.; |
function _init() | |
cls() | |
print("stars") | |
t = 0 | |
stars = {} | |
for i=1,25 do | |
add(stars,agent.new(i)) | |
end | |
for s in all(stars) do | |
s:reset() |
server { | |
server_name example.com; | |
access_log /var/log/nginx/example.com.access.log; | |
error_log /var/log/nginx/example.com.error.log; | |
gzip on; | |
gzip_types text/css application/javascript application/json image/svg+xml; |
#!/usr/bin/env python | |
import socket,sys,subprocess,os,json,pygame,time,bs4,requests,random,fnmatch,urllib,tweepy,datetime,sqlite3 | |
from glob import glob | |
print 'dankbot is born...' | |
#establish working and database paths | |
homedir = '/home/pi/dankbot/' | |
dirsb = '/home/pi/soundboard/' | |
db_file = '/var/www/dank.db' |
class Agent { | |
float a; | |
float b; | |
Agent(float _a, float _b) { | |
a = _a; | |
b = _b; | |
} | |
// TO USE THIS: | |
import { useEffect, useState } from 'react' | |
import { FormInstance } from 'antd/lib/form' | |
type Props<T> = { | |
form: FormInstance<T> | |
id: string // some unique identifier that matches whatever you're editing | |
} |
import Axios from 'axios' | |
import React, { createContext, useContext } from 'react' | |
type Props = { | |
children: React.ReactNode | |
baseURL?: string | |
} | |
type Context = { | |
get: <T>(path: string) => Promise<T> |
impor { state } from './state' | |
button.onclick = () => { | |
console.log("state.count", state.count) | |
} |
import { updateChild } from '../utils' | |
export default () => | |
AFRAME.registerComponent('grabber', { | |
schema: { | |
hand: { type: 'string' }, | |
}, | |
init() { | |
console.log('grabber init', this.data.hand) | |
this.otherEl = null |