Skip to content

Instantly share code, notes, and snippets.

View FuriosoJack's full-sized avatar
🏠
Trabajando desde casa

Juan Diaz FuriosoJack

🏠
Trabajando desde casa
View GitHub Profile
@cdmz
cdmz / verify-if-table-exists-in-database-wordpress.php
Created July 21, 2015 18:10
verify if table exists in database wordpress
<?php
include '../../../../wp-load.php';
global $wpdb;
$table_name = "wp_posts";
if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") == $table_name) {
//Your code here
}
@john-guerra
john-guerra / README.md
Last active July 9, 2025 22:11 — forked from kristw/index.html
GeoJson map of Colombia

Geo Json map of Colombia

Based on the Map of Thailand by Master Krist Wongsuphasawat, a simple map of Colombia using GeoJSON and D3.js

As in Krist example:

  • Each province is color-coded by the length of its name in English.
  • Hover each province to see text effects.
  • New font is chosen randomly every time you change the province.
@vratiu
vratiu / .bash_aliases
Last active July 23, 2025 00:50
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@whitfin
whitfin / WriteObjectFile.java
Created January 28, 2014 21:07
Simple class to write a JSON object to a file, and read it back into JSON. Useful for data storing on Android.
package com.zackehh.example;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import android.content.Context;