Skip to content

Instantly share code, notes, and snippets.

Pawel Zubrycki Aulos

  • Growbots
  • Warsaw, Poland
Block or report user

Report or block Aulos

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
View use-onclick-outside-example.jsx
import { useState, useEffect, useRef } from 'react';
// Usage
function App() {
// Create a ref that we add to the element for which we want to detect outside clicks
// State for our modal
const [isModalOpen, setModalOpen] = useState(false);
// Call hook passing in the ref and a function to call on outside click
const ref = useOnClickOutside(() => setModalOpen(false));
View keybase.md

Keybase proof

I hereby claim:

  • I am aulos on github.
  • I am pawzubr (https://keybase.io/pawzubr) on keybase.
  • I have a public key ASBJcu9cbnM6sdGQfpUnyU9k9i6Oi0jFp_jozvRYQ8n5fwo

To claim this, I am signing this object:

View controller.js
$(function () {
$("#controls > div").hide();
$('<canvas id="viewport" width="140" height="65">')
.css("float", "left")
.appendTo("#controls");
$("<button />", {
text: "Show",
View controller.js
$(function () {
$("#controls > div").hide();
$('<canvas id="viewport" width="140" height="65">')
.css("float", "left")
.appendTo("#controls");
$("<button />", {
text: "Show",
You can’t perform that action at this time.