Skip to content

Instantly share code, notes, and snippets.

View limamedeiros's full-sized avatar
☺️

Vanessa Lima Medeiros limamedeiros

☺️
  • Thoughtworks
  • Brazil
View GitHub Profile
@daviziks
daviziks / convert.ts
Created July 3, 2025 15:51
Script to convert Vscode theme to Ghostty terminal theme
#!/usr/bin/env bun
import fs from "fs";
import { parse } from "jsonc-parser";
// Usage
// bun convert.ts <file>.jsonc <themne-name>.conf
// You get your jsonc file from Developer: Generate Color Theme from Current Settings on Vscode command pallete
if (process.argv.length < 3) {
console.error("Usage: convert.ts <vscode-theme.jsonc> [output.ghostty]");
@reshen
reshen / cursor_smear_fade.glsl
Last active September 24, 2025 21:03
Ghostty smooth fading trailing cursor
//
// Original version by KroneCorylus, ref https://github.com/KroneCorylus/shader-playground/blob/main/shaders/cursor_smear_fade.glsl
//
// Modifications:
// - Base the cursor trail color on the current cursor color, which can be configured
// in ghostty's config using `cursor-color`, ref https://ghostty.org/docs/config/reference#cursor-color
// - Cursor trail is partially transparent, which gives a nice fade effect
// - Cursor trail's maximum opacity is configurable using `TRAIL_MAX_OPACITY`
//
@andrewdolphin
andrewdolphin / gist:a7dff49505e588d940bec55132fab8ad
Last active November 29, 2025 22:33
Linkding iOS Share Sheet shortcut using API (no login needed) and allowing tagging with existing tags
Having tried a couple of the previous shortcut solutions for iOS I was convinced something easier was possible using the API. The below is my first proper go at putting something together.
This shortcut will be available when "sharing" a URL from within a browser on iOS. On sharing to this shortcut it will automatically pull all available tags from the Linkding server and allow multi-tagging for the URL.
Limitations:
- Currently only previously defined tags can be used
- Title will rely on the automatic process on the server, manual override isn't available
- The same applies to the description
- Tags are currently listed in the order they were created. Alphabetical would make more sense.
@StirlingBaker
StirlingBaker / obsidian_dataview_callouts.css
Last active November 13, 2022 03:07
Obsidian Callouts Dataview Attributes Custom CSS
.theme-dark {
--dataview-key: #ffc94a;
--dataview-value: #ffffff;
}
.theme-light {
--dataview-key: #000;
--dataview-value: #000;
}
@AFutureD
AFutureD / Hypothesis.user.js
Last active November 9, 2025 05:48
A Tempermonkey script for Hypothes.is
// ==UserScript==
// @name Hypothesis
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author AFuture
// @match *://*/*
// @grant none
// ==/UserScript==
@ScottDillman
ScottDillman / obsidian-notice.css
Last active March 30, 2021 14:54
CSS fragment to create notices and pulsating bullets from code blocks
/**
* I use .app-container to get around CSS selector specificity
*/
.app-container pre[class*="language-note-"] {
border: 2px solid;
}
/* Make the first line of note bold */
*[class*="language-note"]::first-line {
@juliengdt
juliengdt / SomePlayground.swift
Last active September 21, 2019 15:55
Strongly Type Identifiers For Class Or Struct By Using Protocol and associated types
/*
In response of Tom Lokhort's article.
A third alternative: alternative 2 under steroïds
---
Source: http://tom.lokhorst.eu/2017/07/strongly-typed-identifiers-in-swift
*/
struct GenericIdentifier<T>: RawRepresentable, Hashable, Equatable {
let rawValue: String
@shanev
shanev / CustomViewController.swift
Last active February 23, 2018 20:09
Generic view controllers with storyboards and view model injection
struct CustomViewModel {
let data: String
init(data: String) {
self.data = data
}
}
final class CustomViewController: ViewController<CustomViewModel> {
override func viewDidLoad() {

A small sketch for a composable validation library.

@zats
zats / Models.swift
Last active August 10, 2017 19:49 — forked from JaviSoto/SampleViewController.swift
Init based Storyboard View Controller Instantiation
import Foundation
// Some clearly non-NSObject-based models:
enum Coconut: String {
case small, medium, large
}
struct Tomato {
static var red = Tomato(color: #colorLiteral(red: 0.7490196078, green: 0.09803921569, blue: 0.02352941176, alpha: 1))