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
def unique_list(list): | |
u_list = [] | |
[u_list.append(x) for x in list if x.lower() not in [y.lower() for y in u_list]] | |
return u_list | |
print (unique_list(["Welcome", "to", "COMPSCI101", "to", "wELcome"])) | |
# BETTER VERSION!!! |
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> | |
<title><%= full_title(yield(:title)) %></title> | |
<%= stylesheet_link_tag "application", media: "all" %> | |
<%= javascript_include_tag "application" %> | |
<%= csrf_meta_tags %> | |
<%= render 'layouts/shim' %> | |
</head> | |
<body> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- Drop Shadow Stack --> | |
<item> | |
<shape> | |
<padding android:top="1dp" android:right="1dp" android:bottom="1dp" android:left="1dp" /> | |
<solid android:color="#00CCCCCC" /> | |
</shape> | |
</item> |
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
public boolean moveSeeds(int playerToMove, int houseNumber) { | |
int seedsInHand, currentPlayer, currentHouse; | |
if (_players[playerToMove].seedsInHouse(houseNumber) == 0) { | |
} | |
// get seeds from players house | |
// number of seeds | |
// set seeds in that house to be zero |
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
#!/usr/bin/python | |
import sys | |
import re | |
class Submission(object): | |
def __init__ (self, lines): | |
self.info = lines[0] | |
start = 2 |