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
global._poorMansShell = () => { | |
const { spawn } = require("child_process"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const readline = require("readline"); | |
let CURRENT_DIR = process.cwd(); | |
const READLINE = readline.createInterface({ | |
input: process.stdin, |
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
struct WebViewController { | |
pub web_view_handle: Option<Box<web_view::Handle<()>>>, | |
} | |
impl WebViewController { | |
pub fn new() -> WebViewController { | |
WebViewController { | |
web_view_handle: None, | |
} | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>TODO (lit-html)</title> | |
</head> | |
<body> | |
<div id="root"></div> |
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: '3.6' | |
services: | |
flowable-all-in-one: | |
image: flowable/all-in-one | |
depends_on: | |
- flowable-db | |
environment: | |
- SERVER_PORT=9977 | |
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=org.postgresql.Driver | |
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://flowable-db:5432/flowable' |
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
extern crate rand; | |
use rand::Rng; | |
use std::cmp::Ordering; | |
use std::io::prelude::*; | |
enum GameResult { | |
WON, | |
LOST, | |
} |
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
const compose = (...middlewares) => Component => | |
middlewares.reduce((acc, curr) => curr(acc), Component); |
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
export type Receiver = (ctx: any, ...children: any[]) => any; | |
// type DynamicContextGenerator = (ctx: any, i: number) => any; | |
export class Pusher { | |
ctx: any; | |
receiver: Receiver; | |
children: Pusher[]; | |
// getDynamicContext: DynamicContextGenerator = null; | |
constructor(ctx: any, receiver: Receiver, ...children: Pusher[]) { |
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
data:text/html, <style type="text/css">html,body{height:100%;margin:0;padding:0}.e{height:100%}</style><div class="e" id="editor"></div><script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.9/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/javascript");</script> |
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
extends: eslint:recommended | |
parserOptions: | |
ecmaVersion: 8 | |
sourceType: module | |
env: | |
es6: true | |
node: true | |
rules: | |
no-extra-semi: 'off' |
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
// | |
// Bundles everything *except* dependencies/builtins | |
// npm install webpack-configify builtin-modules | |
// | |
const builder = require('webpack-configify').default | |
const builtins = require('builtin-modules') | |
const PROD = process.env.NODE_ENV == 'production' | |
const DEPS = Object.keys(require('./package').dependencies || {}) |
NewerOlder