This file contains hidden or 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
{ | |
"scripts": { | |
"start": "parcel src/assets/index.html", | |
"build": "NODE_ENV=production parcel build src/ts/index.ts --no-cache" | |
}, | |
"devDependencies": { | |
"@types/clipboard": "^1.5.36", | |
"@types/codemirror": "0.0.38", | |
"@types/mithril": "^1.1.12", | |
"@types/quill": "0.0.29", |
This file contains hidden or 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
version: "2.1" | |
services: | |
inspector: | |
image: swift:4.0.2 | |
working_dir: /app | |
command: .build/debug/Run | |
ports: | |
- "8080:8080" |
This file contains hidden or 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
#!/bin/bash | |
anybarNotify () { | |
(echo -n "$1" | nc -u -c -w 1 localhost 1738) & | |
} | |
if pgrep AnyBar > /dev/null; then | |
echo "skip starting anybar" | |
else | |
echo "starting anybar" |
This file contains hidden or 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 Foundation | |
private func bash(_ commandName: String, _ arguments: [String]) -> String? { | |
guard var whichPathForCommand = executeShell(command: "/bin/bash" , arguments:[ "-l", "-c", "which \(commandName)" ]) else { | |
return "\(commandName) not found" | |
} | |
whichPathForCommand = whichPathForCommand.trimmingCharacters(in: NSCharacterSet.whitespacesAndNewlines) | |
return executeShell(command: whichPathForCommand, arguments: arguments) | |
} |
This file contains hidden or 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
class Reader<E, A> { | |
let g: (E) -> A | |
init(g: @escaping (E) -> A) { | |
self.g = g | |
} | |
func apply(e: E) -> A { | |
return g(e) | |
} | |
func map<B>(f: @escaping (A) -> B) -> Reader<E, B> { | |
return Reader<E, B>{ e in f(self.g(e)) } |
This file contains hidden or 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
{ | |
"id": "https://tools.ietf.org/rfc/rfc7807.txt", | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"description": "schema for a rfc7807", | |
"definitions": { | |
"validation": { | |
"type": "object", | |
"required": [ | |
"type" | |
], |
This file contains hidden or 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 m from 'mithril'; | |
import Page from "../page/page"; | |
import * as Stomp from 'stompjs'; | |
import * as SockJS from 'sockjs-client'; | |
var vm = { | |
value: m.prop('') | |
}; | |
const StatisticsPage = { |
This file contains hidden or 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 jsinterop.annotations.JsConstructor; | |
import jsinterop.annotations.JsFunction; | |
import jsinterop.annotations.JsIgnore; | |
import jsinterop.annotations.JsMethod; | |
import jsinterop.annotations.JsOverlay; | |
import jsinterop.annotations.JsPackage; | |
import jsinterop.annotations.JsProperty; | |
import jsinterop.annotations.JsType; | |
import com.google.gwt.dom.client.Element; |
This file contains hidden or 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 jsinterop.annotations.JsFunction; | |
import jsinterop.annotations.JsMethod; | |
import jsinterop.annotations.JsType; | |
/** | |
* Created by bduisenov on 15/12/15. | |
*/ | |
public class Rx { | |
@FunctionalInterface |
This file contains hidden or 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 com.google.gwt.dom.client.Element; | |
import jsinterop.annotations.JsFunction; | |
import jsinterop.annotations.JsMethod; | |
import jsinterop.annotations.JsPackage; | |
import jsinterop.annotations.JsType; | |
/** | |
* Created by bduisenov on 27/10/15. | |
*/ | |
@JsType(namespace = JsPackage.GLOBAL, name = "jQuery", isNative = true) |
NewerOlder