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
//Single line comment | |
/* multiple | |
* line | |
* comment | |
*/ | |
//import libraries | |
import java.util.Scanner; | |
import java.math.BigDecimal; |
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
Simple instructions to clone, push and pull Git content: | |
server <<<--->>> local system | |
To clone repository from Github to local system: | |
1. Open Git Bash | |
2. git clone <URL of Repository> | |
To add file or subdirectory to local Git (Record changes to repository) | |
1. Open Git Bash | |
2. cd <directory> |
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 my_wp_nav_menu_args( $args = '' ) { | |
if( is_user_logged_in() ) { | |
$args['menu'] = 'menu-private'; | |
} else { | |
$args['menu'] = 'menu-public'; | |
} | |
return $args; | |
} | |
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' ); | |
?> |
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>Lottery & Benfords Law</title> | |
</head> | |
<body style="margin:2% auto; text-align:center;"> | |
<h1>Win the Lottery Using Benford's Law!</h1> | |
<p>This PHP page uses Benford's law to randomly generates numbers for the Powerball Lottery<br /> | |
<a href="https://en.wikipedia.org/wiki/Benford%27s_law" target="_blank">Click here to learn more about Beford's Law<a/></p> | |
<h3>This generator increases your chances to win by approximately 30% !</h3> | |
<?php |
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> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="UTF-8"> | |
<title>Drawing Tools</title> | |
<script type="text/javascript" | |
src="http://maps.google.com/maps/api/js?sensor=false&libraries=drawing"></script> | |
<style type="text/css"> | |
#map, html, body { |
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> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="UTF-8"> | |
<title>Drawing Tools</title> | |
<script type="text/javascript" | |
src="http://maps.google.com/maps/api/js?sensor=false&libraries=drawing"></script> | |
<style type="text/css"> | |
#map, html, body { |
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 | |
decipherThis('72olle 103doo 100ya'); // 'Hello good day' | |
echo "<br />"; | |
decipherThis('82yade 115te 103o'); // 'Ready set go' | |
echo "<br />"; | |
decipherThis('a'); // 'a' | |
echo "<br />"; | |
decipherThis('115da'); // 'sad' | |
echo "<br />"; |
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
//***************************************************************** | |
// Mortgage Payment Calculator program | |
// This program determines the monthly payments on a mortgage given | |
// the loan amount, the yearly interest, and the number of years. | |
//***************************************************************** | |
#include // Access cout | |
#include // Access power function | |
#include // Access manipulators | |
using namespace std; |
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
/** https://github.com/mikestratton/jquery-quiz **/ | |
for(var i = 1; i <= 45; i++) { // loop radio buttons | |
var radios = document.getElementsByName('q'+i); //used to increment questions in html | |
for(var j = 0; j < radios.length; j++) { | |
var radio = radios[j]; | |
if(radio.value == "1" && radio.checked) { | |
amountCorrect = amountCorrect + 1; //add radio value to total | |
} | |
} | |
} |
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> | |
<title>uiid virtual assistant</title> | |
</head> | |
<body> | |
<iframe width="350" height="430" src="https://console.api.ai/api-client/demo/embedded/cf3105b6-12b8-4047-8727-9dab8ec0d66a"></iframe> |