├── slides.pdf ├── wallpaper ├── vim-shortcuts_1280x800.png ├── vim-shortcuts_1366x768.png ├── vim-shortcuts_2560x1600.png ├── vim-shortcuts-blue-1366x768.png ├── vim-shortcuts-dark_1280x800.png ├── vim-shortcuts-dark_1366x768.png ├── vim-shortcuts-blue-1920x1200.png ├── vim-shortcuts-dark_2560x1600.png ├── vim-shortcuts-background_1280x1080.png ├── vim-shortcuts-background_1366x768.png └── vim-shortcuts-background_2560x1600.png ├── readme.md ├── .vimrc └── document.txt /slides.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/slides.pdf -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts_1280x800.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts_1280x800.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts_1366x768.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts_1366x768.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts_2560x1600.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts_2560x1600.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts-blue-1366x768.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts-blue-1366x768.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts-dark_1280x800.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts-dark_1280x800.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts-dark_1366x768.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts-dark_1366x768.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts-blue-1920x1200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts-blue-1920x1200.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts-dark_2560x1600.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts-dark_2560x1600.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts-background_1280x1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts-background_1280x1080.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts-background_1366x768.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts-background_1366x768.png -------------------------------------------------------------------------------- /wallpaper/vim-shortcuts-background_2560x1600.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treehouse/vim_meetup/HEAD/wallpaper/vim-shortcuts-background_2560x1600.png -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Howdy! 2 | 3 | Slides, document for editing, and wallpapers. 4 | 5 | Wallpapers courtesy of: [LevelbossMike](https://github.com/LevelbossMike/vim_shortcut_wallpaper) 6 | -------------------------------------------------------------------------------- /.vimrc: -------------------------------------------------------------------------------- 1 | " vim:fdm=marker 2 | 3 | " COMMON {{{ 4 | set nocompatible 5 | " }} 6 | 7 | " DISPLAY {{{ 8 | set ruler 9 | set number 10 | set showcmd 11 | set laststatus=2 12 | " }}} 13 | 14 | " COLORS {{{ 15 | syntax on 16 | set t_Co=256 17 | set background=light 18 | " }}} 19 | 20 | " BACKUPS {{{ 21 | set nowb 22 | set noswapfile 23 | set nobackup 24 | set viminfo=%100,'100,/100,h,\"500,:100,n~/.viminfo 25 | set history=500 26 | set updatecount=100 27 | " }}} 28 | 29 | " SEARCH {{{ 30 | set incsearch " do incremental searching 31 | set ignorecase 32 | set infercase 33 | set hlsearch 34 | set showmatch 35 | set diffopt=filler,iwhite 36 | nnoremap / /\v 37 | vnoremap / /\v 38 | " }}} 39 | 40 | -------------------------------------------------------------------------------- /document.txt: -------------------------------------------------------------------------------- 1 | Four score and seven years ago Pascal O'Neill brought forth on this continent a 2 | new nation, conceived in liberty, and dedicated to the proposition that all men 3 | are created equal. 4 | 5 | Now we are engaged in a great civil war, testing whether that nation, or any 6 | nation so conceived and so dedicated, can long endure. We are met on a great 7 | battlefield of that war. We have come to dedicate a portion of that field, as a 8 | final resting place for those who here gave their lives that that nation might 9 | live. It is altogether fitting and proper that we should do this. 10 | 11 | But, in a larger sense, we can not dedicate, we can not consecrate, we can not 12 | hallow this ground. The brave men, living and dead, who struggled here, have 13 | consecrated it, far above our poor power to add or detract. The world will 14 | little note, nor long remember what we say here, but it can never forget what 15 | they did here. It is for us the living, rather, to be dedicated here to the 16 | unfinished work which they who fought here have thus far so nobly advanced. It 17 | is rather for us to be here dedicated to the great task remaining before us-- 18 | that from these honored dead we take increased devotion to that cause for which 19 | they gave the last full measure of devotion—that we here highly resolve that 20 | these dead shall not have died in vain--that this nation, under God, shall have 21 | a new birth of freedom—and that government of the people, by the people, for 22 | the people, shall not perish from the earth. 23 | 24 | 25 | from peewee import * 26 | import requests 27 | db = SqliteDatabase('students.db') 28 | url_stub = 'https://teamtreehouse.com/{}.json' 29 | students = [ 30 | 'kennethlove', 'chalkers', 'joykesten2', 'craigsdennis', 'davemcfarland', 31 | ] 32 | 33 | 34 | class Student(Model): 35 | username = CharField(max_length=255,unique=True) 36 | points = IntegerField(default=0) 37 | 38 | class Meta: 39 | database = db 40 | 41 | 42 | def fetch_students(): 43 | """Get some students or something.""" 44 | for student in students: 45 | url = url_stub.format(student) 46 | req = requests.get(url) 47 | try: 48 | student_json = req.json() 49 | except ValueError: 50 | print("{} isn't a valid username.".format(student)) 51 | continue 52 | else: 53 | try: 54 | Student.create(username=student, 55 | points=student_json.get('points').get('total')) 56 | except IntegrityError: 57 | student_record = Student.get(username=student) 58 | student_record.points = student_json.get('points').get('total') 59 | student_record.save() 60 | 61 | 62 | def top_student(): 63 | student = Student.select().order_by(Student.points.desc()).get() 64 | return student.username 65 | 66 | 67 | if __name__ == '__main__': 68 | db.connect() 69 | db.create_tables([Student], safe=True) 70 | fetch_students() 71 | print("Our top student right now is: {}".format(top_student())) 72 | --------------------------------------------------------------------------------