Skip to content

Instantly share code, notes, and snippets.

View kharioki's full-sized avatar
🤘
I'm burdened with glorious purpose

Tony Kharioki kharioki

🤘
I'm burdened with glorious purpose
View GitHub Profile
@kharioki
kharioki / eas-build-cheat-sheet.md
Created November 21, 2024 13:27 — forked from kadikraman/eas-build-cheat-sheet.md
The most commonly used commands for building apps with the EAS CLI

EAS Build Cheat Sheet

The most commonly used commands for building apps with the EAS CLI

New Project

  • eas init - create a new project on expo.dev
  • eas build:configure - create eas.json with default configuration

Builds

  • eas build --profile development - development client, JS is loaded from your local machine
@kharioki
kharioki / skeleton.tsx
Created October 28, 2024 13:40 — forked from EvanBacon/skeleton.tsx
Animated skeleton component with Expo SDK 52
"use client";
import React from "react";
import { View, StyleSheet, Animated, Easing, ViewStyle } from "react-native";
const BASE_COLORS = {
dark: { primary: "rgb(17, 17, 17)", secondary: "rgb(51, 51, 51)" },
light: {
primary: "rgb(250, 250, 250)",
secondary: "rgb(205, 205, 205)",
@kharioki
kharioki / VideoThumbnail.tsx
Created November 28, 2023 17:33 — forked from hirbod/VideoThumbnail.tsx
expo-video-thumbnails for iOS, Android and Web
import React, { useState, useEffect, useCallback } from "react";
import { Platform } from "react-native";
import * as VideoThumbnails from "expo-video-thumbnails";
import { Image } from "@showtime-xyz/universal.image";
import Spinner from "@showtime-xyz/universal.spinner";
import { View } from "@showtime-xyz/universal.view";
interface VideoThumbnailProps {
@kharioki
kharioki / GithubIconSVG.js
Created August 1, 2023 17:27
A Github Icon SVG
function Github({ className }: { className?: string }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
fill="currentColor"
viewBox="0 0 24 24"
className={className}
>
@kharioki
kharioki / tsconfig.json
Created March 5, 2023 11:54
node 18 tsconfig
{
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"lib": [
"ESNext"
],
"outDir": "dist"
},
"include": [
"src"

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@kharioki
kharioki / rust-config.sh
Created July 5, 2022 02:51
Rust env configuration for macbook
### MacPorts
# requires the pkg to be present, ignore if already installed
xcode-select --install
sudo xcodebuild -license
sudo installer -pkg MacPorts-2.7.1-11-BigSur.pkg -target /
sudo port selfupdate
### VS Code
# requires the app directory, ignore if already installed
sudo cp -r 'Visual Studio Code.app' /Applications/
@kharioki
kharioki / ExampleFlowNFT.cdc
Created June 28, 2022 14:41
A sample NFT on Flow network
/*
*
* This is an example implementation of a Flow Non-Fungible Token
* It is not part of the official standard but it assumed to be
* similar to how many NFTs would implement the core functionality.
*
* This contract does not implement any sophisticated classification
* system for its NFTs. It defines a simple NFT with minimal metadata.
*
*/
@kharioki
kharioki / marketplace.sol
Created October 4, 2021 21:59
A marketplace smart contract with solidity
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
contract Marketplace {
uint internal productsLength = 0;
struct Product {
address payable owner;
@kharioki
kharioki / RethinkDB.md
Last active September 17, 2021 16:31
A RethinkDB cheatsheet.

RethinkDB Cheat Sheet

Create database

r.dbCreate('mydb')

List databases