I hereby claim:
- I am blackmann on github.
- I am notgr (https://keybase.io/notgr) on keybase.
- I have a public key ASAsT2wsqYqgdmOMzP8HdXAPxsnvqWfrVRINAXbsnaTp2go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
As seen in apps like Adobe After Effects, Rive (rive.app), Blender, Final Cut, motion-canvas etc. a timeline editor is used to assist in editing visual (or even audible) media elements.
In this challenge, you will design a timeline editor with the following features:
#!/usr/bin/env | |
openssl req -x509 -out localhost.crt -keyout localhost.key \ | |
-newkey rsa:2048 -nodes -sha256 \ | |
-subj '/CN=localhost' -extensions EXT -config <( \ | |
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth") |
import Chart from 'chart.js' | |
import { useEffect, useRef } from 'react' | |
/** | |
* @param {object} props | |
* @param {{label: string, value: string}[]} props.data | |
*/ | |
function DataChart({ data, id, graphColor = '#68AC67', label, type = 'bar' }) { | |
const oldChart = useRef() |
import { | |
Bodies, | |
Body, | |
Common, | |
Composite, | |
Engine, | |
Events, | |
Mouse, | |
Render, | |
Runner, |
export const fontDefinition = { | |
A: [ | |
[0, 1, 1, 0], | |
[1, 0, 0, 1], | |
[1, 1, 1, 1], | |
[1, 0, 0, 1], | |
[1, 0, 0, 1], | |
], | |
B: [], | |
C: [], |
import { useEffect, useState } from 'react' | |
export function useFirst() { | |
const [value, setValue] = useState(0) | |
useEffect(() => { | |
setTimeout(() => { | |
setValue(1) | |
}, 4000) | |
}, []) |
const ShopSchema = new Schema({ /** definitions */}) | |
ShopSchema.pre('deleteOne', async function (shop) { | |
// Note, don't use arrow function, unless you realize the shop is passed | |
// to the middleware instance. Read below: | |
// right now the document is unclear whether it passes the instance | |
// of the object to the middleware or the `this` is the instance | |
// so to test, do this | |
import 'dart:async'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:habanero/models/models.dart'; | |
class CartItem { | |
final MenuItem item; | |
int count = 0; | |
double get total => item.price * count; |
import axios from 'axios' | |
const CLOUNDINARY_URL = 'https://api.cloudinary.com/v1_1/<CLOUD_NAME>/image/upload/' | |
const UPLOAD_PRESET = 'XXXXXXX' | |
export default async (file) => { | |
const formData = new FormData() | |
formData.append('file', file) | |
formData.append('upload_preset', UPLOAD_PRESET) |