Skip to content

Instantly share code, notes, and snippets.

View z4y4ts's full-sized avatar
🎯
Focusing

Alexander Zayats z4y4ts

🎯
Focusing
View GitHub Profile
@z4y4ts
z4y4ts / iterm2-solarized.md
Created March 4, 2017 22:15 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@z4y4ts
z4y4ts / app.py
Last active August 29, 2015 14:21 — forked from theskumar/app.py
# -*- coding: utf-8 -*-
''' Generates database schema graph from a relational database.
Usages:
Add database configuation in this file and then
python app.py
Note: You must have your latest database schema in the database
engine you are running against.
'''
from __future__ import unicode_literals, absolute_import
@z4y4ts
z4y4ts / base.py
Last active August 29, 2015 14:17 — forked from mrjoes/base.py
Flask-Admin CSV export model view
class BaseModelView(ModelView):
list_template = 'admin/model_list.html'
export_columns = None
# Exporting
def _get_data_for_export(self):
view_args = self._get_list_extra_args()
# Map column index to column name
diff --git a/gluon/languages.py b/gluon/languages.py
--- a/gluon/languages.py
+++ b/gluon/languages.py
@@ -283,6 +283,7 @@
def write_plural_dict(filename, contents):
+ return
if '__corrupted__' in contents:
return