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
if !exists('*SCSStocss') | |
function! SCSStocss() | |
let src = tempname() | |
let dst = substitute( bufname('%'),'.scss','.css','g' ) | |
echo 'writing css to ' . dst | |
execute "w ! sass --scss -s " . dst | |
w | |
endfunction | |
endif |
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
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
using Lambda; | |
@:autoBuild(AbstractClassBuilder.build()) | |
interface AbstractClass {} | |
class AbstractClassBuilder { | |
static var abstractFields:Hash<Array<String>> = new 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
class Test { | |
static function main() { | |
var f:Escaped = '<div>foo</div>'; | |
var k:Foo = {k:'<div>blah!</div>'}; | |
trace(f); // not escaped, simple trace | |
trace(k); // not escaped, simple trace | |
trace(f + ' some other string'); // escaped! | |
trace(k.k + ' extra'); // escaped as field access! |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<script src="http://code.jquery.com/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="https://raw.github.com/bigmlcom/tipsy/master/src/javascripts/jquery.tipsy.js" type="text/javascript" charset="utf-8"></script> | |
<style> | |
.tipsy { font-size: 10px; position: absolute; padding: 5px; z-index: 100000; } | |
.tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; } | |
/* Rounded corners */ | |
.tipsy-inner { border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; } |
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
class Escape{ | |
/** | |
Escape HTML special characters of the string. | |
&, <, >, ", ', `, , !, @, $, %, (, ), =, +, {, }, [, and ] | |
**/ | |
public static function htmlEscape( s : String ) : String { | |
return s.split("&").join("&") | |
.split("<").join("<") | |
.split(">").join(">") | |
.split('"').join(""") |
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
require 'formula' | |
class Nginx < Formula | |
homepage 'http://nginx.org/' | |
url 'http://nginx.org/download/nginx-1.2.3.tar.gz' | |
sha1 '98059ae08ebbfaaead868128f7b66ebce16be9af' | |
devel do | |
url 'http://nginx.org/download/nginx-1.3.5.tar.gz' | |
sha1 'ce0245295f23a54f10d916eb6b7b34469d0618a1' |
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
{ | |
"name": "flare", | |
"children": [ | |
{ | |
"name": "vis", | |
"children": [ | |
{ | |
"name": "events", | |
"children": [ | |
{"name": "DataEvent", "size": 2200, |
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
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
class MacroLambda | |
{ | |
public static function main(): Void | |
{ | |
trace('Hello World'); |
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
#if macro | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
import hxjson2.JSON; | |
import haxe.Http; | |
import neko.FileSystem; | |
#end | |
class Jsonify { | |
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
typedef JsonObj = { | |
glossary:Glossary, | |
} | |
typedef Glossary = { | |
title:String, | |
GlossDiv:GlossDiv, | |
} | |
typedef GlossDiv = { |