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
SQLSERVER_SA_PASSWORD=%%placeholder%% | |
SQLSERVER_DATA_PATH=/path/to/some/local/dir/data | |
SQLSERVER_LOG_PATH=/path/to/some/local/dir/log | |
SQLSERVER_SECRETS_PATH=/path/to/some/local/dir/secret | |
AZURITE_DATA_PATH=/path/to/some/local/dir/azurite | |
MIGRATION_CONNECTION_STRING=%%Placeholder%% |
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
// Google Analytics Service | |
init() { | |
if (!this.scriptsLoaded) { | |
this.insertMainScript(); | |
} | |
} | |
trackPageViews() { | |
return this.router.events.pipe( |
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
def select(ls,i): | |
'''select the ith order stat of the list ls''' | |
subs = [sorted(ls[i:i+5]) for i in xrange(0,len(ls),5)] #partition in n/5 groups of length at most 5 each | |
median_ls = [sub[len(sub)/2] for sub in subs] | |
print "median",median_ls | |
pivot = select(median_ls,len(median_ls)/2) #pivot is the median of medians |
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
import java.util.concurrent.Semaphore; | |
public class Sem1 implements Runnable | |
{ | |
private int num; | |
private static Semaphore sem = new Semaphore( 0, true ); | |
Sem1( int num ) |
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
//Bucket Sort | |
//Project 4 | |
import java.util.*; | |
public class BucketSort { | |
private int [] a; | |
private int [] buckets; | |
public Random random; | |
public BucketSort(int size) { |
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
//Assingment 2 shell | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
//prototypes | |
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
/* | |
* sh1.c: sample version 1 of a UNIX command shell/interpreter. | |
* Stefan Brandle, COS 421, Feb 2000. Mod Feb 2001. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> |
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
public class GenLinkedList <T> { | |
/*====================================== | |
= members specific to list = | |
======================================*/ | |
/*============================================= | |
= Node Definition (element of List) = | |
=============================================*/ | |
private static class Node <T> { | |
/** |
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
var http = require('http'); | |
var concatStream = require("concat-stream") | |
var urls = process.argv.slice(2); | |
var results = []; | |
function printResults (results) { | |
results.forEach (function (result) { | |
console.log(result) |
NewerOlder