Skip to content

Instantly share code, notes, and snippets.

View prafullkotecha's full-sized avatar
🎯
Focusing

Prafull Kotecha prafullkotecha

🎯
Focusing
View GitHub Profile
import '/features/architecture/logging.dart';
class CachedQuery<T> {
final Duration invalidation;
final Future<T> Function(String key) fn;
CachedQuery(
this.fn,
this.invalidation,
);
@kamilogorek
kamilogorek / _screenshot.md
Last active May 27, 2024 12:50
Clutter-free VS Code Setup
image
@mitchellh
mitchellh / merge_vs_rebase_vs_squash.md
Last active May 30, 2024 19:28
Merge vs. Rebase vs. Squash

I get asked pretty regularly what my opinion is on merge commits vs rebasing vs squashing. I've typed up this response so many times that I've decided to just put it in a gist so I can reference it whenever it comes up again.

I use merge, squash, rebase all situationally. I believe they all have their merits but their usage depends on the context. I think anyone who says any particular strategy is the right answer 100% of the time is wrong, but I think there is considerable acceptable leeway in when you use each. What follows is my personal and professional opinion:

# Make sure you have Anaconda installed
# This tutorial assumes you have an Nvidia GPU, but you can find the non-GPU version on the Textgen WebUI github
# More information found here: https://github.com/oobabooga/text-generation-webui
conda create -n textgen python=3.10.9
conda activate textgen
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
git clone https://github.com/oobabooga/text-generation-webui
cd text-generation-webui
python -m pip install -r requirements.txt
dev:
quarkus dev
jshell:
#!/usr/bin/env jbang --jsh
//DEPS com.github.javafaker:javafaker:1.0.2
var faker = new com.github.javafaker.Faker();
println(faker.nation().nationality());
java:
@shiffman
shiffman / coding-train-2024.md
Last active May 29, 2024 20:40 — forked from dipamsen/coding-train-2023.md
Coding Train 2023 Goals and Plans

Coding Train 2024 Goals (as of May 29, 2024)

  • Nature of Code Additional videos (as challenges?)
    • Elastic Collisions (Chapter 6 reference)
    • Exercise 5.8 - image flow field
    • Exercise 5.13 - group path following
    • Dragon Curve (unfoloding) - chapter 8
    • Exercise 8.9 and 8.10 - animating / physics trees?
    • Slime Mold (related to chapter 5?)
  • ml5.js new tutorials

React & REST API Workshop Part 2

Let's POST Data to a Web Database From a React Component

Thank you for attending our 2nd Kintone x React workshop!
Use the following files to follow along!

Download Links

Click here or the Download Zip button on the upper right corner for all the code & slides you need for our workshop!

using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons

React & REST API Workshop!

Let’s Access Web Database Data From a React Component

Thank you for attending our Kintone x React workshop!

Use the following files to follow along!

Download Links

Click here or the Download Zip button on the upper right corner for all the code & slide you need for our workshop!