Skip to content

Instantly share code, notes, and snippets.

View philips's full-sized avatar
👨‍💻
at the keebs

Brandon Philips philips

👨‍💻
at the keebs
View GitHub Profile
[default] [Wed, 26 Oct 2011 17:01:11 +0000] INFO: bash[install requirements] ran successfully
: stdout
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
FS.read_file("request.json", function (err, da ta)
if (err) then error(err) end
src/lhttp_parser.c: In function ‘lhttp_parser_parse_url’:
src/lhttp_parser.c:328: error: storage size of ‘u’ isn’t known
cc1: warnings being treated as errors
src/lhttp_parser.c:329: warning: implicit declaration of function ‘http_parser_parse_url’
src/lhttp_parser.c:333: error: ‘UF_SCHEMA’ undeclared (first use in this function)
src/lhttp_parser.c:333: error: (Each undeclared identifier is reported only once
src/lhttp_parser.c:333: error: for each function it appears in.)
src/lhttp_parser.c:337: error: ‘UF_HOST’ undeclared (first use in this function)
src/lhttp_parser.c:341: error: ‘UF_PORT’ undeclared (first use in this function)
src/lhttp_parser.c:347: error: ‘UF_PATH’ undeclared (first use in this function)
diff --git a/lib/luvit/module.lua b/lib/luvit/module.lua
index 905ca19..74e8c49 100644
--- a/lib/luvit/module.lua
+++ b/lib/luvit/module.lua
@@ -175,7 +175,7 @@ function module.require(filepath, dirname)
local dir = dirname .. path.sep
repeat
dir = path.dirname(dir)
- local full_path = path.join(dir, modules, filepath)
+ local full_path = path.join(dir, "modules", filepath)
Do you want to confirm the commits you are about to push to origin? Use
this command to get a list of commits:
git fetch --all
# Drop the -p if you don't want diffs
git log -p origin/master..
# Good to push?
$ time ninja -C out/Debug # initial luvit build
ninja -C out/Debug 93.73s user 26.90s system 145% cpu 1:22.99 total
$ time ninja -C out/Debug # no change build
ninja -C out/Debug 0.03s user 0.03s system 88% cpu 0.066 totals
$ time ninja -C out/Debug # luv_stream.c change build
ninja -C out/Debug 0.46s user 0.21s system 94% cpu 0.714 total
$ time make -C out # initial luvit build
make -C out 82.56s user 35.08s system 92% cpu 2:06.70 total
$ time make -C out # no change
---
title: "Finding an audience for C Conf"
topics: [C, cconf.org, osuosl]
layout: post
---
"*Everyone uses C to implement interesting things.*" This was the core
idea that drove me to start working on The C Conference. From operating
systems, libraries, games and embedded devices C that is at the core of
the tech around us.
c:\Buildbot\luvit-windows2008_x64\build>call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
Build started 6/30/2012 5:01:09 AM.
Project "c:\Buildbot\luvit-windows2008_x64\build\luvit.sln" on node 1 (luvit target(s)).
ValidateSolutionConfiguration:
Building solution configuration "Debug|Win32".
Project "c:\Buildbot\luvit-windows2008_x64\build\luvit.sln" (1) is building "c:\Buildbot\luvit-windows2008_x64\build\luvit.vcxproj.metaproj" (2) on node 1 (default targets).
Project "c:\Buildbot\luvit-windows2008_x64\build\luvit.vcxproj.metaproj" (2) is building "c:\Buildbot\luvit-windows2008_x64\build\libluvit.vcxproj.metaproj" (3) on node 1 (default targets).
Project "c:\Buildbot\luvit-windows2008_x64\build\libluvit.vcxproj.metaproj" (3) is building "c:\Buildbot\luvit-windows2008_x64\build\deps\luajit.vcxproj.metaproj" (4) on node 1 (default targets).
# This function replaces any portion of a string and returns an identically
# sized string. How might the sanity tests at the top fail to return an
# identical sized string.
#
# Where else is it broken?
#
# How would you test it?
def slice_and_transform(str, loc, len, rep)
if (loc < 1)

Open Source

What is Open Source?

Licenses