Skip to content

Instantly share code, notes, and snippets.

View I-NOZex's full-sized avatar
🎯
Focusing

Tiago Marques I-NOZex

🎯
Focusing
View GitHub Profile
@I-NOZex
I-NOZex / ad-slot-id.vue
Created July 5, 2023 07:43
Auto assign sequential numeric ID
<template>
<div>
<div>ad id: {{ adRequestIdSlot('dsk_lb') }}</div>
<div>ad id: {{ adRequestIdSlot('dsk_lb') }}</div>
<div>ad id: {{ adRequestIdSlot('dsk_lb') }}</div>
<!---->
<div>ad id: {{ adRequestIdSlot('dsk_rec') }}</div>
<div>ad id: {{ adRequestIdSlot('dsk_rec') }}</div>
<div>ad id: {{ adRequestIdSlot('dsk_rec') }}</div>
<div>ad id: {{ adRequestIdSlot('dsk_rec') }}</div>
@I-NOZex
I-NOZex / visualstudio2019Key.txt
Created August 18, 2020 13:00
Visual Studio 2019 Product Key
Visual Studio 2019 Product Key
[Please Star this gist]
Follow My Account --> https://github.com/ch-kashif @ch-kashif
Lets do a code together
Join Cloud Disk repository --> https://github.com/ch-kashif/CloudDisk
@I-NOZex
I-NOZex / deploy_tns_windows_to_mac.ps1
Last active July 1, 2020 13:56
[Nativescript iOS - deploy in remote Mac from a Windows machine]
ssh username@127.0.0.1 'mkdir -p ~/remote-folder-name';
(Get-ChildItem -File |Foreach-Object {scp $_.FullName username@127.0.0.1:~/remote-folder-name});
scp -r ./app username@127.0.0.1:~/remote-folder-name;
ssh -t username@127.0.0.1 "bash --login -c 'cd ~/remote-folder-name; npm install; tns run ios'";
@I-NOZex
I-NOZex / cloudSettings
Last active August 19, 2020 14:16
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-18T12:53:38.313Z","extensionVersion":"v3.4.3"}
@I-NOZex
I-NOZex / userContent.css
Last active July 3, 2019 23:32
Deezer dark mode using userContent file [Firefox Only] (info on how to use userContent.css file: https://davidwalsh.name/firefox-user-stylesheet )
/******* DEZEER DARK MODE *************/
#dzr-app .c0110:not(.c0124).c0123 {
color: #007FEB!important;
background-color: #272727!important;
border-color: #007FEB!important;
}
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@I-NOZex
I-NOZex / gurushots-analytics.js
Last active September 30, 2020 14:39
run it in dev tools on this page: https://gurushots.com/{YOUR_USER_NAME_HERE}/photos , and see how much % of the views are converted in votes, for each photo you have
$('[ng-bind="::image.votes"]').each(function(idx, stats){
var views = Number( $('[ng-bind="::image.views"]').eq(idx).text() );
var votes = Number( $(stats).text() );
$(stats.parentElement.parentElement).append('<div title="Ratio" class="gs-gallery__image__number"><i class="icon-views"></i> <span>' + ((votes*100)/views).toFixed(2) + '%</span></div>');
stats.parentElement.parentElement.style.transform = 'translate3d(0px, 0px, 0px)';
});
@I-NOZex
I-NOZex / Multidimensional.php
Created January 4, 2018 15:57 — forked from anhskohbo/Multidimensional.php
CMB2 With Multidimensional Support
<?php
class Multidimensional {
/**
* Return item in array with multidimensional support.
*
* @param array $array
* @param string $keys
* @param mixed $default
* @return string
@I-NOZex
I-NOZex / php.last-inserted-index.php
Created December 15, 2017 14:40 — forked from PabloVallejo/php.last-inserted-index.php
Get index of last inserted element in array
<?php
// Create array
$a = array();
// Add an item to it
$a[] = 1;
// Point to the last index of the array
end( $a );
@I-NOZex
I-NOZex / sass-header-tag.scss
Created February 23, 2017 16:14
SASS Snippet to target all header tags (from H1 to H6)
@for $index from 1 through 6 {
h#{$index}{
font: 32px/42px trajan-pro-1,trajan-pro-2;
}
}