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 | |
import re | |
import sys | |
from pathlib import Path | |
dir_path = Path(sys.argv[1] if len(sys.argv) > 1 else ".").resolve() | |
numbers = { | |
"1": "One", | |
"2": "Two", |
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
from otto.clients.gandi_client import GandiClient, GandiDomainRecord | |
from argparse import ArgumentParser | |
import ujson | |
import requests | |
from tenacity import retry, retry_if_exception, stop_after_attempt, RetryCallState, wait_random | |
gandi = GandiClient(api_key="") | |
# Added a method to the gandi client |
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
#!/usr/bin/env python | |
import os | |
import sys | |
import csv | |
def rename_files(csv_filename): | |
with open('CS_IVR_NOTES.csv', 'r') as csvfile: | |
csvreader = csv.reader(csvfile, delimiter=',', quotechar='"') |
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
package main | |
import "golang.org/x/tour/pic" | |
import "math" | |
func makePic(f func(x, y int) uint8) func(dx, dy int) [][]uint8 { | |
pic := func(dx, dy int) [][]uint8 { | |
// 2d array of pixel values | |
p := make([][]uint8, dy) | |
for y := range p { |
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
2017-08-30 11:01:28 digitalassess-manage:development:web - at=ERROR request_id=4db371c1d11d4a78ac7853fa892458ce logger=django.request Internal Server Error: /api/courses/ | |
2017-08-30 11:01:28 digitalassess-manage:development:web - Traceback (most recent call last): | |
2017-08-30 11:01:28 digitalassess-manage:development:web - File "/Users/will/Projects/digitalassess-manage/env/lib/python3.6/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection | |
2017-08-30 11:01:28 digitalassess-manage:development:web - self.connect() | |
2017-08-30 11:01:28 digitalassess-manage:development:web - File "/Users/will/Projects/digitalassess-manage/env/lib/python3.6/site-packages/django/db/backends/base/base.py", line 189, in connect | |
2017-08-30 11:01:28 digitalassess-manage:development:web - self.connection = self.get_new_connection(conn_params) | |
2017-08-30 11:01:28 digitalassess-manage:development:web - File "/Users/will/Projects/digitalassess-manage/env/lib/py |
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
2017-08-21 10:42:05 digitalassess-manage:development:worker - <td>DISALLOWED_USER_AGENTS</td> | |
2017-08-21 10:42:05 digitalassess-manage:development:worker - <td class="code"><pre>[]</pre></td> | |
2017-08-21 10:42:05 digitalassess-manage:development:worker - </tr> | |
2017-08-21 10:42:05 digitalassess-manage:development:worker - | |
2017-08-21 10:42:05 digitalassess-manage:development:worker - <tr> | |
2017-08-21 10:42:05 digitalassess-manage:development:worker - <td>EMAIL_BACKEND</td> | |
2017-08-21 10:42:05 digitalassess-manage:development:worker - <td class="code"><pre>'django.core.mail.backends.console.EmailBackend'</pre></td> | |
2017-08-21 10:42:05 digitalassess-manage:development:worker - </tr> | |
2017-08-21 10:42:05 digitalassess-manage:development:worker - | |
2017-08-21 10:42:05 digitalassess-manage:development:worker - <tr> |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import migrations, models | |
from django.conf import settings | |
import django.db.models.deletion | |
import django.utils.timezone | |
import uuid | |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import migrations | |
class Migration(migrations.Migration): | |
dependencies = [ | |
('users', '0011_auto_20160922_1106') |