This file contains hidden or 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 java.util.function.IntSupplier; | |
| final class ClosureCounter { | |
| private int count = 0; | |
| public ClosureCounter() { | |
| } | |
| public IntSupplier makeCounter(int start) { |
This file contains hidden or 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 java.util.Optional; | |
| final class OptionalOperator { | |
| public static void main(String[] args) { | |
| StringBuilder sb = new StringBuilder(); | |
| Optional<StringBuilder> osb1 = Optional.of(sb); | |
| Optional<StringBuilder> osb2 = Optional.ofNullable(sb); // If value is null |
This file contains hidden or 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 (process.argv.length < 3) { | |
| return; | |
| } | |
| process.stdout.setEncoding('UTF-8'); | |
| process.stderr.setEncoding('UTF-8'); | |
| var Twitter = require('twitter'); | |
| var bot = new Twitter({ |
This file contains hidden or 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
| process.stdin.setEncoding('UTF-8'); | |
| process.stdout.setEncoding('UTF-8'); | |
| var readline = require('readline'); | |
| var i = readline.createInterface({ | |
| input : process.stdin, | |
| output : process.stdout | |
| }); |
This file contains hidden or 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> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Capture Face</title> | |
| <script type="text/javascript" src="ccv.js"></script> | |
| <script type="text/javascript" src="face.js"></script> | |
| <script type="text/javascript"> | |
| <!-- | |
| (function() { |
This file contains hidden or 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> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Vertical Slider by CSS3</title> | |
| <style type="text/css"> | |
| [type="range"] { | |
| margin-top:25%; |
This file contains hidden or 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> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Bar Charts | Google Charts</title> | |
| <style type="text/css"> | |
| * { | |
| margin:0px; | |
| padding:0px | |
| } |
This file contains hidden or 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> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Pie Chart | Google Charts</title> | |
| <style type="text/css"> | |
| * { | |
| margin:0px; | |
| padding:0px | |
| } |
This file contains hidden or 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> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Topic Path by CSS3</title> | |
| <style type="text/css"> | |
| * { | |
| margin:0px; | |
| padding:0px; |
This file contains hidden or 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 classes { | |
| import flash.display.Sprite; | |
| import flash.events.NetStatusEvent; | |
| import flash.events.AsyncErrorEvent; | |
| import flash.net.NetConnection; | |
| import flash.net.NetStream; | |
| import flash.media.Video; | |
| import flash.media.SoundTransform; | |
| import flash.events.Event; |