Skip to content

Instantly share code, notes, and snippets.

View joshbeitler's full-sized avatar
⌨️
Typing...

Josh Beitler joshbeitler

⌨️
Typing...
View GitHub Profile
@joshbeitler
joshbeitler / challenge.py
Last active November 16, 2024 09:42
challenge
# fix the bug
foo = 'https'
bar = `1mF-JfsufEdUVB-8gLpmif0T7ypPJd4v0Hgm2kvKwLa4/edit?usp=sharing`
baz = 'docs.google.com/presentation/d/'
print(foo + '://' + baz + bar)
@joshbeitler
joshbeitler / code
Last active November 16, 2024 08:48
code
LSAuIC4tLi4gLi0uLiAvIC0tIC4gLyAuLS0gLi4uLiAuLSAtIC8gLi0tIC4gLyAuLSAtIC4gLyAuLi0uIC0tLSAuLS4gLyAtLi4gLi4gLS4gLS4gLiAuLS4=
# places to buy stuff
- reddit.com/r/mechmarket
- https://zealpc.net/products/zealio - switches I like
- kbdfans.com
- keycaps (also good places to buy stuff)
- https://mechanicalkeyboards.com/shop/index.php?l=product_list&c=40
- https://kbdfans.com/collections/keycaps
- https://kprepublic.com/collections/keycaps
- https://novelkeys.xyz/collections/keycaps
- https://kono.store/collections/keycap-sets
@joshbeitler
joshbeitler / DataList.tsx
Last active July 8, 2020 19:11
new amino components
<DataList
template={item =>
<ListItem label={item.name} />
}
items={items}
/>
[application]
name = "Notes app"
version = "1.0.0"
[author]
name = "Joshua Beitler"
email = "oss@btlr.xyz"
[permissions]
[permissions.fs]
func (r *Resolver) UpdateNoteResolver(p graphql.ResolveParams) (interface{}, error) {
id, _ := p.Args["id"].(int)
note := r.db.GetNoteById(id)
if title, ok := p.Args["title"].(string); ok {
note.Title = title
}
if body, ok := p.Args["body"].(string); ok {
note.Body = body
func (d *Db) CreateNote(title string, body string) Note {
stmt, err := d.Prepare("INSERT INTO notes (title, body) VALUES ($1, $2) RETURNING id")
if err != nil {
fmt.Println("CreateNote Preperation Err: ", err)
}
id := 0
err = stmt.QueryRow(title, body).Scan(&id);
if err != nil {
@joshbeitler
joshbeitler / resources.md
Last active February 19, 2020 18:02
CSS resources for Kubie
@joshbeitler
joshbeitler / setup.md
Last active February 6, 2019 18:15
setup

Setting up a Mac for dev

First steps

Install Xcode from the Mac App Store

While you won't use Xcode directly, it includes command line tools that the other stuff will use.

Install iTerm