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
:- dynamic state/3. | |
:- dynamic top/2. | |
top(0,0). | |
play(Color, Col) :- | |
top(Col, Row), assert(state(Col, Row, Color)), | |
Next is Row + 1, retract(top(Col, Row)), assert(top(Col, Next)). |
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
<html> | |
<head> | |
<script type='text/javascript' src='https://www.google.com/jsapi'></script> | |
<script type='text/javascript'> | |
google.load('visualization', '1', {'packages': ['geochart']}); | |
google.setOnLoadCallback(drawMarkersMap); | |
function drawMarkersMap() { | |
var data = new google.visualization.DataTable(); | |
data.addColumn('string', 'City'); |
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
require 'csv' | |
class Observation | |
attr :id | |
attr :province | |
attr :indicator_name | |
attr :indicator_value | |
attr :year | |
attr :dataset |
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($){ | |
var Post = Backbone.Model.extend({ | |
defaults : { | |
text : "Default post text", | |
likes : 0 | |
} | |
}); | |
var Posts = Backbone.Collection.extend({ |
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 | |
echo "<u>Hello, World!</u>"; | |
?> |
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
<html> | |
<head> | |
<title>My Website</title> | |
</head> | |
<body> | |
<h1>Title</h1> | |
<p>Hello, This is a text</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
<html> | |
<head></head> | |
<body> | |
<form action='http://localhost/home.php'> | |
Title: <input type=text name=title /><br /> | |
Body: <input type=text name=body /> | |
<input type=submit /> |
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
<html> | |
<head></head> | |
<body> | |
<?php | |
$post1 = array( | |
'title' => 'Title 1', |
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 | |
$post = array( | |
'title' => 'Post title!', | |
'body' => 'Blah blah blah blah blah blah blah blah blah blah blah ' | |
); | |
echo "<h1>".$post['title']."</h1>"; | |
echo "<p>".$post['body']."</p>"; | |
echo "<hr />"; |
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
<form action='newpost.php' method=post> | |
Title: <input type=text name=title /> | |
Body: <input type=text name=body /> | |
<input type=submit /> | |
</form> |
OlderNewer