This file contains 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
// | |
// LESS - Leaner CSS v1.1.4 | |
// http://lesscss.org | |
// | |
// Copyright (c) 2009-2011, Alexis Sellier | |
// Licensed under the Apache 2.0 License. | |
// | |
// | |
// Stub out `require` in rhino |
This file contains 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
<div class="test"><!-- Adding text using | results in a newline AFTER (not before) each line-->foo | |
bar | |
baz | |
</div> | |
<div class="test"><!--I thought I could use extra | lines to insert additional whitespace but | |
this currently outputs | characters into the result. | |
-->| | |
foo | |
| |
This file contains 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
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
<div id='container'> | |
<div class='foo'> | |
<div class='bar'> | |
bla | |
</div> |
This file contains 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 crypto = require('crypto'), | |
fs = require('fs'); | |
/** | |
* Calculate the digest of a given file as a hex string. | |
* | |
* @param filename Name of the file to read | |
* @param {String} [algo='sha1'] Hash algorithm (e.g. 'md5' or 'sha1') | |
* @param {function(Exception,String) cb Callback which is invoked with (err,hash) | |
*/ |
This file contains 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
#!node | |
var fs = require('fs'), | |
path = require('path'), | |
gzip = require('./gzip'); | |
function process(fileBody, options, cb) { | |
if(typeof(fileBody) === 'object') { | |
options = fileBody; | |
fileBody = undefined; | |
cb = options; |
This file contains 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 events = require('events'); | |
/** | |
* When operating as a middleware our "origin" server is the next handler in the chain. This | |
* patches the given response object so that when the next handler writes to it we treat that | |
* as a response from the origin server. | |
* | |
* This replaces the writeHead, setHeader, removeHeader, write and end methods | |
* on the given response so that it can store the response in the cache and returns | |
* an object that be used to listen for the next() handler writing data and to send |
This file contains 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
using compiler | |
class CoroutineDslPlugin : DslPlugin | |
{ | |
new make(Compiler c) : super(c) {} | |
override Expr compile(DslExpr dsl) | |
{ | |
src := dsl.src | |
loc := dsl.srcLoc |
This file contains 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
package fan.sys; | |
import java.nio.MappedByteBuffer; | |
public class MmapBuf extends NioBuf { | |
MmapBuf(File file, MappedByteBuffer mmap) { | |
super(mmap); | |
this.file = file; | |
this.mmap = mmap; |
This file contains 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
diff --git a/src/sys/fan/Buf.fan b/src/sys/fan/Buf.fan | |
--- a/src/sys/fan/Buf.fan | |
+++ b/src/sys/fan/Buf.fan | |
@@ -605,10 +605,19 @@ | |
} | |
************************************************************************** | |
+** NioBuf | |
+************************************************************************** | |
+ |
This file contains 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
diff -r 7b06445b390c src/compiler/fan/util/CallResolver.fan | |
--- a/src/compiler/fan/util/CallResolver.fan Thu Mar 08 16:54:10 2012 -0500 | |
+++ b/src/compiler/fan/util/CallResolver.fan Fri Mar 09 12:53:30 2012 +0800 | |
@@ -71,6 +71,12 @@ | |
ffiCoercion | |
return result | |
} | |
+ catch(UnknownTypeErr err) | |
+ { | |
+ expr.ctype = ns.error |
OlderNewer