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 / .bash_git.sh
Created May 16, 2024 09:41
.bash git function
#!/bin/bash
function reorient_usage() {
e=$(printf "\e")
RESET="$e[0m"
RED="$e[1;37;41m"
BOLD="$e[1m"
UNBOLD="$e[21m"
RED="$e[1;37;41m"
@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
Loading
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
Loading
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
Loading
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
Loading
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;