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
// some other stuff | |
import java.util.ArrayList; | |
class PrimeDirective { | |
public boolean isPrime(int number) { | |
if (number == 2) { | |
return true; | |
} else if (number < 2) { |
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
using System; | |
namespace CaesarCipher | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write("Enter your secret message: "); | |
string input = Console.ReadLine(); |
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"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
// Hash Table | |
// key value pairs | |
// {key: name, value: number} | |
// constructor function for the table and consturctor function for the node | |
function HashTable(size) { | |
// make a new array of size of choice and assign it to property of buckets | |
this.buckets = Array(size); | |
this.numBuckets = this.buckets.length; | |
} |
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
// linked list constructor function | |
function LinkedList() { | |
// initial creation has no nodes | |
this.head = null; | |
this.tail = null; | |
} | |
// node constructor function | |
// properties value, next previous | |
function Node(value, next, prev) { |
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
// linked list constructor function | |
function LinkedList() { | |
// initial creation has no nodes | |
this.head = null; | |
this.tail = null; | |
} | |
// node constructor function | |
// properties value, next previous | |
function Node(value, next, prev) { |
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
// linked list constructor function | |
function LinkedList() { | |
// initial creation has no nodes | |
this.head = null; | |
this.tail = null; | |
} | |
// node constructor function | |
// properties value, next previous | |
function Node(value, next, prev) { |