Skip to content

Instantly share code, notes, and snippets.

View techygrrrl's full-sized avatar
🔴

techygrrrl techygrrrl

🔴
View GitHub Profile
@exegeteio
exegeteio / format.rb
Created May 4, 2023 22:41
SRT Formatter for Matty Twoshoes on twitch.
#!/usr/bin/env ruby
require "csv"
# Going to store each line into an array.
output = []
# Loop over input from STDIN
ARGF.each do |line|
# Removes newlines and such.
line.chomp!
@acorn1010
acorn1010 / createGlobalStore.ts
Last active April 1, 2024 01:11
Easier Zustand store
import {SetStateAction, useCallback} from 'react';
import {create} from "zustand";
export type EqualityFn<T> = (left: T | null | undefined, right: T | null | undefined) => boolean;
export type StoreType<State> = {
use<K extends keyof State>(
key: K,
defaultValue?: State[K],
equalityFn?: EqualityFn<State[K]>,
//
// ContentView.swift
// teste
//
// Created by Renan Lins on 6/4/22.
//
import SwiftUI
class ViewModel: ObservableObject {
@bradtraversy
bradtraversy / django_cheat_sheet.md
Last active February 24, 2024 23:35
Django command cheat sheet

Django 2.x Cheat Sheet

Creating a virtual environment

We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder

python -m venv ./venv