Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jrdndj/CP2preps
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdndj committed Jun 16, 2020
2 parents 48bc2d2 + f81ee4b commit 9577559
Show file tree
Hide file tree
Showing 4,319 changed files with 530,704 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@

<html>
<head>
<title>Dr.Norman Borlaug</title>
<style>
a:link {
color: white;
background-color: black;
text-decoration: none;
}
a:visited {
color: grey;
background-color: black;
text-decoration: none;
}
a:hover {
color: green;
background-color: black;
text-decoration: underline;
}
a:active {
color: yellow;
background-color: black;
text-decoration: underline;
}
.tekks{
margin-left : 400px;
margin-right : 400px;
background-color:Grey;
color:black;
font-family:Times;
font-size: 15;
}
</style>
</head>
<body style="background-color:Grey;">
<div style=" color : black; text-align: center;">
<h1 style=" font-family:Times;font-size: 35;"> Dr.Norman Borlaug</h1>
<h4 style="font-family:Times;font-size: 15">The man who saved a billion lives
</h4></div>
<div style="background-color:white;">
<p style="font-size: 10;text-align: center;">
<strong style="font-size: 25;">
<a href="#1910"> 1910s</a>
<a href="#1930"> 1930s</a>
<a href="#1940"> 1940s</a>
<a href="#1950"> 1950s</a>
<a href="#1960"> 1960s</a>
<a href="#1970"> 1970s</a>
<a href="#2000"> 2000s</a>
</strong><br>
<img src="borlaug.jpg" height=450>
<br><br>
Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - pqrt of his life-long war on hunger
</p>
</div>
<div class="tekks">
<ul>
<h3>
Here's a time line of Dr. Borlaug's life:
</h3>
<p>
<li id="1910">
<b>1910</b> -Born in Cresco, Iowa
</li><br></p>
<p>
<li id="1930">
<b>1933</b> -Leaves his family's farm to attend the University of Minnesota thanks to a Depression era pragram known as the "National Youth Administration"
</li><br></p>
<li>
<b>1935</b> - Has to stop school and save up more money. Works in a Civilian Conservation Corps, helping starving Americans."I saw how food changed them", he said."All of this left scars on me."
</li><br>
<li>
<b>1937</b> - Finishes university and takes a joh in the US Forestry Service
</li><br>
<li>
<b>1938</b> -Marries ie of 69 years Marget Gibsn. Gets laid off due to budget cuts.inspired by Elvin Chqrles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.
</li><br>
<li id="1940">
<b>1941</b> - Tries to enroll in the military after the Pearl Harbor attack, but is rejected.Instead, the military asked his lab work on waterproof glue, DDT to control malaria, disinfectants, and other applied science.
</li><br>
<li>
<b>1942</b> - Receives a Ph.D. in Genetics and Plant Pathology
</li><br>
<li>
<b>1944</b> - Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to heads a new plant pathology program.Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat - including different varieties for each major climae on Earth.
</li><br>
<li>
<b>1945</b> - Discovers a way to grown wheat tice each season, doubling wheat yields
</li><br>
<li id="1950">
<b>1953</b> - crosses a short, sturdy dwarf breed of wheat with a high-yeidling American breed, creating a strain that responds well to fertilizer. It goes on to provide 95% of Mexico's wheat.
</li><br>
<li id="1960">
<b>1962</b> - Visits Delhi and brings his high-yielding trains of wheat to the Indian subcontinent in time to help mitigate mass starvation due to a rapidly expanding population
</li><br>
<li id="1970">
<b>1970</b> Receives the Nobel Peace Prize
</li><br>
<li id="1980">
<b>1983</b> - Helps seven African countries dramatically increase their maize and sorghum yields
</li><br>
<li>
<b>1984</b> - becomes a distinguished professor at Texas A&M University
</li><br>
<li id="2000">
<b>2005</b> - states "we will have to double the world food supply by 2050." Argues that genetically modified crops are the only way we can meet the demand, as we run out of arable land. Says that GM crops are not inherently dangerous because "we've been genetically modifying plants and animals for a long time. Long before we called it science, people were selecting the best breeds."
</li><br>
<li>
<b>2009</b> - Dies at the age of 95.
</li><br>


</ul>
<q style="background-color: : grey">Borlaug's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and scientific vision can make to human peace and progress.</q>
<br>
--Indian Prime Minister Manmohan Singh
</div><br><br>

<div style="text-align:center;">
<b>If you have time you should read more about this increadible human being on his <a href="https://en.wikipedia.org/wiki/Norman_Borlaug">Wikipedia entry</a> </b>
</div>
</body>

</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
23 changes: 23 additions & 0 deletions Student Works/BaptistePDJ/Assignement/Assigment7.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Colors</title>
</style>
</head>
<body>
<table style="border-collapse: collapse;">
<script type="text/javascript">
for (var i = 0; i < 256; i++) {
var b = 255 - i;
document.write("<tr>");
for (var k = 0; k < 256; k++) {
var g = 255 - k;
document.write('<td style="background-color: rgb(255,' + g + ',' + b + '); border-color: rgb(255,' + g + ',' + b + ');"></td>');
};

document.write("</tr>");
}
</script>
</table>
</body>
</html>
94 changes: 94 additions & 0 deletions Student Works/BaptistePDJ/Assignement/Assigment8.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html>
<head>
<title>Timer</title>
<style type="text/css">
button{
height: 30px;
width: 70px;
}
td{
background-color: Yellow;
border: 1px solid black;
}
table{
width: 220px;
border: 1px solid black;
}
tr{
height: 20px;
border: 1px solid black;
text-align: center;
}
</style>
<script type="text/javascript">
var timerRunning = false;
var timer;
var n = 0;
var length = 0;
Infold = 0;
function on_event() {
n++;
length++;
var table_1 = document.getElementById('table_events');
var row = table_1.insertRow();
row.innerHTML = n.toString();

}
function timerStartStop() {
var button = document.getElementById('startstop');
if (timerRunning) {
window.clearInterval(timer);
button.innerHTML = "Start";
timerRunning = false;
}
else {
timer = window.setInterval(on_event, 1000);
button.innerHTML = "Stop";
timerRunning = true;
}
}
function reset() {
var table_1 = document.getElementById('table_events');
for (var i = 1; i < length+1; i++) {
table_1.deleteRow(1);
}
if (Infold == 1) {
length = 1;
}else{
n = 0 ;
length = 0;
}

}
function fold() {
var sum = 0;
var table_1 = document.getElementById('table_events');
for(var j = 1; j < length+1; j++){
console.log(length);
var value = table_1.rows[j].innerHTML;
value = parseInt(value);
console.log(j);
sum = parseInt(sum) + value;
}
Infold = 1;
reset();
Infold = 0;
var table_1 = document.getElementById('table_events');
var row = table_1.insertRow();
row.innerHTML = sum.toString();
}
</script>
</head>
<body>

<button id="startstop" onclick="timerStartStop()">Start</button>
<button onclick="reset()">Reset</button>
<button onclick="fold()">Fold</button>
<table id="table_events">
<tr>
<td>Number</td>
</tr>
</table>
</body>
</html>
127 changes: 127 additions & 0 deletions Student Works/BaptistePDJ/Assignement/Assigment9.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<!DOCTYPE html>
<!-- saved from url=(0087)https://e.famnit.upr.si/pluginfile.php/621595/mod_resource/content/1/collect-empty.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Collect</title>
<style>
button {
width: 50px;
margin: 5px;
font-size: 30px;
padding: 0;
}
.myform {
width: 200px;
margin: 1px;
}
</style>

<script type="text/javascript">
var entries = [];
entries["left"] = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512];
entries["right"] = [];
var som = 0;

function Inside() {
var left = document.getElementById("left");
for(i = 0; i = entries.length; i++){
var option = document.createElement("option");
option.text = entries[i];
left.add(option);
}
}
function Remove() {
var name = document.getElementById("entry").value;
var group = document.getElementById("group").value;
entries[group].push(name);

}

function RemoveLeft() {
var left = document.getElementById("left");
var index = left.selectedIndex;
entries["right"].push(entries["left"][index]);
entries["left"].splice(index, 1);
updateEntriesLeft();
updateEntriesRight();
}
function RemoveRight() {
var right = document.getElementById("right");
var index = right.selectedIndex;
entries["left"].push(entries["right"][index]);
entries["right"].splice(index, 1);
updateEntriesLeft();
updateEntriesRight();
}
function updateEntriesLeft() {
var left = document.getElementById("left");
while(left.options.length > 0){
left.remove(0);
}
for (var entry of entries["left"]) {
var option = document.createElement("option");
option.text = entry;
left.add(option);
}
}
function updateEntriesRight() {
var right = document.getElementById("right");
while(right.options.length > 0){
right.remove(0);
}
for (var entry of entries["right"]) {
var option = document.createElement("option");
option.text = entry;
right.add(option);
}
Sum();
}
function Sum() {
var thing = document.getElementById("sum");
som = 0;
for(i = 0; i <= entries["right"].length-1; i++ ){
som = parseInt(som) + parseInt(entries["right"][i]);
som = som.toString();
console.log(som);
}
thing.innerHTML = "Current sum: " + som;
if (som == "733") {
alert("You win , congratulations !!!!");
}
}
</script>
</head>

<body>

<table>
<tbody><tr>
<td>
<select id="left" size="10" class="myform">
<option>1</option>
<option>2</option>
<option>4</option>
<option>8</option>
<option>16</option>
<option>32</option>
<option>64</option>
<option>128</option>
<option>256</option>
<option>512</option>
</select>
</td>
<td>
<div><button onclick="RemoveLeft()"></button></div>
<div><button onclick="RemoveRight()"></button></div>
</td>
<td>
<select id="right" size="10" class="myform"></select>
</td>
</tr>
<tr>
<td>Collect: 733</td>
<td></td>
<td id="sum">Current sum: 0</td>
</tr>
</tbody></table>
</html>
Loading

0 comments on commit 9577559

Please sign in to comment.