This file contains 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
/* | |
* Stripe WebGl Gradient Animation | |
* All Credits to Stripe.com | |
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and | |
* commented out for now. | |
* https://kevinhufnagl.com | |
*/ |
This file contains 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
const menuItems = [ | |
{}, | |
{} | |
] | |
const objects = ["fields", "icon"] | |
const fields = [...objects, "title", "slug"] | |
const cleanupJSON = (list: any) => { | |
const json: any = {} |
This file contains 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 React from "react" | |
// import 'as' alias to prevent naming conflicts | |
import { Provider as NextAuthProvider } from 'next-auth/client' | |
import { Provider as ReduxProvider } from 'react-redux' | |
export default function App ({ Component, pageProps }) { | |
return ( | |
<ReduxProvider> | |
<NextAuthProvider options={{ ... }}> | |
<Component {...pageProps} /> |
This file contains 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
version: "3" | |
services: | |
strapi: | |
container_name: strapi | |
image: strapi/strapi | |
environment: | |
- DATABASE_CLIENT=postgres | |
- DATABASE_HOST=db | |
- DATABASE_PORT=5432 | |
- DATABASE_NAME=strapi |
This file contains 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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> | |
<!-- Download from here: http://imakewebthings.com/jquery-waypoints/ --> | |
<script src="https://raw.githubusercontent.com/imakewebthings/jquery-waypoints/master/waypoints.js"></script> | |
<style type="text/css"> | |
/* A box that is 500px tall */ | |
.content { | |
height: 500px; |
This file contains 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
var list = document.querySelectorAll('[data-tooltip-content="Fjern"]'); | |
for (var i = 0; i < list.length; i++) { | |
list[i].click(); | |
} |
This file contains 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
/** | |
* @param array $array | |
* @param string $child | |
* @return array | |
*/ | |
public function find_child_array_values_by_key(array $array, string $child): array | |
{ | |
foreach ( | |
new RecursiveIteratorIterator( | |
new RecursiveArrayIterator($array), |
This file contains 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
Fonte: http://gohorseprocess.wordpress.com | |
1- Pensou, não é XGH. | |
XGH não pensa, faz a primeira coisa que vem à mente. Não existe | |
segunda opção, a única opção é a mais rápida. | |
2- Existem 3 formas de se resolver um problema, a correta, a errada e | |
a XGH, que é igual à errada, só que mais rápida. |