.> view base..
(base..) : (b ->{𝕖} c) -> (a ->{𝕖} b) -> a ->{𝕖} c
(base..) f g x = f (g x)
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 QtQuick 2.0 | |
import MuseScore 3.0 | |
MuseScore { | |
menuPath: "Plugins.pluginName" | |
description: "Description goes here" | |
version: "1.0" | |
onRun: { | |
var loops = 0 |
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
// Based on info from this post https://brightinventions.pl/blog/migrating-away-from-bintray-jcenter-when-there-is-no-alternative-repository/#setting-up-a-local-maven-repository | |
/** | |
* How to use this tool: | |
* 1. comment out `jcenter()` in your build.gradle | |
* 2. run `./gradlew :app:dependencies > deps.log` | |
* 3. mkdir `local-maven` | |
* 4. add `maven { url = uri("${rootProject.projectDir}/local-maven") }` | |
* right before the commented-out `jcenter()` calls in your build.gradle. | |
* 5. run `node missing-deps-to-local.js ./local-maven < deps.log` |
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
@ffi("Vec2") type Vec2#08f7c2ac = { | |
x: float#builtin, | |
y: float#builtin, | |
}; | |
@ffi("End") type End#830ad468 = {}; | |
@ffi("Start") type Start#098d99e8 = {}; | |
@ffi("Center") type Center#1189540a = {}; |
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
(defn code-mirror | |
"Create a code-mirror editor. The parameters: | |
value-atom (reagent atom) | |
when this changes, the editor will update to reflect it. | |
options | |
:style (reagent style map) | |
will be applied to the container element | |
:js-cm-opts | |
options passed into the CodeMirror constructor | |
:on-cm-init (fn [cm] -> nil) |
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
<script> | |
__REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__ | |
</script> | |
<script src="vendor.js"></script> | |
<script> | |
window.React = parent.React = require('react') | |
window.onload = function() { | |
React.render(React.createElement('strong', null, 'hello'), document.body) | |
} | |
</script> |
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
// @flow | |
import {Component, type Node} from 'react' | |
import authenticatedApolloClient from '../shared/authenticatedApolloClient'; | |
/** | |
* Example usage: | |
* | |
* const ScreenWithLoader = (props) => <ApolloWrapper | |
* queryOptions={{ |
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
(define stack '()) | |
(define (throw-effect k effect) | |
(let* ((handler (car stack)) (name (car handler)) (fn (cadr handler))) | |
(set! stack (cdr stack)) | |
(print "Calling " name) | |
(fn (cons 'effect (cons k effect))) | |
) | |
) |
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
module StringContext = | |
Context.MakePair({ | |
type t = string; | |
let defaultValue = "Awesome"; | |
}); | |
let component = ReasonReact.statelessComponent("Tree"); | |
let make = _children => { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.