Skip to content

Instantly share code, notes, and snippets.

import React, { useState } from 'react'
const Accordion = ({ title, info }) => {
const [expanded, setExpanded] = useState(false)
return (
<article className='question'>
<header>
<h4 onClick={() => setExpanded(!expanded)} className='question-title'>
{title}
</h4>
@digoribeiro
digoribeiro / display-inline.html
Last active March 9, 2021 14:10
Display Inline
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Curso básico de HTML e CSS</title>
</head>
@digoribeiro
digoribeiro / gist:8ec21160a0078e62251c06b1df3b780c
Created June 3, 2020 01:21 — forked from doapp-ryanp/gist:4595068
configure spotify for linux shortcut keys
#@see rynop.com for details
sudo apt-get install xbindkeys
####now put the following in ~/.xbindkeysrc:
#KeyboardPlay
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
XF86AudioPlay
#KeyboardStop
@digoribeiro
digoribeiro / cloudSettings
Created January 12, 2017 12:48
Visual Studio Code Sync Settings GIST
{"lastUpload":"2017-01-12T12:47:55.762Z"}