Skip to content

Instantly share code, notes, and snippets.

View drecali's full-sized avatar

Andrei Calinescu drecali

View GitHub Profile
@drecali
drecali / ghSnippets.md
Created May 25, 2022 02:01
Useful GitHub snippets

Useful GitHub Snippets

Filter PR/issue results by number of comments

Get results with more than COMMENT_NUMBER comments

  • comments:>COMMENT_NUMBER
@drecali
drecali / CanvasWithCustomCircleCursor.jsx
Created December 30, 2021 12:17
Controlled circular brush cursor
import React, { useState } from "react"';
import { useSelector } from "react-redux";
import { getBrushSizeSelector } from "dux/brush/selectors";
const CanvasWithCustomCircleCursor = () => {
const diameter = useSelector(getBrushSizeSelector);
const radius = diameter / 2;
const circleBorder = 3;
return (
@drecali
drecali / overlayImage-DesignQA.jsx
Last active August 30, 2021 09:22
This helps visualize differences between the final design and the website/app you're working on. It's faster and requires less code than setting up a visual diff tool. It eliminates the need to constantly switch to the design file to check dimensions and other parameters.
// Check first comment for instructions and assumptions.
import design from "img/design.png";
const Homepage = () => {
return (
<>
<otherHomepageComponents />
<img
src={design}
Here are a few questions that will tee us up for a good conversation:
- Can you tell me about your project in a few sentences?
- What’s the timeframe? Does a certain event depend on this project launching?
- What are you looking for from us? Do you want us to design, build, and launch the whole site? Or do you have developers or other partners lined up and only need us for design?
- Have you already started on any part of the project? Do you have existing work? A new logo? Some rough designs or ideas for the site?
- How large is your team? What are the roles you envision on your end?
- How did you hear about our work? What specifically interests you about it? Any projects that you’re keen on?
- How much money have you set aside for this project?
- Are you talking to others about this project? Might we ask how many? What do you like about their work?