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
/*****************************************************************************/ | |
/* ELIZA in Prolog */ | |
/* */ | |
/* Viren Patel */ | |
/* Artificial Intelligence Programs */ | |
/* University of Georgia, Athens, Georgia */ | |
/* Email: [email protected] */ | |
/* */ | |
/* minor changes by Frank Schilder (FS) */ | |
/* Email: [email protected] */ |
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
// convert_from_char.cpp | |
// compile with: /clr /link comsuppw.lib | |
#include <iostream> | |
#include <stdlib.h> | |
#include <string> | |
#include "atlbase.h" | |
#include "atlstr.h" | |
#include "comutil.h" |
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
// May Ang | |
// [email protected] | |
// CS 161 - Animation & Visualization | |
// Final Project - Rain/Hail/Snow Simulation | |
//source: https://classes.soe.ucsc.edu/cmps161/Winter09/projects/mang/finalproject.html | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> |
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= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script> | |
</head> | |
<body> | |
<p>Try to change the names.</p> |
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= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script> | |
</head> | |
<body> | |
<div data-ng-app="" data-ng-init="quantity=1;price=5"> |
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= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-app="" ng-controller="customersController"> |
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= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script> | |
</head> | |
<body> | |
<h2>Validation Example</h2> |
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
%originally from http://www.cs.toronto.edu/~sheila/384/w11/simple-prolog-examples.html% | |
This is obviously not expected to work with a raw copy and paste... obviously | |
--------------------------- | |
1. Here are some simple clauses. | |
likes(mary,food). | |
likes(mary,wine). | |
likes(john,wine). | |
likes(john,mary). |
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
dstPosto(pt1,pt2,21). | |
dstPosto(pt3,pt4,55). | |
dstPosto(pt5,pt3,30). | |
dstPosto(pt2,pt5,19). | |
dstPosto(pt4,pt2,13). | |
dstPosto(pt1,pt6,28). | |
abstrobot(r1, [pt4, pt5, pt2, pt6, pt5]). | |
abstrobot(r2, [pt1, pt3, pt6]). | |
abstrobot(r3, [pt2, pt5, pt3, pt2, pt6, pt1, pt5]). |
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
/*Content originally from CodeSchool's "try jQuery" lesson. http://try.jquery.com/levels/4/challenges/16 */ | |
$(document).ready(function() { | |
/* | |
* this first part fetches the price and multiplies for the number input in the form | |
*/ | |
$("#nights").on("keyup", function() { | |
var nights = +$(this).val(); | |
var dailyPrice = +$(this).closest(".tour").data("daily-price"); | |
$("#total").text(nights * dailyPrice); | |
$("#nights-count").text($(this).val()); |
OlderNewer