Skip to content

Instantly share code, notes, and snippets.

View LC43's full-sized avatar
🏄‍♀️
Digital nomad

Pedro de Carvalho LC43

🏄‍♀️
Digital nomad
View GitHub Profile
@LC43
LC43 / functions.php
Created March 1, 2024 11:15
meta box
/** button actions */
function render_point_actions_meta_box( $post ) {
// Display the save button
$button = sprintf(
'<input type="submit" name="save_custom" id="save_custom" class="" value="%1$s">',
esc_html__( 'Save', 'iglobes' )
);
printf( '<div class="custom-save-button">%1$s</div>', $button );
@LC43
LC43 / world_timezones.geojson
Created December 11, 2023 08:24
GeoJSON world timezones ( edited from https://github.com/treyerl/timezones/tree/master ) - Interactive geo maps
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / wp-embed.css
Last active December 8, 2023 09:20
CSS for embedded wp content
.wp-embed .dashicons {
display:inline-block;
width:20px;
height:20px;
background-color:transparent;
background-repeat:no-repeat;
background-size:20px;
background-position:center;
transition:background .1s ease-in;
position:relative;
@LC43
LC43 / igm_collect_coordinates.html
Created December 6, 2023 07:10
Collect coordinates
<!DOCTYPE html>
<html>
<head>
<title>IGM - Collect Coordinates</title>
<script src="https://maps.googleapis.com/maps/api/js?key=<google-key>=initMap"
async defer></script>
<script>
var map;
var count = 1;
@LC43
LC43 / france-regions-overseas.geojson
Last active November 22, 2023 09:11
France - Regions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / admin_cols_filters.php
Last active November 29, 2023 14:06
show more columns: author, date and last edit: and and a new filter: Author:
<?php
/**
* *******
* Interactive Geo Maps user filter
* ********************************
*/
add_filter( 'manage_igmap_posts_columns', 'igmaps_cols', 11 );
function igmaps_cols( $columns ) {
@LC43
LC43 / us-arizona-pima.geojson
Created November 20, 2023 05:04
US Arizona Pima
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / Idaho-kootenai.geojson
Created November 17, 2023 01:34
Map US Idaho kootenai
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / geomaps-animated-strokes.js
Created October 15, 2023 20:37
geomaps animated markers - 2 colors, slow
.imapsCircle {
paint-order: stroke;
stroke-opacity:1;
stroke: blue; /* change with the stroke color you want */
animation: pulse-me 4s linear infinite;
}
@keyframes pulse-me {
0% {
stroke-opacity: 0;
@LC43
LC43 / igm_elements.css
Last active August 3, 2023 00:21
Selection of IGM CSS rules for elements in map
/* ## Tooltips */
/* tooltip : https://gist.github.com/carmoreira/9452878cfb3646e166896b0dbacd9afd */
.map_wrapper .imapsLabel foreignObject {
/* ## Markers */
/* round marker border/stroke : https://gist.github.com/carmoreira/a537b03698209953055ce8c5f31c224e */
.imapsCircle {
/* markers with colors : https://gist.github.com/carmoreira/a694ac63dcb0da95128dc53d2fa19368 */