Skip to content

Instantly share code, notes, and snippets.

@productinfo
productinfo / TipsView.swift
Created July 5, 2020 19:44 — forked from stammy/TipsView.swift
SwiftUI MicroAnimation example
//
// TipsView.swift
// Stonks
//
// Created by Paul Stamatiou on 7/3/20.
//
import SwiftUI
import PlaygroundSupport
import SwiftUI
struct PaymentRing: View {
@State var frameSize = UIScreen.main.bounds.width - 120
@State var current: CGFloat = 0
@State var value: Double = 0
var body: some View {
VStack {
ZStack {
Circle().stroke(Color.secondary, style: StrokeStyle(lineWidth: 40, lineCap: .butt, lineJoin: .round)).frame(width: frameSize, height: frameSize)
@productinfo
productinfo / clubhouse.swift
Created August 5, 2021 21:22 — forked from navsing/clubhouse.swift
Recreating ClubHouse in SwiftUI with Dark Mode
//
// Clubhouse.swift
// Playground
//
// Created by Nav Singh on 2/11/21.
//
import SwiftUI
struct Clubhouse: View {
@productinfo
productinfo / project-ideas01.md
Created September 18, 2021 02:27 — forked from MWins/project-ideas01.md
Back end Projects - list

Project Ideas

Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.

I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.

If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.

Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.

@productinfo
productinfo / Main.cs
Created June 30, 2022 05:11 — forked from R0Wi/Main.cs
Simple .NET WebView2 DevTools helper to make it possible to invoke async Javascript code (see https://github.com/MicrosoftEdge/WebView2Feedback/issues/416#issuecomment-1073533384)
public static async Task Main()
{
/*
* Use this codesnippet inside your WinForm/WPF WebView2 application
*/
var wv2 = new WebView2();
await wv2.EnsureCoreWebView2Async();
var devTools = new WebView2DevTools(wv2.CoreWebView2);
// Some result vom Javascript
@productinfo
productinfo / script.applescript
Created September 3, 2022 16:35 — forked from toioski/script.applescript
Automatically Open Safari Dev Tools for iOS Simulator
-- `menu_click`, by Jacob Rus, September 2006.
-- Ref: https://stackoverflow.com/questions/14669542/automatically-open-the-safari-debugger-when-the-iphone-simulator-is-launched
on menu_click(mList)
local appName, topMenu, r
-- Validate our input
if mList's length < 3 then error "Menu list is not long enough"
-- Set these variables for clarity and brevity later on
//
// PagingView.swift
// Wallaroo - https://wallaroo.app
//
// Created by Sean Heber (@BigZaphod) on 8/9/22.
//
import SwiftUI
// This exists because SwiftUI's paging setup is kind of broken and/or wrong out of the box right now.
struct ContentView: View {
@State var data: [String] = []
@State var navPath = NavigationPath()
var body: some View {
NavigationStack(path: $navPath) {
ZStack {
Button("Hit It") {
navPath.append(0)
}
@productinfo
productinfo / code_review.sh
Created December 17, 2024 04:05 — forked from alwin-augustin-dev/code_review.sh
Automated code review using local LLMs
#!/bin/bash
# Define variables
REPO_PATH=""
PR_NUMBER=""
OLLAMA_API_URL="http://localhost:11434/api/generate"
OUTPUT_FILE="code_review_output.md"
MODEL="llama3.1:8b"
MAX_CONTEXT_LINES=20000