Skip to content

Instantly share code, notes, and snippets.

View iPublicis's full-sized avatar

Lopo iPublicis

View GitHub Profile
@chrisjlee
chrisjlee / media-queries.scss
Last active January 6, 2024 12:36
All Media Queries breakpoints
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ }
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
@teethnclaws
teethnclaws / index.html
Created March 5, 2019 02:27
JS Bin align-content // source https://jsbin.com/zugemav
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="align-content">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.container{
display: flex;
@webdados
webdados / multibanco_ifthen_valid_callback_pending_status.php
Created April 5, 2019 16:17
Allowed pending status for ifthenpay's Multibanco and MB Way callbacks
<?php
add_filter( 'multibanco_ifthen_valid_callback_pending_status', 'ifthen_valid_callback_pending_status' );
add_filter( 'mbway_ifthen_valid_callback_pending_status', 'ifthen_valid_callback_pending_status' );
function ifthen_valid_callback_pending_status( $status ) {
$status[] = 'wc-on-hold'; //Add "wc-on-hold"
$status[] = 'wc-pending'; //Add "wc-pending"
return $status;
}
@0xdevalias
0xdevalias / converting-json-to-openapi-swagger-spec.md
Created June 2, 2023 01:09
Exploring tools that allow converting a JSON response automagically into an OpenAPI / Swagger spec.

Converting JSON to OpenAPI / Swagger spec

Exploring tools that allow converting a JSON response automagically into an OpenAPI / Swagger spec.

Test JSON Response

{
    "accounts": {
        "default": {