Skip to content

Instantly share code, notes, and snippets.

View briandw's full-sized avatar

Brian Williams briandw

  • Mountain View, Ca
View GitHub Profile
@briandw
briandw / test_lldb_line_number.py
Last active March 6, 2024 00:02
Compile a c program with Clang, debug it with LLDB and trap at a function. Why doesn't the line number match?
from pathlib import Path
import lldb
import os
from lldb import SBError, SBThread, SBFrame
def main():
c_code = """#include <stdio.h>
@briandw
briandw / VisionTransformerMNIST.ipynb
Last active October 9, 2020 05:41
Notebook of the Vision Transformer paper with MNIST
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//
// LightsModelProcessor.m
// ImageRecognizer
//
// Created by Brian Williams on 12/6/17.
// Copyright © 2017 Rantlab. All rights reserved.
//
#import "LightsModelProcessor.h"
#import "Lights.h"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@briandw
briandw / 25lights2-1.ipynb
Created December 3, 2017 21:18
25lights part II CNN
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am briandw on github.
  • I am rantlab (https://keybase.io/rantlab) on keybase.
  • I have a public key ASAXFzgBe791CYdjYJ_07qEcBV5urYbGU1bTrGo2ceVtyQo

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@briandw
briandw / 25lights_image_gen.ipynb
Last active October 2, 2017 00:03
25 Lights First Embed part
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.