Skip to content

Instantly share code, notes, and snippets.

View Pickachu's full-sized avatar
🔥
Destruindo tuto

Heitor Salazar Baldelli Pickachu

🔥
Destruindo tuto
View GitHub Profile
@Pickachu
Pickachu / plunker_on_iframe.html
Last active November 21, 2018 19:48
Render Plunker on iFrame
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<script type="text/javascript">
const regex = /[?&]([^=#]+)=([^&#]*)/g,
url = window.location.href,
@Pickachu
Pickachu / mixpanel_on_iframe.html
Last active March 8, 2019 21:06
Embeds for Metabolic Hackers community tracking
<html>
<head>
<style type="text/css">
html {
margin: 0;
overflow: hidden;
}
</style>
</head>
@Pickachu
Pickachu / genius_on_iframe.html
Last active November 19, 2018 17:54
Genius Embedding in an Iframe format
<head></head>
<body>
<script>
const regex = /[?&]([^=#]+)=([^&#]*)/g,
url = window.location.href,
params = {};
var match;
while(match = regex.exec(url)) {
params[match[1]] = match[2];
@Pickachu
Pickachu / controller.js
Last active October 5, 2015 00:08
Javascript Prototypal Programming
var controller = (function controller_declaration(library, library...) {
// Namespace de elementos com regras de negócio
var ... = {...}
// Controller da página em questao
var controller = {...}
// Roteador de ações efetuadas na página, geralmente para o controller
var router = {...}