Skip to content

Instantly share code, notes, and snippets.

Avatar

ryloric ryloric

View GitHub Profile
View coins.lisp
;; Spoj code : COINS
(defun memoize (fn)
(let ((cache (make-hash-table :test #'equal)))
#'(lambda (&rest args)
(multiple-value-bind
(result exists)
(gethash args cache)
(if exists
result
@ryloric
ryloric / main.dart
Created Jul 12, 2020
ChangeNotifier
View main.dart
import 'package:flutter/material.dart';
void main() {
print("Hello World!");
var notifier = TestNotifier();
var listener1 = () {
print("Inside listener 1");
};
@ryloric
ryloric / utils.ts
Last active Jun 29, 2020
Deno test
View utils.ts
export type Person = {
firstName: string,
lastName: string,
age: number
}
You can’t perform that action at this time.