Skip to content

Instantly share code, notes, and snippets.

@jamesdeantv
jamesdeantv / node-and-npm-in-30-seconds.sh
Created January 3, 2021 13:17 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@jamesdeantv
jamesdeantv / database.rules.json
Created January 2, 2021 23:06 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@jamesdeantv
jamesdeantv / icon.png
Created September 27, 2020 01:09 — forked from danswick/icon.png
Save GeoJSON from Mapbox GL Draw
icon.png
[
{
"id": 0,
"title": "Mantra Radio",
"url": "http://s6.radioheart.ru:8012/live",
"illustration": "https://github.com/dharmarooms/dharmarooms.github.io/blob/master/data/radioData/Mantra%20Radio.png?raw=true"
},
{
"id": 1,
"title": "Chroma Radio Spa",
namespace SkylinesMod
{
public class EnableAchievements : IUserMod
{
public string Name
{
get { return "Enable Achievements"; }
}
public string Description
@jamesdeantv
jamesdeantv / crosslink.md
Created September 5, 2020 20:50 — forked from madjin/crosslink.md
Cross-Linking Virtual Worlds
{
"accessors": [
{
"bufferView": 3,
"byteOffset": 0,
"componentType": 5123,
"count": 314595,
"max": [56680],
"min": [0],
"name": "accessor_buffer_clothes_0",
{
"extensionsUsed": ["gl_avatar"],
"extensions": {
"gl_avatar": {
"type": "skeleton",
"skins": { "main": 1 },
"visibilityId2Name": [
"",
"skullcap",
"back neck",
@jamesdeantv
jamesdeantv / mapbox-building-pattern.js
Created October 7, 2019 01:46
Mapbox/Threebox custom layer building pattern
class Building {
constructor(map) {
this.map = map
}
add(data) {
let map = this.map
function assignUVs(geometry, len) {
geometry.computeBoundingBox()
const max = geometry.boundingBox.max
const min = geometry.boundingBox.min
@jamesdeantv
jamesdeantv / .block
Created September 25, 2019 20:19 — forked from almccon/.block
Mapbox routing demo (modified)
license: mit