This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| autoload -Uz compinit && compinit | |
| autoload -Uz add-zsh-hook | |
| autoload -Uz vcs_info | |
| add-zsh-hook precmd vcs_info | |
| zstyle ':vcs_info:*' enable git | |
| zstyle ':vcs_info:*' formats " %F{cyan}%c%u(%b)%f" | |
| zstyle ':vcs_info:*' actionformats " %F{cyan}%c%u(%b)%f %a" | |
| zstyle ':vcs_info:*' stagedstr "%F{green}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var webpack = require('webpack'); | |
| var MemoryFS = require('memory-fs'); | |
| var SingleEntryDependency = require('webpack/lib/dependencies/SingleEntryDependency'); | |
| var fs = new MemoryFS(); | |
| fs.mkdirpSync('/src'); | |
| fs.writeFileSync('/src/app.js', 'require("./dep.js")', 'utf-8'); | |
| fs.writeFileSync('/src/dep.js', 'module.exports = function(msg){console.log(msg)}', 'utf-8'); | |
| fs.writeFileSync('/src/extra-entry.js', 'require("./dep.js")', 'utf-8'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| /* | |
| * Similar to fgets(), but handles automatic reallocation of the buffer. | |
| * Only parameter is the input stream. | |
| * Return value is a string. Don't forget to free it. | |
| */ | |
| char* ufgets(FILE* stream) | |
| { |