Skip to content

Instantly share code, notes, and snippets.

Andrei Cacio andrei-cacio

Block or report user

Report or block andrei-cacio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andrei-cacio
andrei-cacio / edge-paste.html
Last active Sep 16, 2019
Pasting hello world in Edge
View edge-paste.html
<html>
<body>
<!--StartFragment-->
<span style="
display: inline !important;
float: none;
background-color: rgb(255, 255, 255);
color: rgb(34, 34, 34);
font-family: arial,sans-serif;
font-size: 13.33px;
View clipboard-sample.html
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
Hello world
</body>
</html>
View clipboard-sample.html
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
Hello world
</body>
</html>
@andrei-cacio
andrei-cacio / safari-paste.html
Created Aug 29, 2019
Pasting hello world in Safari
View safari-paste.html
<span style="
font-family: -webkit-standard;
font-style: normal;
font-variant-caps: normal;
font-weight: normal;
letter-spacing: normal;
orphans: auto;
text-align: start;
text-indent: 0px;
text-transform: none;
@andrei-cacio
andrei-cacio / chrome-paste.html
Last active Aug 29, 2019
Pasting hello world in Chrome
View chrome-paste.html
<meta charset='utf-8'>
<span style="
color: rgb(0, 0, 0);
font-family: Times;
font-size: medium;
font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal;
font-weight: 400;
letter-spacing: normal;
View db.js
export default [
{
id: 54590991,
node_id: "MDEwOlJlcG9zaXRvcnk1NDU5MDk5MQ==",
name: "cluj",
full_name: "jsheroes/cluj",
private: false,
owner: {
login: "jsheroes",
id: 16759725,
@andrei-cacio
andrei-cacio / click-outide.jsx
Last active Mar 28, 2019
Clickoutside updated
View click-outide.jsx
import React, { Component, useEffect, useCallback } from "react";
function ClickOutsideH({ children, onClick }) {
const refs = React.Children.map(children, () => React.createRef());
const handleClick = useCallback(e => {
const isOutside = refs.every(ref => {
return !ref.current.contains(e.target);
});
if (isOutside) {
onClick();
View clickoutside.jsx
import React, { Component, useEffect } from "react";
function ClickOutside({ children, onClick }) {
const refs = React.Children.map(children, () => React.createRef());
const handleClick = e => {
const isOutside = refs.every(ref => {
return !ref.current.contains(e.target);
});
if (isOutside) {
onClick();
View clickoutside.jsx
import React from 'react';
function ClickOutside({ children, onClick }) {
const refs = React.Children.map(children, () => React.createRef());
const handleClick = e => {
const isOutside = refs.every(ref => {
return !ref.current.contains(e.target);
});
if (isOutside) {
You can’t perform that action at this time.