Skip to content

Instantly share code, notes, and snippets.

View rachmadideni's full-sized avatar
🏠
Working from home

Denny Rachmadi rachmadideni

🏠
Working from home
View GitHub Profile
@rachmadideni
rachmadideni / Big List of Real Estate APIs.md
Created May 28, 2025 00:16 — forked from patpohler/Big List of Real Estate APIs.md
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@rachmadideni
rachmadideni / App.tsx
Created February 2, 2025 11:19 — forked from KairuDeibisu/App.tsx
Proof of concept hook API for Excalidraw
import React, { useEffect, useState } from 'react';
import { Excalidraw } from "@excalidraw/excalidraw";
import type { ExcalidrawImperativeAPI } from '@excalidraw/excalidraw/types/types';
import Example from './Example';
import { ExcalidrawAPIProvider } from './hooks/useExcalidrawAPI';
function App() {
const [excalidrawAPI, setExcalidrawAPI] = useState<ExcalidrawImperativeAPI | null>(null);
return (
@rachmadideni
rachmadideni / uuid_v4_excel_formula.txt
Created July 25, 2024 16:19 — forked from msubel/uuid_v4_excel_formula.txt
An Excel Fromula to generate a UUID v4
=LOWER(CONCATENATE(DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;4));4);"-";"4";DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(8;11));DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);DEC2HEX(RANDBETWEEN(0;POWER(16;4));4)))
@rachmadideni
rachmadideni / Client.ts
Created June 14, 2023 10:31 — forked from victorcrbt/Client.ts
TypeORM ManyToMany relation with custom pivot table and column names.
import { Entity, PrimaryGeneratedColumn, Column, ManyToMany, JoinTable } from 'typeorm';
import Company from './Company';
@Entity('clients')
export default class Client {
@PrimaryGeneratedColumn()
id: number;
@Column()
@rachmadideni
rachmadideni / esbuild.md
Created May 21, 2023 06:18 — forked from Med-H/esbuild.md
esbuild with hot reload, typescript server as well as eslint server

An extremely fast JavaScript bundler written in Go.

structure path

  • public
    • favicon.ico
    • locales
  • ...
@rachmadideni
rachmadideni / php-event-listener-example.php
Created March 18, 2023 01:35 — forked from im4aLL/php-event-listener-example.php
PHP event listener simple example
<?php
// Used in https://github.com/im4aLL/roolith-event
class Event {
private static $events = [];
public static function listen($name, $callback) {
self::$events[$name][] = $callback;
}
@rachmadideni
rachmadideni / context.ts
Created December 24, 2021 03:43 — forked from bodokaiser/context.ts
React Hook integration for AWS Amplify Auth
import React from "react"
import { CognitoUser } from "@aws-amplify/auth"
import { useAuth } from "./hooks"
import { SignInInput } from "./types"
interface AuthState {
user: CognitoUser | null
signIn(input : SignInInput): Promise<void>
signOut(): Promise<void>
if(/Android [4-6]/.test(window.navigator.appVersion)) {
window.addEventListener("resize", function() {
console.log('eventListener Added');
console.log(document.activeElement.tagName);
if(document.activeElement.tagName=="INPUT" || document.activeElement.tagName=="TEXTAREA") {
window.setTimeout(function() {
document.activeElement.scrollIntoViewIfNeeded();
},0);
}
})