Skip to content

Instantly share code, notes, and snippets.

View eonist's full-sized avatar
🎯
Focusing

André J eonist

🎯
Focusing
View GitHub Profile
@eonist
eonist / vscode_tricks.md
Last active October 21, 2023 00:08
vscode_tricks.md

Visitors

Productivity must know power tips for vscode

VSCode

Shortcuts

  • shift + cmd + p -> command center (from here you can type in stuff you want to do like "wordwrap" or "beautify" etc)
  • ctrl + cmd + i -> copilot chat 💪
@eonist
eonist / producthunt_best_practice_2023.md
Created September 28, 2023 23:30
producthunt_best_practice_2023.md

What days are best

  • Weekend for pet projects or if you want top product badge. Weekdays for all others
  • Fridays are semi weekends. Since everyone is at the bar partying etc. Leave the office early. Or go to the cabin. Mondays people are biz working, and no time for PH. Tuesdays, people get the FOMO urge and check PH. And on Tuesdays you get Wedensday and Thursday to pump your long tail around the webs

How do you win:

  • Pump on linkedin. ask for support etc
  • Build at least 1k notified in the upcoming page. and spam them on launch day
  • Make everything super clear. Engage with people, dont use LLMs for engagment, it feels fake and people get turned off
  • Launch great stuff. Commodeties wont get real traction.
@eonist
eonist / How_to_commit_to_a_gist_directly_from_github_desktop_or_mobile.md
Last active October 16, 2023 11:30
How_to_commit_to_a_gist_directly_from_github_desktop_or_mobile.md

Visitors

Why?

TL;DR: Because Notion is mehhh 🙊, and github is more awwwwwesome 😎

  • Gists offer enhanced portability and composability.
  • They are not subject to single-company control, eliminating lock-ins.
  • Gists cannot be censored or restricted.
  • You have the flexibility to host them on various platforms, such as GitLab, Notion, and more.
@eonist
eonist / github_stats.py
Last active October 25, 2023 01:48
github_stats.py
import json
import urllib.request
import ssl
username = input("Enter your GitHub username: ")
url = f"https://api.github.com/users/{username}/events"
context = ssl.create_default_context()
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
@eonist
eonist / My_favorite_ai_coding_prompts.md
Last active March 26, 2024 10:31
My_favorite_ai_coding_prompts.md

The art of prompt coding 🦾

Visitors

Apps used: Cursor.so / github copilot chat

img

⚠️️ Before you disregard the idea of prompt coding ⚠️️ Don't! Because everyone will be prompt-coding soon enough.

This is like when humanity stopped using horses for transportation and started using cars. 🐴 👉 🚗

@eonist
eonist / CustomTextFieldCell.swift
Created May 21, 2023 13:42
CustomTextFieldCell.swift
#if os(macOS)
import Cocoa
/**
* Adds custom padding
* - Remark: ⚠️️ Experimental, not yet in use ⚠️️ deprecate? move to issues or gist?
*/
final class CustomTextFieldCell: NSTextFieldCell {
private static let padding: CGSize = .init(width: 2.0, height: 4.0)
/**
* - Parameter rect: NSRect
@eonist
eonist / UITableViewDelegate+Ext.swift
Created May 21, 2023 13:31
UITableViewDelegate extension
/**
* Table extensions
* - Fixme: ⚠️️ deprecate these, not in use anymore. move to gist or something?
*/
extension UITableViewDataSource where Self: UITableView {
/**
* Returns all IndexPath's in a table
* ## Examples:
* table.indexPaths.forEach {
* selectRow(at: $0, animated: true, scrollPosition: .none) // selects all cells
import Foundation
/**
* - Fixme: ⚠️️ deprecate? yes!
*/
public struct NSRectCorner: OptionSet {
public let rawValue: Int
/**
* - Parameter rawValue: 0 to 3
*/
public init(rawValue: Int) {
@eonist
eonist / NSBezierPath+Ext.swift
Created May 21, 2023 13:27
NSBezierPath+Ext
import Cocoa
/**
* - Fixme: ⚠️️ Still in use? Good question, deperecate? we can deprecate this
* - Fixme: ⚠️️⚠️️ move to gist
*/
extension NSBezierPath {
/**
* Init
* - Fixme: ⚠️️ Add support for CGSize for radii
* - Parameters: