GithubHelp home page GithubHelp logo

iwahbe / company-mode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from company-mode/company-mode

0.0 0.0 0.0 3.11 MB

Modular in-buffer completion framework for Emacs

Home Page: http://company-mode.github.io/

Emacs Lisp 99.77% Makefile 0.23%

company-mode's Introduction

Hello world

  • I'm currently working at Pulumi as a Software Engineer.
  • I'm available on twitter at @iwahbe or at linkedin at the same name.
Anything can be complicated. Let's make the simple things simple.

fn fizzbuzz(n: usize) {
    let factory = move |div_by: usize, then: Box<dyn Fn(usize)>, otherwise: Box<dyn Fn(usize)>| {
        move |k: usize| {
            if k % div_by == 0 {
                then(k)
            } else {
                otherwise(k)
            }
        }
    };
    macro_rules! box_me {
        ($e: expr) => {
            Box::new($e)
        };
    }
    let print_k = box_me!(|k| println!("{:?}", k));
    let buzz_yes = box_me!(factory(
        5,
        box_me!(|_| println!("fizzbuzz")),
        box_me!(|_| println!("fizz")),
    ));
    let buzz_no = box_me!(factory(5, Box::new(|_| println!("buzz")), print_k));
    let fizz = factory(3, buzz_yes, buzz_no);
    (1..n + 1).for_each(fizz)
}

company-mode's People

Contributors

aagon avatar amosbird avatar condy0919 avatar cpitclaudel avatar dgutov avatar ergus avatar fbergroth avatar hanazuki avatar havner avatar hlissner avatar holomorph avatar ilohmar avatar iquiw avatar jabranham avatar joaotavora avatar jojojames avatar juergenhoetzel avatar kiennq avatar kkatsuyuki avatar ksjogo avatar monnier avatar nbfalcon avatar nikital avatar nschum avatar proofit404 avatar ptrv avatar ralphsanchez avatar vspinu avatar wilfred avatar zetagon avatar

Watchers

 avatar

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.