Skip to content

Instantly share code, notes, and snippets.

@asukakenji
asukakenji / 0-go-os-arch.md
Last active June 20, 2025 19:14
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active June 20, 2025 19:07
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@TomByrne
TomByrne / MultiExporter.jsx
Last active June 20, 2025 19:02
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to tom@tbyrne.org
type GeneratorOrAsyncGenerator =
| Generator<any, any, any>
| AsyncGenerator<any, any, any>;
type GeneratorOrAsyncGeneratorFunction = (...args: any[]) => GeneratorOrAsyncGenerator;
type GeneratorReturn<T> = T extends Generator<any, infer R, any> ? R : never;
type AsyncGeneratorReturn<T> = T extends AsyncGenerator<any, infer R, any> ? R : never;
@ypsilon-takai
ypsilon-takai / how_to_play_w_ZMK_local.md
Last active June 20, 2025 19:00
ファームをローカルで作る

ZMKの使いかた:ローカルで作成編

情報

ZMKのドキュメントはよく作られていてここにあります。

ローカルでファームを作る環境の準備

作業環境としては、元Linux使いのWindowsユーザーなので、WSL2を使います。Ubuntu 20.04.4 が入っています。

@insidegui
insidegui / PlatformViewRepresentable.swift
Created August 10, 2022 18:13
Protocol that automatically adds UIViewRepresentable or NSViewRepresentable conformance to implementers according to the current platform
import SwiftUI
#if os(iOS) || os(tvOS)
public typealias PlatformView = UIView
public typealias PlatformViewRepresentable = UIViewRepresentable
#elseif os(macOS)
public typealias PlatformView = NSView
public typealias PlatformViewRepresentable = NSViewRepresentable
#endif
Also, if you have a bug or a feature request, please go to bugreporter.apple.com. Today we want to focus on questions that will help the broader audience. So, please send us your questions using the Slido panel here in WebEx. Once our moderators approve the questions, they'll appear for everyone to up vote, so we can narrow in on the questions that are of most interest to all of you. So let's jump in. I'm going to claim moderator privilege and start with a couple of questions that I'm particularly interested in. So the first thing I would like to talk about to get the ball rolling is, I just want to ask each of you what your favorite new Swift UI API is this year. Summer, why don't you kick us off? All right, I'm gonna have to go with our new rich text editor. was a big labor of love for my team, and it was super fun, 'cause we got to work cross functionally with foundation, text kit, cortex, UAKit, app kit, everybody. Excellent. Nick, how about you? Uh, for me, this is definitely a safe area bar, kind of an
@burakorkmez
burakorkmez / CategoryFilter.jsx
Last active June 20, 2025 18:56
REACT NATIVE -- Recipe Finder App
import { View, Text, TouchableOpacity, ScrollView } from "react-native";
import { Image } from "expo-image";
import { homeStyles } from "../assets/styles/home.styles";
export default function CategoryFilter({ categories, selectedCategory, onSelectCategory }) {
return (
<View style={homeStyles.categoryFilterContainer}>
<ScrollView
horizontal
showsHorizontalScrollIndicator={false}
@dapize
dapize / VMware Workstation KEYS
Last active June 20, 2025 18:52
key VMware® Workstation 16 Player (16.1.1 build-17801498)
VMware® Workstation 16 Player (16.1.1 build-17801498)
FA1M0-89YE3-081TQ-AFNX9-NKUC0
VMware Workstation Pro v16 Serial Key - DiamondMonday
ZF3R0-FHED2-M80TY-8QYGC-NPKYF
YF390-0HF8P-M81RQ-2DXQE-M2UT6
@geerlingguy
geerlingguy / 00 README.md
Last active June 20, 2025 18:49
PicoBricks Demo Code from Jeff Geerling's Jun 2025 Microcontroller video

PicoBricks Microcontroller Demos

These .pb (PicoBricks) IDE files are meant to be used with a PicoBricks board. I demonstrate how they all work (and how I built them) in this YouTube video:

https://www.youtube.com/watch?v=Sd42q3OaOrE

How to use these files

These files are meant to be opened in the PicoBricks BricksIDE, available on http://ide.picobricks.com