Skip to content

Instantly share code, notes, and snippets.

View evisong's full-sized avatar
📱

EviSONG evisong

📱
View GitHub Profile
@evisong
evisong / module-self-import.mjs
Last active May 26, 2022 09:34
ESM self import: different behaviors between browser native and es-module-shims
export const b = {
m: () => console.log('Run m')
};
import { b as c } from './module-self-import.mjs';
const m = c.m;
export default function a() {
console.log('Run a');
@evisong
evisong / ConcatenateIntegers.java
Created February 27, 2012 13:56
Concatenation of array elements into an integer with the maximum value (Java porting)
package me.evis.lab.algorithm;
import java.util.Arrays;
import java.util.Comparator;
import org.apache.commons.lang.ArrayUtils;
/**
* Port from https://gist.github.com/1921701#file_concatenate_integers.c
*/