now
// easy peasy deploysreact
// pleasurable codingparcel-bundler
//easy packaging.
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
[victor@ip-172-26-8-125 html]$ drush sql:sync @live @self --debug | |
[preflight] Config paths: /var/www/html/vendor/drush/drush/drush.yml | |
[preflight] Alias paths: /var/www/html/web/drush/sites,/var/www/html/drush/sites | |
[preflight] Commandfile search paths: /var/www/html/vendor/drush/drush/src,/var/www/html/drush | |
[info] Starting bootstrap to none [0.68 sec, 2.93 MB] | |
[info] Drush bootstrap phase 0 [0.68 sec, 2.93 MB] | |
[info] Try to validate bootstrap phase 0 [0.68 sec, 2.93 MB] | |
[info] Executing: ssh -o PasswordAuthentication=no [email protected] '/var/www/html/vendor/bin/drush core:status --fields=db-name --format=json --uri=http://www.law.uga.edu' [0.69 sec, 3.13 MB] | |
[info] Executing: /var/www/html/vendor/bin/drush core:status --fields=db-name --format=json --uri=default [1.9 sec, 3.13 MB] | |
[info] Executing: ssh -o PasswordAuthentication=no [email protected] '/var/www/html/vendor/bin/drush core:status --fields=db-name --format=json --uri=http://www.law.uga.edu' [2.55 sec, 3.13 MB] |
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
// ENTITIES | |
let counter = 0 | |
let entities = new Set() | |
/** | |
* Creates a new entity and returns its id | |
* @returns {number} id of the new entity | |
*/ | |
export function makeEntity(){ |
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
use bevy::math::{ Vec3 }; | |
#[derive(Debug, Clone, Copy, PartialEq)] | |
/// an axist aligned bounding box in 3d space | |
pub struct BoundingBox { | |
pub center: Vec3, | |
pub half_extents: Vec3, | |
} | |
impl BoundingBox { |
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
export const makeSignal = () => { | |
const subscriptions = new Map() | |
const signal = { | |
get size () { | |
return subscriptions.size | |
}, | |
subscribe (listenerFn) { | |
if (subscriptions.has(listenerFn) === false) { | |
if (typeof listenerFn === 'function') { |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// these are my Development Clown Colors, please change them to match your school's brand guide. | |
$unpressedBackgroundColor: gray; | |
$unpressedHoverBackgroundColor: gold; | |
$unpressedTextColor: black; | |
$pressedBackgroundColor: red; | |
$pressedHoverBackgroundColor: blue; | |
$pressedTextColor: white; |
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
// see: https://kentcdodds.com/blog/implementing-a-simple-state-machine-library-in-javascript | |
// mine is different, but that's where I got the original logic. | |
// is this an object? | |
const isObject = something => { | |
if(typeof something === 'object' && something){ | |
return true | |
}else{ | |
return false |
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
import React, { useEffect, useRef } from 'react' | |
import { useRequestAnimationFrame } from '../hooks/useRequestAnimationFrame' | |
const getDPR = () => window.devicePixelRatio || 1.0 | |
export const Canvas = ({ | |
onRender, | |
contextType = '2d', | |
idealFPS = 60 | |
}) => { |
NewerOlder