Skip to content

Instantly share code, notes, and snippets.

View gerald24's full-sized avatar

Gerald Leeb gerald24

View GitHub Profile
@gerald24
gerald24 / iconv.v
Last active May 20, 2024 08:40
iconv binding for vlang on macos
module iconv
// brew install libiconv
// copied from https://github.com/fanlia/iconv and adapted for current vlang version & macos
#flag -I/opt/homebrew/opt/libiconv/include
#flag -L/opt/homebrew/opt/libiconv/lib
#flag -liconv
#include <iconv.h>
@gerald24
gerald24 / ai-for-humans.md
Created November 28, 2021 08:00 — forked from codepo8/ai-for-humans.md
Link collection for the "AI for humans" talk

Slides

Intro and history of ML on the web

  • Autodraw by Google is a tool that allows you to doodle what you want to paint and turns it into a proper icon by detecting the outline and making an ML based assumption what it could be.
  • Quickdraw by Google is a game they created a few years before Autodraw to train the model.
  • ReCaptcha is a CAPTCHA engine that feeds the data back into Google's ML systems. For example, currently being asked to detect street signs or cars is a good indicator that this data will go into the self-driving cars project.
@gerald24
gerald24 / 0_reuse_code.js
Created March 9, 2017 19:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
import 'dart:mirrors';
import 'package:postgresql/postgresql.dart';
var uri = 'postgres://username:password@localhost:5432/database';
@DatabaseScript(1)
initialDatabaseStructur(Connection conn) async {
await conn.execute("create table a (version int, updated timestamp)");
await conn.execute('insert into a values (@version, @updated)', {'version': 2, 'updated': new DateTime.now()});
}

Keybase proof

I hereby claim:

  • I am gerald24 on github.
  • I am yanbao (https://keybase.io/yanbao) on keybase.
  • I have a public key whose fingerprint is D950 9A9F 043B 6D9C 4D32 EA52 F251 960B 34CC 9E41

To claim this, I am signing this object: