Skip to content

Instantly share code, notes, and snippets.

View RNubla's full-sized avatar

Robert Nubla RNubla

  • Deloitte
  • Pennsylvania
View GitHub Profile
@sonnylazuardi
sonnylazuardi / CounterReact.jsx
Created August 13, 2021 06:52
Astro React Vue. Global State Management: Zustand
import React from "react";
import { useStore } from "./store";
export default function CounterReact({ demo }) {
const state = useStore((state) => state);
let add = () => {
state.inc();
};
@Lugriz
Lugriz / binary-search-tree.ts
Created August 16, 2020 19:56
Binary search tree in Typescript
/**
* 8 root = 10 | root = <- deleteNode(10) ->
* / \
* 6 25
* / \ / \
* 4 8 15 30
* \
* 5
*
*/
@stollcri
stollcri / c41lab
Last active November 5, 2024 11:24
A script which uses ImageMagick to develop scans of C-41 film negatives into color-corrected positive images
#!/bin/bash
# ====================================================================================================================
#
# Converted for bash by @stollcri (stollcri at gmail dot com), 2020-07-28
#
# Originally downloaded from: https://sites.google.com/site/c41digitallab/the-complexity
#
# ====================================================================================================================
# C41LAB - Version 1.2
#
@KyrillosWalid
KyrillosWalid / tutorial.md
Last active June 23, 2024 15:56
How to add Nim-lang code to C/C++ code - TUTORIAL

How to add Nim-lang code to C/C++ code


Note 1: This tutorial is for Linux users only, but if you understand the idea, you can use it on all systems and it will work as required :).
Note 2: Nim-lang version used in this tutorial is 1.0.4 (To get Nim-lang version nim -v)

To add Nim-lang code to C/C++ code you have 3 choices :

  • Compile Nim-lang code as a (C/C++ header File). THIS IS WHAT WE WILL TAKE TODAY.
  • Compile Nim-lang code as a (C/C++ static library).
  • Compile Nim-lang code as a (C/C++ dynamic library).
from typing import Optional
import base64
from passlib.context import CryptContext
from datetime import datetime, timedelta
import jwt
from jwt import PyJWTError
from pydantic import BaseModel
@AndreaMinato
AndreaMinato / auth.ts
Last active June 20, 2023 00:55
Typescript Vuex Module
import axios, { AxiosRequestConfig } from "axios";
import router from "@/router"; //shortcut to src
import { Module } from "vuex";
const authModule: Module<any, any> = {
state: {
loggedIn: false,
loginError: null,
username: null
@nadako
nadako / Main.hx
Created June 24, 2015 19:36
Haxe + SDL = native love \o/
class Main {
static function main() {
Sdl.init(Sdl.INIT_EVERYTHING);
var win = Sdl.createWindow("Hello", 100, 100, 800, 600, Sdl.WINDOW_OPENGL);
var ren = Sdl.createRenderer(win, -1, Sdl.RENDERER_ACCELERATED);
var bmp = Sdl.loadBMP("test.bmp");
var tex = Sdl.createTextureFromSurface(ren, bmp);
Sdl.freeSurface(bmp);
for (i in 0...3) {
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active May 4, 2026 17:22
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\