Skip to content

Instantly share code, notes, and snippets.

View gabrieldarezzo's full-sized avatar
🧙‍♂️
How deep 🐇 hole goes???

Gabriel Darezzo gabrieldarezzo

🧙‍♂️
How deep 🐇 hole goes???
  • São Paulo - SP
View GitHub Profile
@gabrieldarezzo
gabrieldarezzo / twitch.gif
Last active September 10, 2019 19:43
twitch.tv/gabrieldarezzo
twitch.gif
```sql
CREATE TABLE products (
product_id INT(11) PRIMARY KEY AUTO_INCREMENT,
product_desc VARCHAR(250) NOT NULL UNIQUE,
imagesrc VARCHAR(250)
);
SELECT
CONCAT('INSERT INTO products (product_id, product_desc) VALUES (', @rownum, ',\'', product_id, '\');') AS sql_stmt,
CONCAT('UPDATE local set product_id = ', @rownum, ' WHERE product_id = \'', product_id, '\';') AS sql_stmt,
@gabrieldarezzo
gabrieldarezzo / gist:22093faedd4d01a98283896b9083485e
Created November 30, 2016 00:34
Example of shortcode for inLocation (Plugin Wordpress)
[inlocation_map id="1"]