Skip to content

Instantly share code, notes, and snippets.

@deer-roy
deer-roy / sticitt.host-to-host.postman_collection.json
Created July 13, 2025 11:27
Sticitt host-to-host api collection
{
"info": {
"_postman_id": "97b1358c-d027-4284-b3d4-ecce3a7e88e7",
"name": "Sticitt Host-to-Host API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "44945686"
},
"item": [
{
"name": "1. Retrieve access token",
const cors = require('cors')
const express = require('express');
const { json, urlencoded } = require('express');
const { path } = require('fs')
const app = express()
const port = 8080
app.use(cors())
app.use(json()) // for parsing application/json
app.use(urlencoded({ extended: true })) // for parsing application/x-www-form-urlencoded
@deer-roy
deer-roy / BitwiseFlags.cs
Created April 3, 2025 08:04
Bitwise flags in c#
class Program
{
[Flags]
public enum PizzaToppings
{
Cheese = 1,
Bacon = 1 << 1,
Avo = 1 << 2,
Pineapple = 1 << 3,
Mushrooms = 1 << 4,