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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>AJAX filter demo</title> | |
</head> | |
<body> | |
<h1>Temporary Worker Database</h1> | |
<div id="workers"></div> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
#calendar{ font-size:14px; } | |
.day{ | |
display: inline-block; |
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
class Birthday < ActiveRecord::Base | |
attr_accessible :date, :name, :day, :month, :year | |
before_validation :make_date | |
def day | |
(date.nil?)? @day : date.split("-")[0] | |
end | |
def month | |
(date.nil?)? @month : date.split("-")[1] |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Tampermonkey form auto-fill</title> | |
<style> | |
label{display: inline-block; margin:5px 0px;} | |
</style> | |
</head> | |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Play sound after countdown</title> | |
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> | |
<style> | |
#count{ | |
color: blue; | |
font-size:70px; |
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 | |
$amount = $_POST['amount']; | |
$from = $_POST['from']; | |
$into = $_POST['into']; | |
$step = $from - $into; | |
echo pow((2),$step*10)*$amount; | |
?> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>AJAX unit Converter</title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<style> | |
#myForm div{margin-bottom:15px;} | |
#result{border:solid 1px green; background: #6F9; margin-top:25px; padding:7px; display:none;} | |
</style> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>AJAX unit Converter</title> | |
<style> | |
#myForm div{margin-bottom:15px;} | |
#result{border:solid 1px green; background: #6F9; margin-top:25px; padding:7px; display:none;} | |
</style> | |
</head> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>jQuery sliding panels example</title> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<div id="menu_panel"> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Simple addition</title> | |
</head> | |
<body> | |
<p>Two times two is: <span id="result"></span><p> | |