Skip to content

Instantly share code, notes, and snippets.

View gzm0's full-sized avatar

Tobias Schlatter gzm0

  • Lausanne, Switzerland
View GitHub Profile
"""Rules to run docker-compose.yml files
They require Compose V2 (as part of the docker CLI).
Simply install via the docker repositories:
```
$ sudo apt-get install docker-compose-plugin
```
"""
--- pre.js 2022-12-24 14:40:55.234750119 +0100
+++ post.js 2022-12-24 14:42:09.818873048 +0100
@@ -66797,12 +66797,12 @@
$c_Lorg_scalajs_testsuite_compiler_ReflectiveCallTest$Foo$1.prototype.makeRef__ = (function() {
return new $c_s_Some("hi")
});
-$c_Lorg_scalajs_testsuite_compiler_ReflectiveCallTest$Foo$1.prototype.testRef__s_Option__ = (function(x) {
- this.testRef__s_Option__V(x)
-});
$c_Lorg_scalajs_testsuite_compiler_ReflectiveCallTest$Foo$1.prototype.makeInt__ = (function() {
--- pre.js 2022-12-22 10:29:43.355370867 +0100
+++ post.js 2022-12-22 10:31:36.357524852 +0100
@@ -137170,8 +137170,8 @@
$c_Lorg_scalajs_testsuite_javalib_util_function_BiFunctionTest.prototype.andThen__V = (function() {
var $$x1 = $m_Lorg_junit_Assert$();
var this$1 = $n($m_Lorg_scalajs_testsuite_javalib_util_function_BiFunctionTest$().Lorg_scalajs_testsuite_javalib_util_function_BiFunctionTest$__f_org$scalajs$testsuite$javalib$util$function$BiFunctionTest$$addBiFunc);
- var x$1 = $m_Lorg_scalajs_testsuite_javalib_util_function_BiFunctionTest$().Lorg_scalajs_testsuite_javalib_util_function_BiFunctionTest$__f_org$scalajs$testsuite$javalib$util$function$BiFunctionTest$$incFunc;
- $n($$x1).assertEquals__O__O__V(4, $f_ju_function_BiFunction__java$util$function$BiFunction$$$anonfun$andThen$1__O__O__ju_function_Function__O(this$1, 1, 2, x$1))
+ var after = $m_Lorg_scalajs_testsuite_javalib_util_function_BiFunctionTest$().Lorg_scalajs_testsuite_javalib_util_function_BiFunctionTest$__f_org$scalajs$testsuit
--- pre.js 2022-12-18 10:57:36.309880615 +0100
+++ post.js 2022-12-18 10:59:22.794319201 +0100
@@ -138187,19 +138187,19 @@
$h_Lorg_scalajs_testsuite_javalib_util_function_BiPredicateTest.prototype = $c_Lorg_scalajs_testsuite_javalib_util_function_BiPredicateTest.prototype;
$c_Lorg_scalajs_testsuite_javalib_util_function_BiPredicateTest.prototype.and__V = (function() {
var this$1 = $n($m_Lorg_scalajs_testsuite_javalib_util_function_BiPredicateTest$().Lorg_scalajs_testsuite_javalib_util_function_BiPredicateTest$__f_org$scalajs$testsuite$javalib$util$function$BiPredicateTest$$largerThan10LessThan30);
- var other = $m_Lorg_scalajs_testsuite_javalib_util_function_BiPredicateTest$().Lorg_scalajs_testsuite_javalib_util_function_BiPredicateTest$__f_org$scalajs$testsuite$javalib$util$function$BiPredicateTest$$even;
- $m_Lorg_junit_Assert$().assertTrue__T__Z__V("First true, Second true", $f_ju_function_BiPredicate__java$util$function$BiPredicate$$$anonfun$and$1__O__O__ju_function_BiPredicate__Z(this$1, 22, 22, o

Definitions

Artifacts

Name Description
lib_c scala-library on the compilation classpath
lib_r scala-library on the runtime classpath
c scala compiler
js_c Scala.js compiler
--- /home/tos/gh/scala-js/inl-2.12.js 2022-10-08 17:20:17.863943575 +0200
+++ /home/tos/gh/scala-js/intr-2.12.js 2022-10-08 17:25:31.301139069 +0200
@@ -1695,11 +1695,11 @@
return 0
}
} else if (((bhi === 0) && ((blo & (((-1) + blo) | 0)) === 0))) {
- var pow = ((31 - Math.clz32(blo)) | 0);
+ var pow = ((31 - $uI(Math.clz32(blo))) | 0);
$thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = ((ahi >>> pow) | 0);
return (((alo >>> pow) | 0) | ((ahi << 1) << ((31 - pow) | 0)))
@gzm0
gzm0 / reversi.diff
Created June 25, 2022 07:48
no unused fields reversi diff
--- reversi-pre.js 2022-06-25 09:43:04.512753220 +0200
+++ reversi-post.js 2022-06-25 09:45:58.176033237 +0200
@@ -935,7 +935,6 @@
/** @constructor */
function $c_jl_Class(data0) {
this.jl_Class__f_data = null;
- this.jl_Class__f_cachedSimpleName = null;
this.jl_Class__f_data = data0
}
$c_jl_Class.prototype = new $h_O();
@gzm0
gzm0 / gist:62d568ac43f927f27f1a59f9e58eac1d
Created March 10, 2021 16:43
Quick and dirty nextcloud with collabora / CODE
version: '3'
services:
db:
image: postgres:alpine
restart: always
volumes:
- db:/var/lib/postgresql/data
env_file:
- db.env
--- reversi-pre.js 2022-06-05 09:59:50.998815478 +0200
+++ reversi-post.js 2022-06-05 09:58:58.799970689 +0200
@@ -2085,17 +2085,17 @@
return (0, this.Lreversi_Reversi__f_jQuery)("<input>", {
"type": "button",
"value": "Reset"
- }).click(((arg$outer) => (() => {
- arg$outer.startGame__V()
- }))(this))
+ }).click((() => {

Module Splitting

Quickstart

Instead of fastOptJS / fullOptJS, use fastLinkJS / fullLinkJS and do any or all of the following:

For many small modules