Skip to content

Instantly share code, notes, and snippets.

@rupertlssmith
rupertlssmith / ElmPackageServer.md
Last active February 28, 2024 17:38
Elm Package Server

Eco - An Alternate Elm Package Server

Eco is an alternative package management system for Elm. The name can stand for "Elm Compiler Offline".

The idea is to have a more configurable package management system for Elm, that allows for sharing private packages.

The main use case for this is intended to be within organizations, where a software developer or team can publish a private package that applications, or other private packages, in that organization can consume. This will support transitive dependency resolution in the same way that public Elm packages do.

The main repository and source of truth will be the existing package.elm-lang.org site.

@akoppela
akoppela / CustomElementForAngularComponent.js
Created March 19, 2020 08:49
Bare minimum to compile AngularJS component with custom Element.
angular
.module('shared', [])
.run(function ($rootScope, $compile) {
'use strict';
function CustomElementConstructor() {
// Super call
var self = HTMLElement.call(this) || this;
// Create custom element scope which is used as a store of data and as a parent for component scope.
@akoppela
akoppela / README.md
Last active June 10, 2023 18:32
Custom Elements with ES5 syntax

You'll need to include two pollyfils before you include a code with your custom elements:

webcomponents/webcomponentsjs/custom-elements-es5-adapter.js - this is for new browsers in order to understand ES5 syntax

webcomponents/custom-elements/custom-elements.min.js - this is for old browsers without customElements support

You can add them to your index.html file in the following way:

<div id="custom-elements-adapter">
@JPvRiel
JPvRiel / apt_pinning_priorities.md
Last active June 14, 2024 18:56
Apt package pinning and priorities
@staltz
staltz / introrx.md
Last active July 4, 2024 10:11
The introduction to Reactive Programming you've been missing