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
| var express = require('express'); | |
| var app = express(); | |
| //configuration | |
| app.configure(function () { | |
| app.use(express.logger('dev')); | |
| app.use(express.json()); | |
| app.use(express.urlencoded()); | |
| app.use(app.router); | |
| }); |
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
| from elasticsearch import Elasticsearch | |
| es = Elasticsearch() | |
| res = es.get(index="belajar", doc_type='pesan', id=1) | |
| print(res['_source']) |
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
| function drawSpectrum() { | |
| //RESET | |
| paper.clear(); | |
| var array = new Uint8Array(analyser.frequencyBinCount); | |
| analyser.getByteFrequencyData(array); | |
| audioAnimation = requestAnimationFrame(drawSpectrum); | |
| var SPECTRUMLine = ""; | |
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> | |
| <title>spritesheet</title> | |
| <style type="text/css"> | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| background-color: #000000; | |
| } |
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"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="author" content="Galenic"> | |
| <title>Spectrum</title> | |
| </head> | |
| <body> |
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"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="author" content="Galenic"> | |
| <script src="js/jquery-1.9.1.js"></script> | |
| <script src="js/knockout-2.1.0.js"></script> | |
| <script src="js/Chart.js"></script> | |
| <link rel="stylesheet" href="pure-min.css"> |
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> | |
| <script src="js/jquery-1.9.1.js"></script> | |
| <script src="js/knockout-2.1.0.js"></script> | |
| <script src="js/Chart.js"></script> | |
| </head> | |
| <body> | |
| <div> |
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> | |
| <script src="js/jquery-1.9.1.js"></script> | |
| <script src="js/knockout-2.1.0.js"></script> | |
| <script src="js/Chart.js"></script> | |
| </head> | |
| <body> | |
| <div> |
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"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="author" content="Galenic"> | |
| <script src="js/knockout-2.1.0.js"></script> | |
| <link rel="stylesheet" href="pure-min.css"> | |
| <link rel="stylesheet" href="custom.css"> | |
| <title>Node Showcase</title> |
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
| var bmpData:BitmapData; | |
| var loader:Loader = new Loader(); | |
| loader.contentLoaderInfo.addEventListener(Event.COMPLETE,doneImageLoad); | |
| loader.load(new URLRequest("https://graph.facebook.com/"+fbID+"/picture?type=large")); | |
| function doneImageLoad(e:Event=null):void { | |
| loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,doneImageLoad); | |
| bmpData = e.target.content.bitmapData; | |
| } |