Skip to content

Instantly share code, notes, and snippets.

View wschenkel's full-sized avatar
⚛️
Building web products

Willian Schenkel wschenkel

⚛️
Building web products
View GitHub Profile
const [optimizeExperiment, setOptimizeExperiment] = useState(0)
// Id do nosso experimento
const experimentId = '8sFX02ltRXWrQb05dONuzA'
useEffect(() => {
const loadingOptimizer = setInterval(() => {
const { google_optimize } = window
@wschenkel
wschenkel / App.tsx
Created September 24, 2020 01:53
React-router-dom
import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import Header from './components/Header';
import Reponame from './pages/Reponame';
import Profile from './pages/Profile';
function App() {
return (
<Router>
@wschenkel
wschenkel / gist:442eb92f0354fbf89086e5bdc5baf676
Created June 23, 2020 02:48 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
{
"React Function stateful Component": {
"prefix": "rc",
"body": [
"import React, { useState } from 'react';",
"import Proptypes from 'prop-types';",
"",
"export default function ${TM_DIRECTORY/^.+\\\\/(.*)$/$1/}() {",
" const [state, setState] = useState(null);",
"",
@wschenkel
wschenkel / unit.scss
Created July 5, 2019 18:45
Units to use in your scss files.
$global-font-size: 100% !default;
/// Converts one or more pixel values into matching rem values.
///
/// @param {Number|List} $values - One or more values to convert. Be sure to separate them with spaces and not commas. If you need to convert a comma-separated list, wrap the list in parentheses.
/// @param {Number} $base [null] - The base value to use when calculating the `rem`. If you're using Foundation out of the box, this is 16px. If this parameter is `null`, the function will reference the `$base-font-size` variable as the base.
///
/// @returns {List} A list of converted values.
@function rem-calc($values, $base: null) {
$rem-values: ();
@wschenkel
wschenkel / instafeedjsaccess.md
Created July 4, 2018 12:22 — forked from mojaray2k/instafeedjsaccess.md
Getting Instagram Access Token for http://intafeedjs.com

#Use this URL to get your client authorized for Instafeed.JS plugin for Instagram.

  1. First login into your Instargam account
  2. Then go to https://www.instagram.com/developer/
  3. At the top click on the Button that says "Manage Clients".
  4. If you have not Register a new client.
  5. Fill out everything and where it says redirect url put this url: http://instafeedjs.com
  6. Then on the security tab make sure you uncheck "Disable implicit OAuth"
  7. Finally use this link to authoruize Instafeed. Where it says "[Client ID]" replace that including the brackets with your clientID from instagram:
  8. https://instagram.com/oauth/authorize/?client_id=[Client ID]&redirect_uri=http://instafeedjs.com&amp;response_type=token