Put running process to background: Ctrl+Z
Put process back to foreground to continue work: fg
/** | |
* @description minimal mark and relocation utils files | |
* all ideas extract from alienzhou/web-highlighter | |
**/ | |
const ROOT_IDX = -2; | |
const UNKNOWN_IDX = -1; | |
function genDomMeta($node, offset, $root) { |
import "./style.css"; | |
import "quill/dist/quill.snow.css"; | |
import Quill from "quill"; | |
const editorEl = document.getElementById("editor"); | |
const markerListEl = document.getElementById('marker-list'); | |
const markers = {} | |
// ==UserScript== | |
// @name Trello Board Information Extractor | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Extract and display Trello board information in a modal | |
// @author ISON | |
// @match https://*.trello.com/* | |
// @grant none | |
// ==/UserScript== |
{-# LANGUAGE OverloadedStrings #-} | |
-- 半加器 | |
bitAdd :: String -> String -> (String, String) | |
-- 1 + n | |
bitAdd "1" "2" = ("0", "3") | |
bitAdd "1" "1" = ("0", "2") | |
bitAdd "1" "3" = ("0", "4") | |
bitAdd "1" "4" = ("0", "5") |
#!/bin/sh | |
## ensure git bash is installed on windows | |
set -e; | |
echo "clean project"; | |
rm -rf dist.zip dist/; |
// some code from <https://stackoverflow.com/questions/46629086/node-js-file-upload-server-without-third-party-module> | |
var http = require('http'); | |
var fs = require('fs') | |
var buffer = require('buffer') | |
function parseForm(boundary, data){ | |
var form = {}; | |
var delimiter = Buffer.from("\r\n--" + boundary); | |
var body = extract(data, "--" + boundary + "\r\n"); |
var useref = require('useref'); | |
var { keys } = require('lodash'); | |
var gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var nano = require('gulp-cssnano'); | |
var uglify = require('gulp-uglify'); | |
var runSequence = require('run-sequence'); | |
var path = require('path'); | |
var helpers = require('./helpers') |
#! --coding: utf-8-- | |
from Tkinter import * | |
import random | |
master = Tk() | |
master.title("康威生命游戏") | |
WIDTH=700 | |
HEIGHT=700 |