Skip to content

Instantly share code, notes, and snippets.

View ansyeow's full-sized avatar

Andrew NS Yeow ansyeow

  • PJ, Selangor, Malaysia
View GitHub Profile
@norswap
norswap / Combinators.java
Last active January 19, 2023 09:12
Handwritten JSON Parser with Parser Combinators
// Code for lecture [7. Parsing Combinators]
// https://www.youtube.com/watch?v=3Cfq4i6754s&list=PLOech0kWpH8-njQpmSNGSiQBPUvl8v3IM&index=7
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Deque;
import java.util.HashMap;
import java.util.Scanner;
import java.util.function.Supplier;
#define _GNU_SOURCE
#include <sched.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <unistd.h>
int main (int argc, char *argv[]) {
if (argc != 2) {
@PARC6502
PARC6502 / OpenSourceBaas.md
Last active October 11, 2025 11:07
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Supabase - ~52K stars

  • Designed explicitly as an open source firebase alternative
  • Typescript based
  • Docker support

Appwrite - ~32K stars

  • Written in JavaScript and PHP
  • Docker based
  • Realtime support across all services
@JohnMichaelMiller
JohnMichaelMiller / acg.rds-multi-az.cf.yaml
Created October 19, 2018 16:10
AWS CloudFormation template for the RDS multi-AZ, data encryption, and read replica labs from the acloud.guru AWS Certified Develper Associate course
---
### AWS CloudFormation template for the RDS multi-AZ, data
### encryption, and read replica labs from the acloud.guru
### AWS Certified Develper Associate course
AWSTemplateFormatVersion: 2010-09-09
Description: acloud.guru RDS Multi-AZ and Read Replica Lab
Parameters: # Default values for template parameters are useful when testing templates in the AWS Web Console
dbInstanceType:
Type: String
Default: db.t2.small
@justdoit0823
justdoit0823 / netcat_examples.md
Last active April 15, 2023 20:23
A collection of examples about using netcat.

Netcat Examples

Establish TCP Connection

  • Connect to network host over TCP connection

In this tutorial we're going to build a set of parser combinators.

What is a parser combinator?

We'll answer the above question in 2 steps.

  1. What is a parser?
  2. and, what is a parser combinator?

So first question: What is parser?

@bhb
bhb / blockchain-w-spec.md
Last active July 1, 2022 11:24
Building a blockchain, assisted by Clojure spec

Building a blockchain, assisted by Clojure spec

In an effort to gain at least a superficial understanding of the technical implementation of cryptocurrencies, I recently worked my way through "Learn Blockchains by Building One" using Clojure.

This was a good chance to experiment with using spec in new ways. At work, we primarily use spec to validate our global re-frame state and to validate data at system boundaries. For this project, I experimented with using instrumentation much more pervasively than I had done elsewhere.

This is not a guide to spec (there are already many excellent resources for this). Rather, it's an experience report exploring what went well, what is still missing, and quite a few unanswered questions for future research. If you have solutions for any of the problems I've presented, please let me know!

You don't need to know or care about blockchains to understand the code be

@fmbenhassine
fmbenhassine / UppercaseJob.java
Last active March 23, 2021 16:19
An example of how to use Easy Jobs to run Easy Batch jobs #EasyBatch #EasyJobs
import org.easybatch.core.job.Job;
import org.easybatch.core.job.JobBuilder;
import org.easybatch.core.processor.RecordProcessor;
import org.easybatch.core.reader.StringRecordReader;
import org.easybatch.core.record.StringRecord;
import org.easybatch.core.writer.StandardOutputRecordWriter;
public class UppercaseJob {
private String text;
@kerryboyko
kerryboyko / README.md
Last active April 26, 2023 16:08
VueJS Best Practices Guide

Deverus Vue.js Style Guide

Guide for developing Vue.js applications.

v. 0.0.1

Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.

However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.

<template>
<div id="app">
<p>
Pending: {{ $store.state.getInfoPending }}
</p>
<p>
{{ $store.state.getInfoData }}
</p>
</div>
</template>