Skip to content

Instantly share code, notes, and snippets.

@JohnAlbin
JohnAlbin / _README.md
Last active March 18, 2024 09:25 — forked from clarkdave/createPages.ts
TypeScript + Gatsby config and node API

README

  1. When Gatsby starts up, it will read gatsby-config.js first.
  2. As you can see below, we use that file to require('ts-node').register() which registers a TypeScript evaluator that will be used when Gatsby reads all other API Javascript files. In other words, we only need to do this once in our entire codebase and not in other Gatsby files like gatsby-node.js.
  3. Our gatsby-config.js re-exports all the exported variables available in gatsby-config.ts.
@JohnAlbin
JohnAlbin / xhprof.rb
Created January 25, 2012 01:39 — forked from vlemaire/xhprof.rb
Homebrew Formula for xhprof
require 'formula'
class Xhprof < Formula
url 'http://pecl.php.net/get/xhprof-0.9.2.tgz'
homepage 'http://pecl.php.net/package/xhprof'
md5 'ae40b153d157e6369a32e2c1a59a61ec'
def install
Dir.chdir "xhprof-#{version}/extension" do
system "phpize"