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
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
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>"
production:
database_username: username
database_password: password
@iamtekeste
iamtekeste / render.js
Created May 27, 2022 22:27
Craft.js renderer
// source: https://paste.zauberfisch.com/d/62871445eda3b/craftjs-frontend.js.txt
import React, {Fragment} from "react"
import Container from "./Container.jsx"
import Text from "./Text.jsx"
import Button from "./Button.jsx"
const contentElements = {
Container,
Text,
@iamtekeste
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
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: https://github.com/tannerlinsley/react-query
// Definitions by: Lukasz Fiszer <https://github.com/lukaszfiszer>
// Jace Hensley <https://github.com/jacehensley>
// Matteo Frana <https://github.com/matteofrana>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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"
project(poppler)
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
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")
include(PopplerDefaults)
include(PopplerMacros)
@iamtekeste
iamtekeste / InkscapeBatchConvert.bat
Created March 25, 2020 22:20 — forked from JohannesDeml/README.md
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
iamtekeste / build-dvisvgm.sh
Created January 17, 2020 15:08 — forked from tobywf/build-dvisvgm.sh
Build dvisvgm and kpathsea on macOS
#!/bin/bash
set -xeuo pipefail
IFS=$'\n\t'
PREFIX="${1:-/usr/local/dvisvgm}"
TEX="$(kpsewhich -var SELFAUTOLOC)"
echo "$PREFIX, $TEX"
brew install automake freetype ghostscript potrace
@iamtekeste
iamtekeste / table.mkdn
Created August 27, 2019 20:59 — forked from ngs/table.mkdn
Unicode character table

A

Description Entity Preview
A With Acute, Latin Capital Letter &#x00C1; Á
A With Acute, Latin Small Letter &#x00E1; á
A With Breve, Latin Small Letter &#x0103; ă
A With Caron, Latin Small Letter &#x01CE; ǎ
A With Circumflex, Latin Capital Letter &#x00C2; Â
A With Circumflex, Latin Small Letter &#x00E2; â