Skip to content

Instantly share code, notes, and snippets.

View JohnyNogueira's full-sized avatar
🎯
Focusing

Johny Nogueira JohnyNogueira

🎯
Focusing
View GitHub Profile
default-src 'none';
frame-src 'self' vars.hotjar.com;
script-src 'self' 'unsafe-inline' script.hotjar.com static.hotjar.com www.googletagmanager.com;
style-src 'self' 'unsafe-inline';
font-src 'self' use.typekit.net fonts.gstatic.com fonts.googleapis.com;
img-src 'self' data:;
connect-src 'self' https://cognito-idp.us-east-1.amazonaws.com https://www.google-analytics.com https://www.googletagmanager.com https://static.hotjar.com https://script.hotjar.com https://in.hotjar.com/;
style-src-elem data: 'self' 'unsafe-inline' www.googletagmanager.com fonts.googleapis.com fonts.gstatic.com in.hotjar.com;
@JohnyNogueira
JohnyNogueira / index.js
Created September 2, 2018 00:26
js sub array
const xls = [[null],["Alimentação"],["Alimentação"],[null],["Supermercados, Mercearias"],[null],[null],["Supermercados, Mercearias"],["Alimentação","Animais",null],[null,null,"Saude",null,null],[null]];
let arrayJoin = [];
xls.filter((item) => arrayJoin.push(...item));
let finalArray = [...new Set(arrayJoin)].filter((item) => item);
@JohnyNogueira
JohnyNogueira / html
Created November 13, 2015 22:22
Materialize select
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<title>blablabla</title>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.2/css/materialize.min.css">
@JohnyNogueira
JohnyNogueira / Nested ng-repeat counter.markdown
Created October 23, 2015 17:11
Nested ng-repeat counter