- 3 tablespoons coconut oil
- 1 teaspoon cumin seeds
- 1 teaspoon fennel seeds
- 1 teaspoon ground turmeric
- 2 onions, halved and thinly sliced
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
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.Core.UI.dll | |
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.Core.UI.xml | |
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.Core.dll | |
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.Core.xml | |
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.InfoCard.UI.dll | |
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.InfoCard.UI.xml | |
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.InfoCard.dll | |
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.InfoCard.xml | |
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.OAuth.Common.dll | |
delete mode 100644 src/ASP.NET/GoAber/GoAber.Tests/bin/Debug/DotNetOpenAuth.OAuth.Common.xml |
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
private Date fromDate; | |
private Date toDate; | |
public void filterDataTable() { | |
items = getFacade().findAll(); | |
for (Iterator<ActivityData> iterator = items.iterator(); iterator.hasNext();) { | |
Date date = iterator.next().getDate(); | |
if (getFromDate() != null && date.before(getFromDate()) | |
|| getToDate() != null && date.after(getToDate())) { | |
iterator.remove(); |
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
class TwoPointPMX(AbstractCrossover): | |
"""Create a new population using one point PMX crossover. The pivot location | |
of the split is determined uniformly at random. | |
""" | |
def _crossover_for_chromosomes(self, x, y): | |
pivot1 = np.random.randint(x.size/2) | |
pivot2 = np.random.randint(x.size/2, x.size) | |
child1 = y.copy() | |
child2 = x.copy() |
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 matplotlib | |
matplotlib.use('TkAgg') | |
import matplotlib.pyplot as plt | |
plt.plot(sim.get_averge_fitness()) | |
plt.plot(sim.get_min_fitness()) | |
plt.plot(sim.get_max_fitness()) | |
plt.show() | |
plt.scatter(self._data[:, 0], self._data[:, 1]) |
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
Module | Name | Grade | |
---|---|---|---|
CS10110 | Introduction To Computer Hardware, Operating Systems And Unix Tools | 87.0 | |
CS10410 | The Mathematics Driving License For Computer Science | 95.0 | |
CS12130 | Concepts In Programming | 87.0 | |
PH19510 | Chaos, Communications And Consciousness | 90.0 | |
CS12420 | Software Development | 91.0 | |
CS15020 | Web Development Tools | 94.0 | |
CS15210 | An Introduction To Communications And Telematics | 66.0 | |
CS18010 | Professional And Personal Development | 71.0 | |
CS20410 | The Advanced Mathematics Driving License For Computer Science | 70.0 |
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
#!/bin/bash | |
usage="$(basename "$0") [-h] <n> <commit-message> -- revert back n pull requests | |
where: | |
-h show this help text" | |
while getopts ':h:' option; do | |
case "$option" in | |
h) echo "$usage" | |
exit |
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
"""Showing the cool stuff which functools does""" | |
import functools | |
def print_shit(f): | |
"""Because Sam, you need to learn why decorators are sexy. | |
Plus, functool.wraps() is a _very_ important tool, yo | |
""" | |
@functools.wraps(f) | |
def inner(*args, **kwargs): |