Skip to content

Instantly share code, notes, and snippets.

View stephyswe's full-sized avatar
👋
not busy

Stephanie stephyswe

👋
not busy
  • Sweden, Gothenburg
View GitHub Profile
@stephyswe
stephyswe / PlayerContent.tsx
Last active June 12, 2023 15:31
track length and spotify design
"use client";
import { useEffect, useRef, useState } from "react";
import { AiFillStepBackward, AiFillStepForward } from "react-icons/ai";
import { BsPauseFill, BsPlayFill } from "react-icons/bs";
import { HiSpeakerWave, HiSpeakerXMark } from "react-icons/hi2";
import useSound from "use-sound";
import Slider from "@/components/Slider";
import SliderTrack from "@/components/SliderTrack";
#include <gtest/gtest.h>
extern "C" {
#include "input.h"
#include "shapes.h"
}
class ShapesTest : public testing::Test {
protected:
// Override this to define how to set up the environment.
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "input.h"
typedef enum {
Calculator_Status_Ok = 0,
Calculator_Status_InvalidInput = 1,
Calculator_Status_DivideByZero = 2
make better`
```
const DataComponent = ({ data, onClick }) => (
<>
{Object.keys(data).map((key, index) => {
return (
<tr key={index}>
<td>{key}</td>
{onClick
? beloppValuesOnClick(data)[index].map((belopp, innerIndex) => (
/* eslint-disable @typescript-eslint/ban-ts-comment */
import GoogleMapReact from 'google-map-react';
import { useRef, useState } from 'react';
import { GOOGLE_API } from '@/lib/env';
import { useOnClickOutside } from '@/hooks/useOutsideDiv';
import { Link } from '@/components';
import { useDelivery } from '@/contexts/delivery';
{
"name": "diffuse",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"start": "yarn start",
"compile": "electron-webpack",
"dist": "yarn compile && electron-builder",
"dist:dir": "yarn dist --dir -c.compression=store -c.mac.identity=null",
"test": "jest"