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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
delegate void TaskUpdateHandler(object sender, EventArgs e); // Why does this have to be outside of the namespace? | |
namespace DelegatesEventsLambda | |
{ |
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
/** Inner class for entries */ | |
protected static class MyEntry<K,V> implements Entry<K,V> { | |
protected K k; // key | |
protected V v; // value | |
public MyEntry(K key, V value) { | |
k = key; | |
v = value; | |
} | |
// methods of the Entry interface | |
public K getKey() { return k; } |
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
package Lab08; | |
import java.util.Random; | |
public class AirlineStandbyQueue { | |
private SortedListAdaptablePriorityQueue<Integer, Passenger> q; | |
public static void main(String[] args) | |
{ | |
new AirlineStandbyQueue(); | |
} |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.Owin.Hosting; | |
using Owin; | |
using Microsoft.Owin.FileSystems; | |
using Microsoft.Owin.StaticFiles; | |
using System.Threading; |
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
<!-- | |
Filename: linkedlist.php | |
Creation Date: July 22, 2014 | |
Purpose: Create a basic linked list | |
--> | |
<?php | |
class Node | |
{ | |
private $object; |
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
function getWhoIsServer(domain) { | |
var host = ''; | |
dns.resolveCname(server, function(err, addresses) | |
{ | |
console.log(err); | |
if(!err) { | |
host = addresses[0]; | |
} else { | |
console.log('Using alternate server '+server); | |
host = server; |
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
#requires -version 2 | |
<# | |
.SYNOPSIS | |
Time-base One-Time Password Algorithm (RFC 6238) | |
.DESCRIPTION | |
This is an implementation of the RFC 6238 Time-Based One-Time Password Algorithm draft based upon the HMAC-based One-Time Password (HOTP) algorithm (RFC 4226). This is a time based variant of the HOTP algorithm providing short-lived OTP values. | |
.NOTES | |
Version: 1.0 |
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
// Build a function that draws a set of stairs using hashes | |
// that climb vertically from left to right. The bottom stairs | |
// should have no spaces in front of it, for example: | |
// This is a set of 3 | |
// # | |
// ## | |
//### | |
function hashStairs(num, spaces, notFirstRun) { |
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
function isArrayBalanced(inputArray) { | |
function isBalanced(input) { | |
Array.prototype.peek = function() { | |
return this[this.length - 1]; | |
}; | |
if (input.length % 2 !== 0) return "NO"; | |
var braceStack = []; | |
var braceMap = { | |
"}" : "{", | |
"]" : "[", |
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
[{"id":"5153fe16-9035-4ba7-ac3d-afd478402235","first_name":"Dennis","last_name":"Parker","domain":"macromedia.com","email":"[email protected]","gender":"Male","city":"Nyazepetrovsk","address":"8 Boyd Avenue","phone_number":"7-(908)778-0060"}, | |
{"id":"4672aba7-bf14-4ec7-a426-b0f266cdd4a6","first_name":"Donna","last_name":"Evans","domain":"microsoft.com","email":"[email protected]","gender":"Female","city":"Ambanja","address":"740 Hazelcrest Place","phone_number":"261-(502)571-6547"}, | |
{"id":"4aa83d08-90bd-4b5e-bfb3-bf21c925bc2d","first_name":"Edward","last_name":"Jenkins","domain":"ning.com","email":"[email protected]","gender":"Male","city":"Patabog","address":"9853 Chinook Pass","phone_number":"63-(763)910-9686"}, | |
{"id":"15dd7efb-cbef-407a-9181-7e6ac3614dcf","first_name":"Lori","last_name":"Lawson","domain":"usa.gov","email":"[email protected]","gender":"Female","city":"Qiawan","address":"47062 Harper Point","phone_number":"86-(778)959-1236"}, | |
{"id":"27ebe034-8f2c-44b5-8b68-201ff558f |
OlderNewer