Skip to content

Instantly share code, notes, and snippets.

@thaenor
thaenor / AngularAjax.html
Created January 22, 2015 13:51
Angular Ajax Request
<!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">
@thaenor
thaenor / angularbinding.html
Created January 22, 2015 13:49
Angular binding, calculates stuff
<!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">
@thaenor
thaenor / angular.html
Created January 22, 2015 13:46
Angular with simple controller
<!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>
@thaenor
thaenor / rain.cpp
Created January 10, 2015 14:14
openGL particle rain snow and hail effects
// 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>
@thaenor
thaenor / convert_from_char.cpp
Created December 16, 2014 09:36
Some stuff about converting strings to wide chars
// 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"
@thaenor
thaenor / Eliza.pl
Created December 15, 2014 18:20
ELIZA in Prolog
/*****************************************************************************/
/* 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] */