Breakpoint | Description |
---|---|
< 481px | Mobile devices |
481px — 768px | iPads, Tablets |
769px — 1024px | Small screens, laptops |
1025px — 1200px | Desktops, large screens |
1201px and greater | Extra large screens, TV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ValidaCPF(cpfEnviado) { | |
Object.defineProperty(this, "cpfLimpo", { | |
enumerable: true, | |
get: function() { | |
return cpfEnviado.replace(/\D+/g, ''); | |
} | |
}); | |
} | |
ValidaCPF.prototype.valida = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <Windows.h> | |
#include <TlHelp32.h> | |
DWORD findProcessID(const std::wstring_view processName); | |
int main() | |
{ | |
std::cout << findProcessID(L"notepad.exe") << '\n'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def make_pagination(current: int, last: int, delta: int=2) -> list: | |
pagination_range = [] | |
pagination_range_with_dots = [] | |
left = None | |
for i in range(1, last + 1): | |
if (i == 1 or i == last | |
or i >= current - delta | |
and i < current + delta + 1): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
parser = argparse.ArgumentParser( | |
description='Calculates prime numbers until the nth element', | |
prog='primes', | |
epilog='Made with love by github.com/richardcss' | |
) | |
parser.add_argument( | |
'n', |