Skip to content

Instantly share code, notes, and snippets.

View geografa's full-sized avatar
🤓
Open to work

Rafa Gutierrez geografa

🤓
Open to work
View GitHub Profile
@geografa
geografa / newZDTicket.js
Created October 27, 2023 20:02
Create three new tickets using Node Zendesk and delete after 30 seconds
#!/usr/bin/env node
// this creates three temporary tickets and then deletes them after 30 seconds
const process = require('node:process');
const zd = require('node-zendesk');
const exampleConfig = require('./exampleConfig');
const client = zd.createClient({
username: process.env.ZENDESK_TEST_USERNAME || exampleConfig.auth.username,
token: process.env.ZENDESK_TEST_TOKEN || exampleConfig.auth.token,
@geografa
geografa / index.html
Last active April 29, 2022 19:03
tunnels-munich
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Add a GeoJSON line</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
@geografa
geografa / index.html
Created May 2, 2018 20:22
Mapbox GL JS Marker Blip
<div id='map'></div>
@geografa
geografa / countdown-clock.markdown
Created October 25, 2016 00:43
Countdown Clock
@geografa
geografa / index.html
Created August 19, 2016 19:19
geolocation
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<html>
<head>
<meta charset=utf-8 />
<title>Your nearest cup of coffee</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/plugins/turf/v1.3.0/turf.min.js'></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.2.3/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.2.3/mapbox.css' rel='stylesheet' />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
@geografa
geografa / index.html
Created October 13, 2014 19:47
circle
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>A simple map</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.0.0/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.0.0/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@geografa
geografa / index.html
Last active August 29, 2015 14:07
Peninsula Park KAP, Portland, Oregon 2010.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Peninsula Park KAP, Portland, Oregon 2010</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@geografa
geografa / index.html
Last active August 29, 2015 14:06
Remove tooltip
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Remove tooltip</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.2/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }