Skip to content

Instantly share code, notes, and snippets.

View tbranyen's full-sized avatar

Tim Branyen tbranyen

View GitHub Profile
@tbranyen
tbranyen / json.js
Last active August 29, 2015 13:57
JSON AMD Loader
define("json", function(require, exports) {
"use strict";
// Cache used to map configuration options between load and write.
var buildMap = {};
load: function(name, req, load, config) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
@tbranyen
tbranyen / release.sh
Created April 18, 2014 03:28
Release.sh
# Build files.
grunt # npm run build / etc.
# Add specific files.
git add dist/
# Commit release.
git commit -m "Release ?.?.?."
# Tag the release.
@tbranyen
tbranyen / output.txt
Created May 2, 2014 03:08
Build failure.
C:\Users\Tim\git\nodegit\build>"C:\Program Files (x86)\MSBuild\12.0\bin\amd64\ms
build.exe" /p:Configuration=Release;Platform=x64 nodegit.vcxproj
Microsoft (R) Build Engine version 12.0.21005.1
[Microsoft .NET Framework, version 4.0.30319.34011]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 5/1/2014 11:07:13 PM.
Project "C:\Users\Tim\git\nodegit\build\nodegit.vcxproj" on node 1 (default tar
gets).
C:\Users\Tim\git\nodegit\build\nodegit.vcxproj(18,3): error MSB4019: The import
@tbranyen
tbranyen / hell-yeah.txt
Created May 2, 2014 03:26
Win64 NodeGit Hell Yea!
> nodegit@0.1.1 install C:\Users\Tim\git\nodegit
> node install.js
[nodegit] Determining dependencies.
[nodegit] Removing vendor/libgit2.
[nodegit] Fetching vendor/libgit2.
[nodegit] Creating vendor/libgit2/build.
[nodegit] Configuring libgit2.
[nodegit] Building libgit2.
[nodegit] Configuring native node module.
define(function(require, exports, module) {
"use strict";
var depA = require("./depA");
var depB = requie("../../../depB");
function DepC() {
}
@tbranyen
tbranyen / register-task.coffee
Last active August 29, 2015 14:01
Infer the task name from the plugin if you directly assign it.
@config @loadNpmTasks "grunt-copy",
# settings
@tbranyen
tbranyen / if-only.js
Last active August 29, 2015 14:01
If only this was true.
function Ctor() {
return {};
}
Ctor.prototype = {};
var c = new Ctor();
c.__proto__ === Ctor.prototype;
{%inject "layouts/index" as "content"%}
<section class="home-page center">
<ul class="posts">
{%each posts as post%}
<li class="post">
<a href="/post/{{post.slug}}"><h2>{{post.title}}</h2></a>
</li>
{%endeach%}
</ul>
</section>
The error:
Error: Error: ENOENT, no such file or directory '/Users/Jmeas/Bocoup/admiralty/client.src/client.src/core/index.js'
---------
The directory structure:
client.src/
bower_components/