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 requests | |
import re | |
# Framework to detect | |
FRAMEWORKS = ['jquery', 'angular', 'react', 'vue', 'bootstrap'] | |
def get_version(str): | |
version_pattern = "v([\d.]*)" | |
version = re.findall(version_pattern, str) |
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 cms.app_base import CMSAppConfig | |
from .models import TestModel1, TestModel2 | |
class TestModel1Config(): | |
fields = ['field1', 'field2'] | |
model = TestModel1 | |
# any other configuration including admin listing can go here |
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 cms.app_base import CMSAppConfig | |
from .models import TestModel1, TestModel2 | |
class TestModel1Config(): | |
fields = ['field1', 'field2'] | |
# any other configuration including admin listing can go here |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>WebSocket Client</title> | |
<style> | |
#output { | |
border: solid 1px #000; | |
} | |
</style> | |
</head> |
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
-- Postgres SQL Dump | |
-- version 2.11.6 | |
-- http://www.phpmyadmin.net | |
-- | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | |
-- | |
-- Database: `stgwordpress` | |
-- |
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
################### | |
# compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.pdb | |
*.dll.config | |
*.cache |
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.conf import settings | |
from django.conf.urls import include, url | |
from django.conf.urls.static import static | |
from django.contrib import admin | |
from django.views.generic import TemplateView | |
from django.views import defaults as default_views |
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 absolute_import, unicode_literals | |
from django.conf.urls import url | |
from . import views | |
urlpatterns = [ | |
url( | |
regex=r'^$', |
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
Environment: | |
Request Method: GET | |
Request URL: http://localhost:8000/matrimonial/~imageupload/ | |
Django Version: 1.10.5 | |
Python Version: 3.6.0 | |
Installed Applications: | |
('django.contrib.auth', |
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 csv | |
import calendar | |
from datetime import datetime | |
current = datetime.now() | |
filename = str(current.strftime('%m%Y')) + str('.csv') | |
NewerOlder