- Elm Task - An Elm specific implementation of Observables (more limited?)
- TS and Elm - Once it compiles it usually runs (Provided you're following the warnings provided in either the compiler output (better) or editor (best) )
- Editor and tooling support?
- TS and Elm - Typed Langs
- Most suitable for complete apps, not just a JS compiler
- Enforces Reactive programming - Angular 2 (Observables) provides the same thing, just not forced.
- Know TS, know JS. Able to contribute back to the community easier.
- Object assignment kinda weird:
{ point | x = 42 }
Reason? (overall weird sytnax)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require('puppeteer'); | |
const chalk = require('chalk'); | |
const { green, red, cyan, grey, bold } = chalk; | |
// we assume storybook can visited at http://localhost:9001 | |
const url = 'http://localhost:9001/iframe.html'; | |
const runAxe = () => | |
new Promise((resolve, reject) => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Function.prototype.bind && typeof console == "object" && typeof console.log == "object") { | |
var logFns = ["log", "info", "warn", "error", "assert", "dir", "clear", "profile", "profileEnd"]; | |
$.each(logFns, function (i, method) { | |
console[method] = Function.prototype.call.bind(console[method], console); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { document, window } from '../../../utils/browser'; | |
// https://hackernoon.com/removing-that-ugly-focus-ring-and-keeping-it-too-6c8727fefcd2 | |
export class KeyboardFocusHandler extends React.PureComponent { | |
componentDidMount(): void { | |
window!.addEventListener('keydown', this.handleFirstTab); | |
} | |
componentWillUnmount(): void { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
##If you want to install OpenJDK | |
#sudo apt-get update | |
#sudo apt-get install openjdk-8-jre-headless -y | |
###Or if you want to install Oracle JDK, which seems to have slightly better performance | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<container name="some.container" htmlTag="div" htmlClass="container"> | |
<!-- Force container to render --> | |
<block class="Magento\Framework\View\Element\Text"> | |
<arguments> | |
<argument name="text" xsi:type="string"><![CDATA[ ]]></argument> | |
</arguments> | |
</block> | |
</container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dotenv/config'; | |
import { NestFactory } from '@nestjs/core'; | |
import * as repl from 'repl'; | |
import * as Logger from 'purdy'; | |
const LOGGER_OPTIONS = { | |
indent: 2, | |
depth: 1, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//## Moment.JS Holiday Plugin | |
// | |
//Usage: | |
// Call .holiday() from any moment object. If date is a US Federal Holiday, name of the holiday will be returned. | |
// Otherwise, return nothing. | |
// | |
// Example: | |
// `moment('12/25/2013').holiday()` will return "Christmas Day" | |
// | |
//Holidays: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule App.Schema.SomeSubscriptionTest do | |
use App.SubscriptionCase | |
test "subscription: someSubscription" do | |
subscription_query = """ | |
subscription { | |
someSubscription { | |
someData | |
} | |
} |