Each of these examples assume the usage of --strict
mode in Typescript
Can be implemented using “Custom Types” https://guide.elm-lang.org/types/custom_types.html
Each of these examples assume the usage of --strict
mode in Typescript
Can be implemented using “Custom Types” https://guide.elm-lang.org/types/custom_types.html
Each of these examples assume the usage of --strict
mode in Typescript
Can be implemented using “Custom Types” https://guide.elm-lang.org/types/custom_types.html
import os | |
import sys | |
project_dir = os.path.realpath(__file__) | |
sys.path.append(project_dir) | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'main.settings' | |
import django | |
from django.conf import settings | |
django.setup() |
killall -SIGKILL uwsgi |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
# MixinParent | |
# | | |
# Mixin A | |
# └--┐ | | |
# B | |
pv sqlfile.sql | mysql dbname |
import traceback | |
try: | |
#some code | |
except Exception, e: | |
print ''.join(traceback.format_exception(*sys.exc_info())) |
mysql> pager less; # use less for paging | |
mysql> SELECT * FROM something \G #one field per line (good for wide tables) |
CREATE DATABASE some_db DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; |
SET foreign_key_checks = 0; | |
DELETE FROM users where id > 45; | |
SET foreign_key_checks = 1; |