Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta name="x-apple-disable-message-reformatting" />
<style>
@font-face {
font-family: "Geist";
font-style: medium;
font-weight: 500;
<!doctype html>
<html lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta name="x-apple-disable-message-reformatting" />
<style>
@font-face {
font-family: "Geist";
font-style: medium;
font-weight: 500;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
data-source-file="emails/devfest-email.tsx"
data-source-line="25"
dir="ltr"
lang="en">
<head data-source-file="emails/devfest-email.tsx" data-source-line="26">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta name="x-apple-disable-message-reformatting" />
<style data-source-file="emails/Font.tsx" data-source-line="3">

DevSpot Hackathon Organizer Bot - Assessment Report

Note: This assessment is based on the submitted codebases and evaluates the implementations against the provided assignment requirements. The evaluation focuses on the actual code, documentation, and features present in the submissions.

Executive Summary

Two distinct implementations were submitted for the DevSpot Hackathon Organizer Bot assignment:

  1. Spot-bot - Python/FastAPI implementation with comprehensive features
  2. devspot-beta - Next.js/TypeScript implementation with modern architecture

API Routes


Module - Auth

Sub Module - Identities

  • /api/auth/identities/route.ts

Next.js 15 Hackathon Platform - Refactor Guide

๐Ÿš€ Tech Stack Overview

  • Framework: Next.js 15 (App Router)
  • Database: Supabase (PostgreSQL)
  • Styling: Tailwind CSS
  • Email: Loops
  • Testing: Jest + React Testing Library
  • Component Development: Storybook

X402 Staking Implementation: Use Case, Roadblocks, and Solutions

Prerequisites

Critical Requirement: X402 implementation requires Next.js 15. Using earlier versions will result in runtime errors during payment processing.

Use Case: Dynamic Staking Platform

We implemented a staking mechanism where:

  • Users stake dynamic amounts before performing platform actions
  • Stake amounts vary based on the specific action
  • Staked amounts are refunded after meeting conditions/timeframes
@Drex72
Drex72 / sampleToken
Created March 23, 2024 13:41
Filecoin Smart Contract Submission
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.5.9;
import "@0x/contracts-erc20/contracts/src/ERC20Token.sol";
/**
* @title SampleERC20
* @dev Create a sample ERC20 standard token
*/
@Drex72
Drex72 / prettify.js
Last active August 4, 2022 21:28
javascript - prettify
/*
Make the function more readable and maintainable
*/
function doStuff(text) {
const words = text.toLocaleLowerCase().split(' ').reverse()
return words
.map((word) => word.trim())
.filter((word) => word.length > 5)
.join(', ')