Skip to content

Instantly share code, notes, and snippets.

View iamtekeste's full-sized avatar
having fun with code

Tekeste Gebreanenia iamtekeste

having fun with code
View GitHub Profile
iamtekeste / BinaryWriter.ts
Created June 23, 2024 12:33
BinaryWriter to be used with Rive projects
enum Endian {
Little = "little",
Big = "big",
class BinaryWriter {
variableEncodeList = new Uint8Array(8);
writeIndex = 0;
alignment: number; // Add this line
endian: Endian; // Add this line
buffer: Uint8Array; // Add this line
iamtekeste / writer.jsx
Created April 10, 2024 00:30
Rive file writer
import "./styles.css";
import { useRive, Layout, Fit, Alignment } from "@rive-app/react-canvas";
// @refresh reset
var Endian;
(function (Endian) {
Endian["Little"] = "little";
Endian["Big"] = "big";
})(Endian || (Endian = {}));
var BackingType;
iamtekeste / credentials.yml
Created May 31, 2022 04:28 — forked from zsyed91/credentials.yml
Using Rails encrypted credentials with database.yml
# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.
secret_key_base: "key generated from <rails secret>"
database_username: username
database_password: password
iamtekeste / render.js
Created May 27, 2022 22:27
Craft.js renderer
// source:
import React, {Fragment} from "react"
import Container from "./Container.jsx"
import Text from "./Text.jsx"
import Button from "./Button.jsx"
const contentElements = {
iamtekeste / config.log
Created June 23, 2020 16:35
Output for `./configure --enable-bundled-libs`
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by dvisvgm configure 2.9.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --enable-bundled-libs
## --------- ##
## Platform. ##
iamtekeste / react-query.d.ts
Created June 6, 2020 21:04 — forked from swyxio/react-query.d.ts
react query fixed working types - its not updated for v1 so i fixed locally
// Type definitions for react-query 0.3
// Project:
// Definitions by: Lukasz Fiszer <>
// Jace Hensley <>
// Matteo Frana <>
// Definitions:
import { ComponentType } from 'react';
// overloaded useQuery function with pagination
#include "config.h"
#include <poppler-config.h>
#include <cstdint>
#include <cstdio>
#include <cmath>
#include <cstring>
#include "goo/gmem.h"
#include "goo/GooString.h"
#include "GlobalParams.h"
#include "Object.h"
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
set(ENV{PKG_CONFIG_PATH} "/Users/tkidanu/playground/pdf2svg/mylibs/lib/pkgconfig")
set(ENV{EM_PKG_CONFIG_PATH} "/Users/tkidanu/playground/pdf2svg/mylibs/lib/pkgconfig")
iamtekeste / InkscapeBatchConvert.bat
Created March 25, 2020 22:20 — forked from JohannesDeml/
Batch converter for windows using inkscape and the command line
@Echo off
set "inkscapePath=C:\Program Files\Inkscape\inkscape.exe"
set /a count=0
set validInput1=svg
set validInput2=pdf
set validInput3=eps
set validOutput1=eps
set validOutput2=pdf
set validOutput3=png
iamtekeste /
Created January 17, 2020 15:08 — forked from tobywf/
Build dvisvgm and kpathsea on macOS
set -xeuo pipefail
TEX="$(kpsewhich -var SELFAUTOLOC)"
echo "$PREFIX, $TEX"
brew install automake freetype ghostscript potrace