Skip to content

Instantly share code, notes, and snippets.

@farmisen
farmisen / Cargo.toml
Created February 24, 2023 06:34
tauri oauth example
[package]
edition = "2021"
name = "tauri-oauth-example"
version = "0.0.0"
description = "A Tauri App"
license = "Apache-2.0 WITH LLVM-exception"
[build-dependencies]
tauri-build = { version = "1.2", features = [] }
@farmisen
farmisen / dump.txt
Created June 30, 2022 01:07
hex dump
Teensy Loader, Command Line, Version 2.2
Read "./blink.hex": 22528 bytes, 0.3% usage
Soft reboot performed
Waiting for Teensy device...
(hint: press the reset button)
Found HalfKay Bootloader
Read "./blink.hex": 22528 bytes, 0.3% usage
Programming
0x000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
0x000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
:0200000460009A
:100000004643464200000156000000000103030081
:1000100000000000000000000000000000000000E0
:1000200000000000000000000000000000000000D0
:1000300000000000000000000000000000000000C0
:1000400000000000010408000000000000000000A3
:100050000000800000000000000000000000000020
:100060000000000000000000000000000000000090
:100070000000000000000000000000000000000080
:10008000EB04180A063204260000000000000000FD
@farmisen
farmisen / readme-mde.md
Last active October 31, 2021 02:44 — forked from ThePredators/readme-mde.md
Setup Mobile Development Environment

⭐ Setup Mobile Development Environment (Tested on macOS M1+Intel)

Install HomeBrew

## Install xcode utils
xcode-select --install
## Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
## Check that everything is Ok
brew doctor
@farmisen
farmisen / UserProvider.re
Created May 3, 2020 15:54
User provider
module Provider = {
let make = React.Context.provider(UserContext.context);
let makeProps = (~value, ~children, ()) => {
"value": value,
"children": children,
};
};
type state = {user: UserTypes.user};
@farmisen
farmisen / SigninModal.re
Created May 3, 2020 15:53
Signin modal
[@react.component]
let make = (~isActive: bool, ~closeModal: 'a, ~isSignUpModal: bool=false) => {
let initialAuthState = isSignUpModal ? Some("signup") : None;
<Modal isActive closeModal>
<Amplify.Authenticator ?initialAuthState />
</Modal>;
};
@farmisen
farmisen / Amplify.re
Created May 3, 2020 15:52
aws amplify bindings
// aws-amplify
type t;
[@bs.module "aws-amplify"] external amplify: t = "default";
module Configure = {
type config;
[@bs.module "../aws-exports.js"] external awsConfig: config = "default";
[@bs.send] external configure: (t, config) => unit = "configure";
@farmisen
farmisen / output.json
Created January 23, 2020 22:42
yada yada
[
{
"test": true,
"raceID": "17275",
"raceType": "Caucus",
"raceTypeID": "E",
"officeID": "P",
"officeNa.to_a rescueme": "President",
"party": "Dem",
"eevp": 1.0,
* nValt
* chrome
* App Store ->
* xcode
* install command line tool
* xcode-select --install
* in case of failure: http://goo.gl/gZ4L6g
* grolw
* slack
* dropbox
@farmisen
farmisen / _README.md
Created September 3, 2019 00:04 — forked from shaunlebron/_README.md
Direct3D9 Wrapper DLL

In response to a StackOverflow question:

This is code to build a Direct3D wrapper DLL, intercepting all calls to Direct3D interface functions so that you can draw your own objects to display over the game. Just plop the DLL into the same folder as the game's executable, and it should load it as if it were the real d3d9.dll file. It still forwards all calls to the real one in system32, just allows stuff to happen in between. original stackoverflow answer