Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| --- | |
| layout: default | |
| --- | |
| <div class="typeform-widget" data-url="https://timothyolaleke.typeform.com/to/SG6ad8" style="width: 100%; height: 500px;"></div> <script> (function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm", b="https://embed.typeform.com/"; if(!gi.call(d,id)) { js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script")[0]; q.parentNode.insertBefore(js,q) } })() </script> |
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
| layout: stacked | |
| style: dark | |
| plugins: | |
| - jekyll-octicons | |
| - jekyll-github-metadata | |
| - jemoji | |
| permalink: /:year/:month/:day/:title/ |
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
| imports: | |
| - path: install-web.sh | |
| name: install-web.sh | |
| resources: | |
| - name: default-allow-http | |
| type: compute.v1.firewall | |
| properties: | |
| sourceRanges: ["0.0.0.0/0"] | |
| targetTags: ["http-server"] | |
| allowed: |
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
| command | usage | |
|---|---|---|
| git init | Creates an empty Git repository in the specified directory. | |
| git clone <repository name> | Clones a repository located at <repository name> onto your local machine. | |
| git add <directory> | Stages only the specified changes for the next commit. Replace <directory> with a <file> to change a specific file. | |
| git add . | Stages new files and modifications without deletions | |
| git add -A | Stages all changes | |
| git add -all | Equivalent to git add -A | |
| git add -u | Stages modifications and deletions without adding new files | |
| git add --update | Equivalent to git add -u | |
| git commit -m ”<message>” | Commits the staged snapshot. replace <message> with the commit message. |
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 os, csv | |
| # Define paths and variables to be used | |
| currentPath = os.getcwd() | |
| csvFieName = 'LookUpTable.csv' | |
| csvFilePath = os.path.join(currentPath, csvFieName) | |
| locationInfo = {} | |
| # Read locations into locationInfo with locationCode => locationName | |
| with open(csvFilePath) as csvFile: |
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
| # Function that listens to USSD | |
| @csrf_exempt | |
| @require_POST | |
| def process_listen(request): | |
| user_choice = None | |
| state_choice = None | |
| state_id = None | |
| total_locations = Units.objects.all().count() |
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
| const { Client } = require('pg') | |
| let datasets = [] | |
| const Data = () => { | |
| return new Promise(resolve => { | |
| // Connect to PG DB to get MarketPoints | |
| const client = new Client({ | |
| user: config.database.user, | |
| host: config.database.host, |
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
| <form method="post"> | |
| {% csrf_token %} | |
| {% for field in form %} | |
| <p> | |
| {{ field }} | |
| {% for error in field.errors %} | |
| <p style="color: red">{{ error }}</p> | |
| {% endfor %} | |
| </p> | |
| {% endfor %} |
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
| web: gunicorn <project_name.wsgi> |