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 io.trivium.glue.binding.http; | |
import com.sun.net.httpserver.Headers; | |
import com.sun.net.httpserver.HttpExchange; | |
import com.sun.net.httpserver.HttpHandler; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.charset.Charset; |
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
from operator import add, sub, mul, truediv | |
class Calculator(object): | |
op = {'+': add, '-': sub, '*': mul, '/': truediv} | |
def to_suffix(self, s): | |
st = [] | |
ret = '' | |
tokens = s.split() |
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 insert = function(value, root) { | |
if (!root) { | |
// Create a new root. | |
root = { val: value }; | |
} | |
else { | |
var current = root; | |
while (current) { | |
if (value < current.val) { | |
if (!current.left) { |
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
[Default Text] | |
FileNameExtensions=txt; text; wtx; log; asc; doc; diz; nfo | |
Default Style=font:DejaVu Sans Mono; size:11; fore:#FFFFFF; back:#293134 | |
Margins and Line Numbers=size:-2; fore:#81969a; back:#3f4b4e | |
Matching Braces=size:+1; bold; fore:#000000; back:#FD971F | |
Matching Braces Error=size:+1; bold; fore:#F8F8F0; back:#F92672 | |
Control Characters (Font)=size:-1 | |
Indentation Guide (Color)=fore:#A0A0A0 | |
Selected Text (Colors)=back:#7D9399; eolfilled | |
Whitespace (Colors, Size 0-5)= |
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
<body> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="yourPath/animatedModal.min.js"></script> | |
</body> |
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
// Cross Browser Event Utility | |
// Nicholas Zakas, Professional JavaScript for Web Developers p.441 | |
(function(window, document) { | |
'use strict'; | |
var | |
EventUtil = { | |
addHandler: function( element, type, handler ) { | |
if ( element.addEventListener ) { | |
element.addEventListener ( type, handler, false ); |