{{slide|id=your_unique_id|img1=image.png|img2=image.png}}
SEMICOLON IS DELIMITER
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>jzelenkov</string> | |
<key>colorSpaceName</key> | |
<string>sRGB</string> | |
<key>gutterSettings</key> | |
<dict> |
#!/usr/local/bin/python | |
import os | |
import sys | |
import csv | |
from operator import itemgetter | |
from bs4 import BeautifulSoup | |
from anki import Collection as aopen | |
usmle_rx = open("/Users/drlulz/Desktop/test.html",'r').read() |
############################################################################################ | |
# This script creates Anki decks from a web application. | |
# Designed specifically for usmle-rx.com flashfacts, but can be modified for any scenerio. | |
# | |
# Automation provided by /u/SYMPATHETIC_GANG_LION | |
# Anki import provided by /u/DrLulz | |
############################################################################################ | |
import os | |
import sys |
import os | |
import urllib2 | |
import datetime | |
import cStringIO | |
import ntpath | |
from bs4 import BeautifulSoup as bs | |
from anki import Collection as aopen | |
from operator import itemgetter | |
from PIL import Image | |
from random import randint |
V1,V2,V3,V7,V8,V9,V12,V14,V15,V16,V17,V18,V19,V20,V21,V22,V23,V24,V25,V26,V27,V29,V30,V31,V32,V34,V35,V36,V37,V40,V41,V42,V43,V49,V52 | |
1234567,1111111-2222222,444444,Smith,James,M ,123 East Street,Somewhere,NC ,90210,2,,00:00.0,(752) 811-1234,(752) 811-1375,(752) 811-1379,[email protected],0,eng,White,Not Hispanic or Latino,3,3,SYSTEM,Healthy People Doctors,1000000000,NPI,Nurse,Practitioner,PA-C,1000000000,1000000000,PA-C,ATTENDING,"Patient words: The first line there is very useful for any script. It, defines a variable,that points, to the folder, containing the scriptThis is essential if your script needs other files that are located in the sameThe second line creates an array of file names that are required for the script to run properly. Weell use this, along with. /note/ for drainage: Another child at day care has pink eye . e_He has been smoking a crack pipe at night." | |
2345678,3333333-4444444,111111,Johnson,John,M ,1500 NW Ave,Boring,NC ,33304,1,,00:00.0,(157) 555-8167,(157) 836-8167,(150) 836-8 |
# encoding: utf-8 | |
from __future__ import print_function, unicode_literals | |
from HTMLParser import HTMLParser | |
from urllib import quote | |
import sys | |
import hashlib | |
from xml.etree.cElementTree import fromstring as make_etree |
# -*- coding: utf-8 -*- | |
import re | |
import os | |
import csv | |
import glob | |
import unicodedata as udata | |
from Tkinter import Tk | |
from cStringIO import StringIO | |
from tkFileDialog import askdirectory |
# -*- coding: utf-8 -*- | |
import re | |
import os | |
import csv | |
import glob | |
import string | |
from Tkinter import Tk | |
from cStringIO import StringIO | |
from tkFileDialog import askdirectory |
-- cards are what you review. easy! | |
CREATE TABLE cards ( | |
id integer primary key, | |
-- the epoch milliseconds of when the card was created | |
nid integer not null, | |
-- notes.id | |
did integer not null, | |
-- deck id (available in col table) | |
ord integer not null, | |
-- ordinal, seems like. for when a model has multiple templates, or thereabouts |