Skip to content

Instantly share code, notes, and snippets.

View kvnol's full-sized avatar

Kevin Oliveira kvnol

View GitHub Profile
@kvnol
kvnol / remove-arkos-dotfiles.md
Created February 6, 2024 12:38
Remove dotfiles in ArkOS Roms Folder

Open the Terminal app and type:

sudo dot_clean -mn /Volumes/SD/<console>

where /Volumes/SD is the path to your SD card and `` is the name of the console (eg: snes)

@kvnol
kvnol / migrating-wordpress-to-strapi.md
Last active April 16, 2024 17:29
Migrating WordPress to Strapi V4

Migrating WordPress to Strapi V4

Example using albums post type, change for your post type.

Route

/* src/api/albums/routes/01-import.js */

module.exports = {
:root {
--ion-color-primary: #0053d4;
--ion-color-primary-rgb: 0, 83, 212;
--ion-color-primary-contrast: #ffffff;
--ion-color-primary-contrast-rgb: 255, 255, 255;
--ion-color-primary-shade: #003b9c;
--ion-color-primary-tint: #0062ff;
--ion-color-secondary: #00cc99;
@kvnol
kvnol / _rem.scss
Created October 28, 2021 19:07
rem sass mixin
$rem-baseline: 16px !default;
$rem-fallback: false !default;
$rem-px-only: false !default;
@use 'sass:math';
@function rem-separator($list, $separator: false) {
@if $separator== 'comma' or $separator== 'space' {
@return append($list, null, $separator);
}
@import "./info";
.dd-m-post {
// margin-top: rem(27px);
margin-bottom: rem(27px);
@media (min-width: $tablet) {
// margin-top: rem(55px);
margin-bottom: rem(55px);
}
<h2>Headings</h2>
<h1>Header one</h1>
<h2>Header two</h2>
<h3>Header three</h3>
<h4>Header four</h4>
<h5>Header five</h5>
<h6>Header six</h6>
<h2>Blockquotes</h2>
<p>Single line blockquote:</p>
<blockquote><p>Stay hungry. Stay foolish.</p></blockquote>
@kvnol
kvnol / gulpfile.js
Created June 17, 2021 14:28
Exemplo de arquivo gulpfile
'use strict';
// Dependencies
const { gulp, series, parallel, src, dest, watch } = require('gulp');
const concat = require('gulp-concat');
const babel = require('gulp-babel');
const uglify = require('gulp-uglify');
const sass = require('gulp-sass');
const sourcemaps = require('gulp-sourcemaps');
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
{"lastUpload":"2019-10-21T14:25:29.950Z","extensionVersion":"v3.4.3"}
// BEM.min.js v1.0.2
function BEM(element,patchBEM){if(element==undefined){element=$('[bem]')};if(patchBEM==undefined){patchBEM=getPatchBEM(element)};element.each(function(){if(typeof $(this).attr('bem')!='undefined'){patchBEM=getPatchBEM($(this));$(this).removeAttr('bem')};let thisChildrens=$(this).children();thisChildrens.each(function(){let thisClass=$(this).attr('class');if(typeof thisClass!='undefined'){if(!!thisClass.match(/^__/)){let thisBEMName='';for(i=0;i<thisClass.length;i++){thisLetter=thisClass[i];if(!thisLetter.match(/\s/)){thisBEMName+=thisLetter}else{break}};$(this).attr('class',thisClass.replace(thisBEMName,patchBEM+thisBEMName));let newPatchBEM=patchBEM+thisBEMName;BEM($(this),newPatchBEM);return!0}};BEM($(this),patchBEM)})})};function getPatchBEM(element){let thisClass=element.attr('class');let thisBEMName='';for(i=0;i<thisClass.length;i++){thisLetter=thisClass[i];if(!!!thisLetter.match(/\s/)){thisBEMName+=thisLetter}else{break}};patchBEM=thisBEMName;return patchBEM}