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
| <?xml version='1.0' encoding='utf-8'?> | |
| <widget id="io.hyn.app" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | |
| <name>Hyn</name> | |
| <description>An awesome Ionic/Cordova app.</description> | |
| <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author> | |
| <content src="index.html" /> | |
| <access origin="*" /> | |
| <allow-navigation href="*" /> | |
| <allow-intent href="http://*/*" /> | |
| <allow-intent href="https://*/*" /> |
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
| // Get measurements for a new flower to generate a prediction | |
| // The first argument is the data, and the second is the shape. | |
| const inputData = tf.tensor2d([[4.8, 3.0, 1.4, 0.1]], [1, 4]); | |
| // Get the highest confidence prediction from our model | |
| const result = model.predict(inputData); | |
| const winner = irisClasses[result.argMax().dataSync()[0]]; | |
| // Display the winner | |
| console.log(winner); |
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
| angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
| .run(function(DB) { | |
| DB.init(); | |
| }); |
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
| <?php | |
| // See: http://blog.ircmaxell.com/2013/02/preventing-csrf-attacks.html | |
| // Start a session (which should use cookies over HTTP only). | |
| session_start(); | |
| // Create a new CSRF token. | |
| if (! isset($_SESSION['csrf_token'])) { | |
| $_SESSION['csrf_token'] = base64_encode(openssl_random_pseudo_bytes(32)); | |
| } |
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>SVG Test</title> | |
| </head> | |
| <body> | |
| <svg id="s" version="1.1" | |
| width="300" height="300" | |
| xmlns="http://www.w3.org/2000/svg"> |
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
| <?php | |
| /** | |
| * This implementation allows to process an object at a specific level | |
| * when it has been fully parsed | |
| */ | |
| class ObjectListener implements \JsonStreamingParser_Listener { | |
| /** @var string Current key **/ | |
| private $_key; |
NewerOlder