Skip to content

Instantly share code, notes, and snippets.

View ELI7VH's full-sized avatar
💭
Doing a thing.

Elijah Lucian ELI7VH

💭
Doing a thing.
View GitHub Profile
@ELI7VH
ELI7VH / fragmentShader.glsl
Last active July 1, 2019 06:46
Outrun Sun Fragment Shader
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()
@ELI7VH
ELI7VH / example-nginx-react-router-express-api-sockets-https.conf
Last active October 6, 2019 18:42
Example nginx create-react-app react router api socket.io with https
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;
@ELI7VH
ELI7VH / dankbot.py
Created May 13, 2020 19:15
The Dankest of twitch bots!!
#!/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

intro

  • welcome to the course
  • no stupid questions
  • who here at one point did not know what javascript is?

who am i

  • musician, songwriter, generative artist
    • been wriitng songs and to a lesser degree, releasing music since 2005
  • started web dev in 2005