Giter Site home page Giter Site logo

blivec's Introduction

👋 Hi, I'm hyrious.

I'm interested in programming languages and I'm playing with front-end.

blivec's People

Contributors

esphas avatar hyrious avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

esphas

blivec's Issues

Combo Usage

with one-thing

bl 12899 | xargs -L1 -I {} one-thing "{}"

Or, write a simple script to filter out username:

import fs from "fs";
import cp from "child_process";

const ROOT = "/usr/local/lib/node_modules/";
const url = new URL("one-thing/index.js", "file://" + ROOT);
const { default: one_thing } = await import(url.toString());

let child = cp.spawn("bl", process.argv.slice(2), {
  stdin: "inherit",
  stdout: "pipe",
  stderr: "inherit",
});

child.stdout.pipe(process.stdout);
child.stdout.on("data", (line) => {
  line = line.toString("utf8");
  let i = line.indexOf("]");
  if (i >= 0) one_thing(line.slice(i + 1));
});
one_thing("");

process.on("SIGINT", () => {
  process.exit();
});

process.on("exit", () => {
  child.kill();
});

Todo (help wanted)

  • with vscode (output in status bar)
  • with sublime text (in status bar)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.