Express Your Expectations: A Fast, Compliant JSON Pull Parser for Writing Robust Applicationstc nlohmann RapidJSON Boost.JSON simdjson 0 10 20 30 40 Library Time in ms fully validating pull parser fast, O(1) memory usage implicitly define schema github.com/think-cell/think-cell-library "speaker": true, "talks": [ { "title": "Express your expectations", "subtitle": "A fast, compliant JSON pull parser..." } ] } Jonathan Müller — @foonathan Express your expectations CppCon 2023-10-03 7JSON console.log(object.talks[0].subtitle) console.log(object.foo) Jonathan Müller A fast, compliant JSON pull parser for writing robust applications undefined Jonathan Müller — @foonathan Express your expectations0 码力 | 143 页 | 736.91 KB | 6 月前3
Django CMS 3.11.10 Documentation): name = _("Polls Menu") # give the menu a name this is required. def get_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] enable this use the cms.middleware.language.LanguageCookieMiddleware to set the cookie on every request. How django CMS determines what language to serve Once it has identified a user’s language, it will apply_modifiers() menus.menu_pool.MenuPool._mark_selected() loops over each node, comparing its URL with the request.path_info, and marks the best match as selected loops over the Modifiers (see Menu Modifiers below)0 码力 | 493 页 | 1.44 MB | 6 月前0.03
Django CMS 4.1.x Documentation): name = _("Polls Menu") # give the menu a name this is required. def get_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] enable this use the cms.middleware.language.LanguageCookieMiddleware to set the cookie on every request. How django CMS determines what language to serve Once it has identified a user’s language, it will apply_modifiers() menus.menu_pool.MenuPool._mark_selected() loops over each node, comparing its URL with the request.path_info, and marks the best match as selected loops over the Modifiers (see Menu Modifiers below)0 码力 | 518 页 | 1.66 MB | 6 月前3
Django CMS 3.9.x Documentation): name = _("Polls Menu") # give the menu a name this is required. def get_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] (optional) The view in which you render your placeholder field must return the request [https://docs.djangoproject.com/en/2.2/ref/request-response/#django.http.HttpRequest] object in the context. This is typically shortcuts import get_object_or_404, render def my_model_detail(request, id): object = get_object_or_404(MyModel, id=id) return render(request, 'my_model_detail.html', { 'object': object,0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.9.x DocumentationPollsMenu(CMSAttachMenu): name = _("Polls Menu") # give the menu a name this is required. def get_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): return the request object in the context. This is typically achieved in Django applications by using RequestContext: from django.shortcuts import get_object_or_404, render def my_model_detail(request, id): id): object = get_object_or_404(MyModel, id=id) return render(request, 'my_model_detail.html', { 'object': object, }) If you want to render plugins from a specific language, you can use the tag like this:0 码力 | 298 页 | 1.79 MB | 6 月前3
Django CMS 3.8.x Documentation): name = _("Polls Menu") # give the menu a name this is required. def get_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] (optional) The view in which you render your placeholder field must return the request [https://docs.djangoproject.com/en/2.2/ref/request-response/#django.http.HttpRequest] object in the context. This is typically shortcuts import get_object_or_404, render def my_model_detail(request, id): object = get_object_or_404(MyModel, id=id) return render(request, 'my_model_detail.html', { 'object': object,0 码力 | 413 页 | 1.67 MB | 6 月前3
Django CMS 4.0.x DocumentationPollsMenu(CMSAttachMenu): name = _("Polls Menu") # give the menu a name this is required. def get_nodes(self, request): """ This method is used to build the menu tree. """ (continues on next page) 4.1. Django/Python return the request object in the context. This is typically achieved in Django applications by using RequestContext: from django.shortcuts import get_object_or_404, render def my_model_detail(request, id): id): object = get_object_or_404(MyModel, id=id) return render(request, 'my_model_detail.html', { 'object': object, }) If you want to render plugins from a specific language, you can use the tag like this:0 码力 | 296 页 | 1.79 MB | 6 月前3
Django CMS 3.0.x Documentationneeds four attributes: • toolbar: the toolbar object • request the current request • is_current_app a flag indicating whether the current request is handled by the same app as the function is in • app_path app_path the name of the app used for the current request CMSToolbar subclasses must implement a populate method. The populate method will only be called if the current user is a staff user. There’s a lot PollsMenu(CMSAttachMenu): name = _("Polls Menu") # give the menu a name this is required. def get_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all():0 码力 | 180 页 | 1.56 MB | 6 月前3
Conda 25.1.x Documentationavailable packages on conda channels. To demonstrate this, we will add a new dependency so that we can pull in some data from the internet and perform a basic analysis. To perform the data analysis, we will This is especially useful for airgapped and enterprise installations. To ensure that all users only pull packages from an on-premises repository, an administrator can set both channel alias and default_channels for a specific scheme and host, use the scheme://hostname form for the key. This matches for any request to the given scheme and exact host name: proxy_servers: 'http://10.20.1.128': 'http://10.10.1.10:5323'0 码力 | 822 页 | 5.20 MB | 8 月前3
Conda 24.11.x Documentationavailable packages on conda channels. To demonstrate this, we will add a new dependency so that we can pull in some data from the internet and perform a basic analysis. To perform the data analysis, we will This is especially useful for airgapped and enterprise installations. To ensure that all users only pull packages from an on-premises repository, an administrator can set both channel alias and default_channels for a specific scheme and host, use the scheme://hostname form for the key. This matches for any request to the given scheme and exact host name: proxy_servers: 'http://10.20.1.128': 'http://10.10.1.10:5323'0 码力 | 818 页 | 5.21 MB | 8 月前3
共 248 条
- 1
- 2
- 3
- 4
- 5
- 6
- 25













