Skip to content

Instantly share code, notes, and snippets.

View davo's full-sized avatar
🦮
Golden

Davo Galavotti davo

🦮
Golden
View GitHub Profile
global.THREE = require("three");
const canvasSketch = require('canvas-sketch');
const Random = require('canvas-sketch-util/random');
const gradientHeight = 512;
const settings = {
dimensions: [ 2048, gradientHeight * 2 ]
};
@davo
davo / cloudTrailEventNames.list
Created May 12, 2020 15:28 — forked from pkazi/cloudTrailEventNames.list
List of values for parameter EventName in AWS Cloudtrail events
AbortDocumentVersionUpload
AbortEnvironmentUpdate
AbortMultipartUpload
AbortVaultLock
AcceptAccountMapping
AcceptCertificateTransfer
AcceptDelegate
AcceptDirectConnectGatewayAssociationProposal
AcceptFxPaymentCurrencyTermsAndConditions
AcceptHandshake
@davo
davo / ffmpeg.sh
Created December 12, 2019 00:12
FFMPEG for Twitter Videos
ffmpeg -i input.mov -pix_fmt yuv420p -vcodec libx264 -vf scale=1920:-1 -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -ac 2 -strict experimental -r 30 outpu.mp4
@davo
davo / versions.json
Created October 25, 2019 17:45
TypeScript Version
[
{
'Version number': 0.8,
'Release date': '1 October 2012 (2012-10-01)',
'Significant changes': ''
},
{
'Version number': 0.9,
'Release date': '18 June 2013 (2013-06-18)',
'Significant changes': ''
@davo
davo / Readme.md
Last active August 12, 2019 15:16
Persisting State on Framer X

State Management on Framer X with React

Here is a collection of implementation strategies to manage state on Framer X. Feel free to contribute your own strategies and ideas.

Examples marked with a checkmark mean that some examples has been provided on this repo.

State Management on Framer X

Only for Framer X

@davo
davo / .block
Created August 6, 2019 15:44 — forked from DarienLiang/.block
Transition Between Three Views
license: mit
@davo
davo / ScratchCard.tsx
Created August 1, 2019 23:46
ScratchCard for Framer X
// WIP Refactored from https://github.com/aleksik/react-scratchcard/
import * as React from 'react'
import { Frame, addPropertyControls, ControlType } from 'framer'
export function ScratchCard({ width, height, children, image: source, finishPercent }) {
const [loaded, setLoaded] = React.useState(false)
const [context, setContext] = React.useState(false)
const [isDrawing, setIsDrawing] = React.useState(false)
const [lastPoint, updateLastPoint] = React.useState(null)
@davo
davo / FrameSpy.tsx
Last active November 27, 2019 12:01
FrameSpy - Refactor
import * as React from 'react'
import { addPropertyControls, ControlType, FrameProps, Frame } from 'framer'
import reactElementToJSXString from 'react-element-to-jsx-string'
import Highlight, { defaultProps } from 'prism-react-renderer'
import { themes } from './themes'
import Clipboard from 'react-clipboard.js'
// @steveruizok
// Define type of property
@davo
davo / Reset Touchbar.md
Last active July 18, 2019 04:16
Reset Touch or MacOS Mojave

pkill "Touch Bar agent";

killall "ControlStrip";

@davo
davo / Data.tsx
Created June 14, 2019 10:01
Framer X - Type Stack - Data Example
import * as React from 'react'
import styled from '@emotion/styled'
import { css } from '@emotion/core'
import { addPropertyControls, ControlType } from 'framer'
type DataTypes = {
format: 'data40' | 'data30' | 'data20' | 'data10'
}
interface IDataTextProps {