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
docker ps -a | grep Exit | awk '{print $1}' |xargs docker rm |
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
class AccountForm(forms.ModelForm): | |
class Meta: | |
model = Account | |
fields = ['first_name', 'last_name', 'email', 'password'] | |
def __init__(self, *args, **kwargs): | |
self.university = kwargs.pop('university') | |
self.high_school = kwargs.pop('high_school') | |
self.department = kwargs.pop('department') | |
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
#!/bin/env python | |
ENGINE_FILE = 'Engine_Cytogenetics.xml' | |
QUIZBLOCKS_FILE = 'QuizBlocks_Cytogenetics.xml' | |
from lxml import etree | |
def extract_quizblocks(): | |
""" | |
extract quizblocks from unity engine. |
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
{% extends "payment/base_payment.html" %} | |
{% load custom_template %} | |
{% load staticfiles %} | |
{% block content %} | |
<div class="block-area"> | |
<h3 class="block-title">Buy lab</h3> | |
</div> | |
<div class="block-area"> | |
<div class="tile p-15"> |
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
... | |
super(PaymentForm, self).__init__(*args, **kwargs) | |
lab_choice = Lab.objects.all().values_list('pk', 'name') | |
self.fields['lab'].choices = lab_choice | |
... |
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
class CreatePaymentTest(TestCase): | |
def setUp(self): | |
self.user = UserFactory() | |
self.payment = PaymentFactory() | |
self.product = ProductFactory() | |
self.url = reverse('api:create-payment') | |
self.headers = get_auth_header(self.user) | |
def test_post_new(self): |
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
class CreatePaymentTest(TestCase): | |
def setUp(self): | |
self.user = UserFactory() | |
self.payment = PaymentFactory() | |
self.product = ProductFactory() | |
self.url = reverse('api:create-payment') | |
self.headers = get_auth_header(self.user) | |
def test_post_new(self): |
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
FROM kriwil/docker-pywebapp | |
MAINTAINER aldi <[email protected]> | |
RUN apt-get update | |
# posgis | |
RUN apt-get install -y binutils | |
RUN apt-get install -y libproj-dev | |
RUN apt-get install -y gdal-bin |
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
docker run -p 127.0.0.1:8000:8000 \ | |
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \ | |
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \ | |
-e EMAIL_HOST_PASSWORD=$EMAIL_HOST_PASSWORD \ | |
--name littlemed_web \ | |
--link postgis:db \ | |
-d littlemed:latest |
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
<?php | |
include("inc/include.php"); | |
$points_upload = intval($config['points_upload']); | |
$SID = intval($_SESSION['USERID']); | |
$SVERIFIED = intval($_SESSION['VERIFIED']); | |
if ($SID != "" && $SID >= 0 && is_numeric($SID) && ($SVERIFIED > 0)) | |
{ | |
$ctime = 24 * 60 * 60; |
OlderNewer