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
$(function(){ | |
$('.autocomplete .input').live("propertychange keydown keypress keyup input paste focus click", function(e){ | |
e.stopImmediatePropagation(); | |
e.stopPropagation(); | |
var $parent = $(this).parents('.autocomplete'); | |
var $dropdown = $parent.find('.dropdown'); | |
if( $dropdown.length === 0 ) | |
{ |
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
<?php | |
class image | |
{ | |
public $registry; | |
public function resize( $new_img, $tempFile, $saveTo, $MaxWidth, $MaxHeight ) | |
{ | |
$path = pathinfo( $saveTo ); |
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
//XOR logic | |
var xor = new NeuralNetwork( Array( 2, 3, 1 ) ) | |
xor.train( 10000, Map( Array(0.0,1.0)->Array(1.0),Array(1.0,0.0)->Array(1.0),Array(1.0,1.0)->Array(0.0),Array(0.0,0.0)->Array(0.0))) | |
xor.truth_table() | |
//Rudimentary OCR | |
val zero = Array[Double](0,1,1,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,1,1,0) | |
val two = Array[Double](0,1,1,1,0,0,0,0,1,0,0,1,1,1,0,0,1,0,0,0,0,1,1,1,0) |
NewerOlder