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
<obs id="no-fp-method" conceptId="dc7620b3-30ab-102d-86b0-7a5022ba4115" | |
answerConceptId=" | |
aaf150a5-92d2-416f-8254-95d34ed9c4ab" | |
answerLabel="No Family Planning Method Given" | |
style="checkbox" class="horizontal-layout-options"/> |
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 datetime import datetime | |
class Server(models.Model): | |
owner = models.CharField(max_length=100) | |
user_name = models.CharField(max_length=100) | |
password = models.CharField(max_length=100) | |
host = models.CharField(max_length=100) | |
status = models.BooleanField(default=True) | |
created_on = models.DateTimeField(auto_now=True) |
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
if(isset($_FILES['files']) && !empty($_FILES['files'])){ | |
$fileName = $_FILES['files']['name']; | |
$fileTemp = $_FILES['files']['tmp_name']; | |
$fileType = $_FILES['files']['type']; | |
$allowedext = array('image/png', 'image/gif', 'image/jpeg', 'image/jpg'); | |
$destination = "img/"; | |
$width = 400; | |
$height = 350; |
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/env/python | |
import psycopg2 | |
import os | |
from io import StringIO | |
import pandas as pd | |
# Get a database connection | |
dsn = os.environ.get('DB_DSN') # Use ENV vars: keep it secret, keep it safe | |
conn = psycopg2.connect(dsn) |
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 datetime import timedelta | |
# The DAG object; we'll need this to instantiate a DAG | |
from airflow import DAG | |
# Operators; we need this to operate! | |
from airflow.operators.bash_operator import BashOperator | |
from airflow.utils.dates import days_ago |
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
function CategoryPage() { | |
let location = useLocation(); | |
return ( | |
<div> | |
<h2>Categories</h2> | |
<ul> | |
<li><Link to={`${location.pathname}/drama`}>Drama</Link></li> | |
<li><Link to={`${location.pathname}/comedy`}>Comedy</Link></li> | |
</ul> |