Skip to content

Instantly share code, notes, and snippets.

View mollymerp's full-sized avatar

Molly Lloyd mollymerp

View GitHub Profile
@mollymerp
mollymerp / sshfs-gcp-instance-osx.md
Last active January 10, 2024 14:52
How to mount a GCP compute instance filesystem locally using `sshfs` on MacOS

How to mount a GCP compute instance filesystem locally using sshfs

This guide assumes that:

  • you already have an instance set up on GCP that you want to mount locally
  • the GCP CLI (gcloud) is installed on your local machine
  • you have authenticated locally to your google account gcloud auth login
  1. make sure your gcloud config is correct for the instance you're trying to access:
<!DOCTYPE html>
<html>
<head>
<title>Frame rate capture demo</title>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/v0.47.0/mapbox-gl.css' />
<style>
body { margin: 0; padding: 0; }
html, body, #map { height: 100%; width: 100%;}

openGL misc

  • GPU is specialized hardware for parellelizing calls to pixels?
  • switching shaders is the most expensive operation in OpenGL after compiling shaders

programmable rendering pipeline

vertex shader

data:

  • plane routes: origin, destination airports (lat, lng) - only direct flights
  • data: timezone changes on route (origin and destination timezones, airport identification data (name, airport code)

data munging steps:

  • add field names to both csvs from source
  • initialize your folder, initialize package.json (npm init)
  • set up node script with required modules
  • fs (included, 'file system') var fs = require('fs')

Issue #3089

Goal: Change the icons in the Navigation control that are currently inside div elements to be img elements.

  • change this line to create an img instead of a div.
  • add the current background-image url as the new img tag's src property (e.g )
  • edit the css to target an img instead of a div and remove the background-image property.