Skip to content

Instantly share code, notes, and snippets.

View wertyoo's full-sized avatar

Nicolas Copia wertyoo

View GitHub Profile

HTML Source (Original HTML):

<div class="ad_box"><img src="some_ad.png" /></div>

HTML Source sent via JSON (Escaped JSON):

{ "json_property": "<div class=\"ad_box\"><img src=\"some_ad.png\" \/><\/div>" }
@wertyoo
wertyoo / raml-best-practices.md
Last active June 22, 2019 18:55
RAML v1.0 - Best Practices for Lamar APIs

NEEDS FORMATTING: Credit goes to NYU API Team found here

RAML Best Practices

General


  • Title and documentation must be defined.
  • RAML file name must be different from api.raml
  • Use RAML version 1.0
@wertyoo
wertyoo / iab-v1-taxonomy.json
Created June 15, 2019 23:57
JSON Lookup for IAB Taxanomy V1 - Content Categories
{
"IAB1": "Arts & Entertainment",
"IAB1-1": "Books & Literature",
"IAB1-2": "Celebrity Fan/Gossip",
"IAB1-3": "Fine Art",
"IAB1-4": "Humor",
"IAB1-5": "Movies",
"IAB1-6": "Music",
"IAB1-7": "Television",
"IAB2": "Automotive",
@wertyoo
wertyoo / asciidoc-syntax-quick-reference.adoc
Created January 21, 2019 17:19 — forked from mojavelinux/asciidoc-syntax-quick-reference.adoc
AsciiDoc Syntax Quick Reference (sample document)

AsciiDoc Syntax Quick Reference

@wertyoo
wertyoo / promises-cheat-sheet.md
Last active December 4, 2018 02:06
Notes on async operations
@wertyoo
wertyoo / MongoDB_Cheat_Sheet.md
Last active December 19, 2018 15:54
MongoDB Cheat Sheet

Local Mongo

  • Run mongod:
mongod --dbpath D:\NICK\Mongo\data --port 27017 --storageEngine wiredTiger
  • Create admin, site root users
@wertyoo
wertyoo / display-0.0.2.jsonc
Created November 19, 2018 20:49
Invetory with comments
{
"_id": "string", // set to mongo ObjectID
"_type": "string", // infer
"_display_name": "string", // infer
"_create_time": "datetime", // unsure
"_update_time": "datetime", // unsure
"id": "string", // good
"type": "string", // infer
"partner_display_ids": [ // need datastore
"string"
@wertyoo
wertyoo / wordpress-filters-cheat-sheet.md
Last active May 22, 2024 11:08
WordPress Filters Cheat Sheet

WordPress Filters Cheat Sheet

This cheat sheet explores a fundamental concept in WordPress development: filters.

In WordPress, filters enable developers to intercept and modify data as a WordPress page is loading, before sending it to the browser or saving it to the database.

Understanding how filters work isn’t all that easy, partly because the concept is difficult to visualize, and also because filters are often confused with WordPress actions. Yet, it’s an important concept to master because filters are one of the most common ways developers interact with WordPress.

For these reasons, this filter cheat sheet is ideal for those new to working with filters. This cheat sheet provides an in-depth understanding of what filters do and how they work, and provides a quick reference guide for using filters in WordPress development.

@wertyoo
wertyoo / DarkBlueDittoTheme.xml
Last active November 24, 2021 15:25
Ditto Clipboard Themes XML - Dark Blue Ditto Clipboard Theme
<Ditto_Theme_File Version="2" Author="Wertyoo" Notes="DarkBlue Theme">
<CaptionLeft>RGB(18,36,41)</CaptionLeft>
<CaptionRight>RGB(36,55,60)</CaptionRight>
<CaptionLeftTopMost>RGB(18,36,41)</CaptionLeftTopMost>
<CaptionRightTopMost>RGB(36,55,60)</CaptionRightTopMost>
<CaptionLeftNotConnected>RGB(18,36,41)</CaptionLeftNotConnected>
<CaptionRightNotConnected>RGB(36,55,60)</CaptionRightNotConnected>
@wertyoo
wertyoo / Advanced_SCSS.md
Created September 3, 2018 23:36 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso