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
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
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
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) |
OlderNewer