Phabricator

repository·master·Indexed 11 days ago

https://github.com/phacility/phabricator

A collection of web applications designed for software development workflows. Note that as of June 1, 2021, the project is no longer actively maintained.

Tokens
7.8K
Snippets
40
Records
57
Agent score
96%

What's inside Phabricator

  1. Load D3 via CDN or Script Tag

    master

    To use D3 directly in a browser environment, you can load it from d3js.org, CDNJS, or unpkg using a <script> tag.

    <!-- Standard version -->
    <script src="https://d3js.org/d3.v5.js"></script>
    
    <!-- Minified version -->
    <script src="https://d3js.org/d3.v5.min.js"></script>
    
    <!-- Standalone microlibrary example (d3-selection) -->
    <script src="https://d3js.org/d3-selection.v1.js"></script>
  2. Use D3 in Node.js

    master

    In a Node.js environment, you can use require to load the full D3 library or manually combine individual modules using Object.assign to create a single d3 object.

    // Load full library
    var d3 = require("d3");
    
    // Combine individual modules into a d3 object
    var d3 = Object.assign({}, require("d3-format"), require("d3-geo"), require("d3-geo-projection"));
  3. Build Octicons from source

    master

    If you have modified the raw source files in /lib/, you must rebuild the package to regenerate the optimized files in /build/.

    1. Open the Octicons directory in a terminal.
    2. Install dependencies: npm install.
    3. Run the build task: npm run build (this executes a Grunt task to process SVGs).
    npm install
    npm run build
  4. What is Javelin and when should I use it?

    master

    Javelin is a compact JavaScript library built around the principle of event delegation.

    Use Cases:

    • High-performance projects: Its primary design goal is performance, making it ideal for applications where execution speed and efficiency are critical.
    • Large-scale applications: It is specifically optimized for environments where performance outweighs the need for a large feature set or ease of development.

    When to avoid:

    • Small-scale projects: For smaller projects where developer ergonomics, ease of development, or a rich feature set are more important than raw performance, other libraries may be more suitable.