Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| var fs = require('fs'), | |
| util = require('util'), | |
| Stream = require('stream').Stream; | |
| /** | |
| * Create a bandwidth limited stream | |
| * | |
| * This is a read+writeable stream that can limit how fast it | |
| * is written onto by emitting pause and resume events to | |
| * maintain a specified bandwidth limit, that limit can |
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| var http = require('http'); | |
| var qs = require('querystring'); | |
| function parse_response(res, callback) { | |
| var list = []; | |
| res.on('data', function(chunk) { | |
| list.push(chunk); | |
| }); | |
| res.on('end', function() { | |
| callback(Buffer.concat(list).toString()); |
中文翻译:梁山 英文原文:Adam Wiggins
如今,软件通常会作为一种服务来交付,它们被称为网络应用程序,或“软件即服务”(SaaS)。“十二要素应用程序”(12-Factor App)为构建如下的SaaS应用提供了方法论:
| 'use strict'; | |
| var defaultColors = [ '#000', '#D00', '#00CF12', '#C2CB00', '#3100CA', | |
| '#E100C6', '#00CBCB', '#C7C7C7', '#686868', '#FF5959', '#00FF6B', | |
| '#FAFF5C', '#775AFF', '#FF47FE', '#0FF', '#FFF' ]; | |
| function term2html(text, options) { | |
| options = options || {}; | |
| var colors = options.colors || defaultColors; |
| #I __SOURCE_DIRECTORY__ | |
| #r "libs/NuGet.Core.dll" | |
| #r "System.Xml.Linq" | |
| open NuGet | |
| open System | |
| open System.IO | |
| module NuGet = |
| #!/usr/bin/env bash | |
| # Generic macOS workstation setup | |
| # | |
| # A pragmatic, public bootstrap for developer / technical-productivity Macs. | |
| # It installs Homebrew, common CLI utilities, runtimes, terminal/editor/agentic | |
| # coding apps, viewers, media tools, and a curated font set. | |
| # | |
| # Philosophy: | |
| # - Open-source / cross-platform first. | |
| # - Commercial apps only when explicitly useful/common for this workflow. |
The GCC distributed with CentOS 6 is 4.4.7, which is pretty outdated. I'd like to use gcc 4.8+. Also, when trying to install Linuxbrew you run into a dependency loop where Homebrew's gcc depends on zlib, which depends on gcc. Here's how I solved the problem.
Note: Requires sudo privileges.
| (* | |
| ParserLibrary.fsx | |
| Final version of a parser library. | |
| Related blog post: http://fsharpforfunandprofit.com/posts/understanding-parser-combinators-3/ | |
| *) | |
| module TextInput = | |
| open System |