Code Monkey home page Code Monkey logo

misc's Introduction

Misc - Snippets, write-ups, PoCs, etc.

I realized that people probably don't look through my gists for interesting content any more often than I look through theirs, so I've moved a few interesting ones here. I guess this is the sort of thing I would put on a blog if I had one.

Highlights

GatherJS is a concise example of how to refactor ES2015 code to a point-free, functional style using Ramda.

There have been several occasions where I've illustrated some algorithms (and how to access object internals in Python) for friends:

Python snippets:

There are a few *NIX-y things here as well:

misc's People

Contributors

eenblam avatar

Watchers

James Cloos avatar  avatar  avatar

misc's Issues

Bettercap developer's guide (draft)

These notes were made while reviewing Bettercap v2.8.0 - Vegas Flu.

What does main() do?

tl;dr:

// Init sess attributes to nil or empty vals
sess, _ := session.New()
// Just does s.Modules = append(s.Modules, modules.<module>(sess))
sess.Register(modules.<module>(sess))
// Config empty sess attributes and call various sess.setupThing() methods
// Does a lot, though
sess.Start()
// Parse and sess.Run() commands from -eval at cmdline
// Enable modules listed in sess.Options.Autostart:
sess.Run(modName + " on") for modName in sess.Options.Autostart
// Call sess.RunCaplet(caplet) if caplet specified at cmdline
// Finally, start interactive session
for sess.Active {
    line, _ = sess.Readline()
    for _, cmd := range.ParseCommands(line) {
        sess.Run(cmd)
    }
}

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.