Skip to content

Instantly share code, notes, and snippets.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Bisq [56478]
Path: /Applications/Bisq.app/Contents/MacOS/Bisq
Identifier: io.bisq.CAT
Version: 1.9.14 (1.9.14)
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
@imyjimmy
imyjimmy / Dimensions.tsx
Created January 5, 2022 15:32
Dynamically get Width, Height of a React List Component in Typescript
// typescript version of this: https://www.kindacode.com/article/react-get-the-width-height-of-a-dynamic-element/
import React, { useState, useEffect, useRef } from 'react'
const Dimensions: React.FC = () => {
// This ref is connected to the list
const listRef = useRef<HTMLUListElement>(null);
// The size of the list
// It will be updated later
@imyjimmy
imyjimmy / gist:d3f4acb92f762576beed57a58d9f34f1
Created May 18, 2021 23:42
brew install python3 couldn't parse manifest JSON
brew install python3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
...
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:5d79eedf91642b87bd25e7b791b941ce9aad4735fe
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5d79eedf91642b87bd25e7b791b941
######################################################################## 100.0%
==> Installing dependencies for python@3.9: gdbm, mpdecimal, openssl@1.1, readline, sqlite and xz
# apollo-server -- prisma
git clone git@github.com:cpenarrieta/prisma-apollo-2.0.git
# React - Apollo - GraphQLYoga - Prisma
graphql create my-app --boilerplate react-fullstack-basic
alias gitlog='git log --oneline --graph --decorate=short'
alias gitlogall='git log --oneline --graph --decorate=short --all'
const withTypescript = require('@zeit/next-typescript')
const withOffline = require('next-offline')
const withCSS = require('@zeit/next-css');
const withPlugins = require('next-compose-plugins');
if (typeof require !== "undefined") {
require.extensions[".css"] = () => {};
}
module.exports = withPlugins([
@imyjimmy
imyjimmy / PUBLIC_URL
Created May 22, 2019 15:43
How to get a React App to serve from PUBLIC_URL
npm install dotenv --save
## Note: this is how webpack is set up in fet/frontend.
## In case-dashboard it is more complex, but the tldr is use webpack-dev-server
## and have:
## devServer: {
## publicPath: publicUrl
## },
## see: https://webpack.js.org/configuration/dev-server/#devserverpublicpath-
508 cd temp
509 git clone git@github.com:imyjimmy/obi-main.git
510 git branch -a
511 cd obi-main/
512 git branch -a
513 git fetch origin questions
514 git checkout questions
515 ls
516 cd components/obi-header/
517 less package.json
@imyjimmy
imyjimmy / Dockerfile-React
Created May 15, 2019 15:58
example Dockerfiles for React App
FROM node:8
WORKDIR /app
COPY . ./
RUN yarn
RUN yarn run build
RUN yarn global add serve
CMD ["serve", "-p", "3000", "-s", "/app/build"]
<div class="spinner">
<img src="../assets/loading.svg" alt="loading"/>
</div>