-
Input: Two csv files:
teams.csv
: <memberID,teamID>scores.csv
: <memberID,score>
-
Output : a csv file
teamScores.csv
: <memberID,score>- Grades both the teams memebers with the higeest score
-
End/Special cases :
-
If no team member submits, 0 for both
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
/* | |
* linux/net/sunrpc/timer.c | |
* | |
* Estimate RPC request round trip time. | |
* | |
* Based on packet round-trip and variance estimator algorithms described | |
* in appendix A of "Congestion Avoidance and Control" by Van Jacobson | |
* and Michael J. Karels (ACM Computer Communication Review; Proceedings | |
* of the Sigcomm '88 Symposium in Stanford, CA, August, 1988). | |
* |
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
var assignTeamMarks = function(idNo, cb) { | |
var fetchTeamID = | |
"SELECT teamId FROM " + | |
tables.team + | |
" WHERE memberID = '" + | |
idNo + | |
"'"; | |
connection.query(fetchTeamID, function(err, rows, fields) { | |
//if(rows.length!=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
it("no db exists", function(done){ | |
testConfig = { | |
db: "eval", | |
user: "root" | |
}; | |
expect(input.sqlContents(testConfig, table)).to.exventually.throw("No contents in table"); | |
}); | |
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
LOAD DATA LOCAL INFILE 'uniq.csv' | |
INTO TABLE tblUniq | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
LINES TERMINATED BY '\n' | |
IGNORE 1 LINES | |
(uniqName, uniqCity, uniqComments) |
We subscribe to the Git Featrue Branch workflow, briefly described in that link.
In practice, it works as follows:
- Start with an updated local development branch -- by checking out the dev branch and pulling changes:
git checkout development
git pull origin development
A Pen by Chaitanya Mukka on CodePen.
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 Tkinter as tk | |
class SampleApp(tk.Tk): | |
def __init__(self, *args, **kwargs): | |
tk.Tk.__init__(self, *args, **kwargs) | |
lb = tk.Listbox(self) | |
lb.insert("end", "one") | |
lb.insert("end", "two") | |
lb.insert("end", "three") | |
lb.bind("<Double-Button-1>", self.OnDouble) |