Skip to content

Instantly share code, notes, and snippets.

View artivilla's full-sized avatar
casting...

Arti Villa artivilla

casting...
View GitHub Profile
```
// generate random stars in the scene
function addStar() {
const geo = new THREE.SphereGeometry(0.25, 24, 24)
const mat = new THREE.MeshStandardMaterial({color: 0xffffff}) // standard responds to lights in the scene
const s = new THREE.Mesh(geo, mat)
const [x,y,z] = Array(3).fill().map(() => THREE.MathUtils.randFloatSpread(100)) // numbers between 0-100
s.position.set(x,y,z)
scene.add(s)
}
@artivilla
artivilla / cloudSettings
Last active July 21, 2021 23:17
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-07-21T23:17:55.269Z","extensionVersion":"v3.4.3"}
@artivilla
artivilla / index.html
Last active November 29, 2018 07:21
JS Binpromise bin fun// source https://jsbin.com/jivusuz
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="promise bin fun">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
@artivilla
artivilla / installation.md
Created June 16, 2018 05:31
Setup MYSQL Oracle v Docker

Setup Docker for Mac

Useful Resources to learn: A Beginner-Friendly Introduction to Containers, VMs and Docker An Introduction to Docker Differences between Oracle mysql and mysql: Oracle and MySQL Compared

  1. Create a docker account: Docker - Build, Ship, and Run Any App, Anywhere
  2. Install Docker CE for Mac (FREE) (what you use to interact with docker from the command line or mac app): Docker Store
  3. Run docker for mac and login
  4. Follow instructions here line by line to learn how to use docker via the command line: Get started with Docker for Mac | Docker Documentation
@artivilla
artivilla / keybase.md
Created October 8, 2017 20:22
keybase.md

Keybase proof

I hereby claim:

  • I am artivilla on github.
  • I am artivilla (https://keybase.io/artivilla) on keybase.
  • I have a public key ASDv4ViN3g_0ACPsa2QlA1riaTgY0WntJ3w-Dbog2fe68Ao

To claim this, I am signing this object:

@artivilla
artivilla / git
Created August 3, 2017 02:21
useful-commands
## Managing tags
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@artivilla
artivilla / engagement.js
Last active March 11, 2020 14:39
metrics
Engagement
User engagement levels can vary depending on the app or service.
It could vary from daily to monthly visits, but it also relates to the depth and breadth of usage across the various touch points.
DAU/MAU
Daily active users/ Monthly active users. This metric is used to measure the depth of engagement of a company's users.
Example: While the monthly user count was enormous, the DAU over MAU revealed that most of those users only log in sporadically.
Mobile Retention Rates
~80% of users are lost in the first month.
@artivilla
artivilla / git
Last active April 5, 2017 02:56
git
Refs: https://gist.github.com/hofmannsven/6814451
Remotes
Show tracked / untracked info for local branches
$git remote -vv
Clean up traked info for remote branches
$git remote prune <remote>
To update your local branch with remote
Array mutations returning a new array
Adding item to an array (list, item)
return [...list, item];
Remove item from index (list, index)
return list
.slice(0,index).concat(list.slice(index+1));
return [...list.slice(0, index),