Skip to content

Instantly share code, notes, and snippets.

View raress96's full-sized avatar

Rareș raress96

View GitHub Profile
@raress96
raress96 / deepbook.html
Created September 25, 2025 11:17
How to Build a Trading Dashboard with Surflux
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Surflux DeepBook Trading Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/lightweight-charts@4.1.1/dist/lightweight-charts.standalone.production.js"></script>
<script>
tailwind.config = {
@raress96
raress96 / newsletter to social posts.json
Created August 6, 2025 19:21
n8n newsletter to social posts
{
"name": "Newsletter to Social Posts",
"nodes": [
{
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyX",
"value": 12
@raress96
raress96 / contract.rs
Created April 4, 2022 11:43
Elrond smart contract verify signature
fn verify_signature(
&self,
caller: &ManagedAddress,
url: &ManagedBuffer,
signature: &Signature<Self::Api>,
) {
let mut data = ManagedBuffer::new();
data.append(caller.as_managed_buffer());
data.append(url);
@raress96
raress96 / auth.controller.ts
Created April 4, 2022 09:26
Elrond generate jwt
import { BadRequestException, Body, Controller, Post, UseGuards } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { CachingService } from '../../common/caching/caching.service';
import { randomBytes } from 'crypto';
import { Constants } from '../../utils/constants';
import { JwtService } from '@nestjs/jwt';
import { LoginDto } from './dto/login.dto';
import { Address, SignableMessage, UserPublicKey } from '@elrondnetwork/erdjs/out';
import { ThrottlerBehindProxyGuard } from '../../common/throttle/throttle.guard';