'
13 |
14 | hr_faded: ''
15 | hr_shaded: ''
--------------------------------------------------------------------------------
/_data/sidebars/home_sidebar.yml:
--------------------------------------------------------------------------------
1 | # This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting.
2 |
3 | entries:
4 | - title: Sidebar
5 | levels: one
6 | folders:
7 | - title: হ জ ব র ল
8 | output: web
9 | folderitems:
10 | - title: All
11 | url: /news.html
12 | output: web
13 |
14 | - title: Web resourse
15 | url: /tag_resourse.html
16 | output: web
17 |
18 | - title: Library & Framework
19 | url: /tag_lib_framework.html
20 | output: web
21 |
22 | - title: programmer news
23 | url: /tag_news.html
24 | output: web
25 |
26 | - title: Important notes
27 | url: /tag_notes.html
28 | output: web
29 |
--------------------------------------------------------------------------------
/_data/definitions.yml:
--------------------------------------------------------------------------------
1 | elephant: "This is a sample definition."
2 |
3 | baseball: "Baseball is considered America's pasttime sport, though that may be more of a historical term than a current one. There's a lot more excitement about football than baseball. A baseball game is somewhat of a snooze to watch, for the most part."
4 |
5 | basketball: "Basketball is a sport involving two teams of five players each competing to put a ball through a small circular rim 10 feet above the ground. Basketball requires players to be in top physical condition, since they spend most of the game running back and forth along a 94-foot-long floor."
6 |
7 | football: "No doubt the most fun sport to watch, football also manages to accrue the most injuries with the players. From concussions to blown knees, football players have short sport lives."
8 |
9 | soccer: "If there's one sport that dominates the world landscape, it's soccer. However, US soccer fans are few and far between. Apart from the popularity of soccer during the World Cup, most people don't even know the name of the professional soccer organization in their area."
10 |
11 |
--------------------------------------------------------------------------------
/pdfconfigs/titlepage.html:
--------------------------------------------------------------------------------
1 | ---
2 | type: title
3 | search: exclude
4 | permalink: /titlepage.html/
5 | ---
6 |
7 |
{{site.print_title}}
8 |
{{site.print_subtitle}}
9 |
Last generated: {{ site.time | date: '%B %d, %Y' }}
36 |
--------------------------------------------------------------------------------
/licenses/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2020 Monad Wizard
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/_includes/custom/series_acme_next.html:
--------------------------------------------------------------------------------
1 |
14 | {% for entry in sidebar %}
15 | {% for folder in entry.folders %}
16 | {% if folder.output contains "pdf" and folder.type != "frontmatter" %}
17 |
{{ folder.title }}
18 |
19 | {% for folderitem in folder.folderitems %}
20 | {% if folderitem.output contains "pdf" and folderitem.type != "frontmatter"%}
21 |
{{folderitem.title}}
22 | {% for subfolders in folderitem.subfolders %}
23 | {% if subfolders.output contains "pdf" and subfolders.type != "frontmatter" %}
24 |
{{ subfolders.title }}
25 |
26 | {% for subfolderitem in subfolders.subfolderitems%}
27 | {% if subfolderitem.output contains "pdf" and subfolderitem.type != "frontmatter"%}
28 |
51 | {% if page.tags != null %}
52 | Tags:
53 | {% assign projectTags = site.data.tags.allowed-tags %}
54 | {% for tag in page.tags %}
55 | {% if projectTags contains tag %}
56 | {{page.tagName}}{{tag}}
57 | {% endif %}
58 | {% endfor %}
59 | {% endif %}
60 |
61 |
62 | {% include commento.html %}
63 |
64 |
65 |
66 | {{site.data.alerts.hr_shaded}}
67 |
68 | {% include footer.html %}
69 |
--------------------------------------------------------------------------------
/_posts/2021-6-6-Bootstrap5_learning_kit.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: 'Bootstrap 5 Learning Kit'
3 | categories: jekyll update
4 | permalink: myupdate8.html
5 | tags: [lib_framework]
6 | ---
7 |
8 | Bootstrap শেখার জন্য [Bootstrap এর official doc](https://getbootstrap.com/) এর থেকে ভাল অন্য কোন doc আমি দেখি নাই।
9 |
10 | কিন্তু আমি personal practrice এর জন্য bootstyrap এর কিছু attribute যেমন:
11 |
12 | - Layout
13 | - Content
14 | - Forms
15 | - Components
16 | - Helpers
17 | - Utilities
18 |
19 | ### [Bootstrap 5 Learning Kit](https://monadwizard.github.io/bootstrap5_practrice/)
20 |
21 | Welcome to this custom made Bootstrap 5 Learning Kit. This is specifically created for the online course Master Bootstrap 5 by Frontend Workshop.
22 |
23 | This learning kit consists of the following three sections:
24 |
25 | - Reference:
26 | This section features all the examples complete with code with syntax highlighting, copy-to-clipboard functionality and direct export to CodePen.
27 |
28 | - Practice:
29 | This section features basic HTML elements and content for all the examples, but without any specific Bootstrap classes or attributes. A great way to practice and memorize the various elements of Bootstrap.
30 |
31 | - Screencast:
32 | This section is the starting point for all the video lectures, which are mostly screencasts with all examples coded from scratch. A great way to learn while following along with the course.
33 |
34 | Choose a topic from the dropdown menu. You'll then go to that topic's reference page. From there you can toggle between the three different views: reference, practice and screencast.
35 |
36 | At anytime you can go to another topic from the dropdown menu.
37 |
38 |
39 | [Please go to this Link](https://monadwizard.github.io/bootstrap5_practrice/)
40 |
41 | ### for practrice select any attributes from nav bar to the given link
42 |
43 |
--------------------------------------------------------------------------------
/js/customscripts.js:
--------------------------------------------------------------------------------
1 | $('#mysidebar').height($(".nav").height());
2 |
3 |
4 | $( document ).ready(function() {
5 |
6 | //this script says, if the height of the viewport is greater than 800px, then insert affix class, which makes the nav bar float in a fixed
7 | // position as your scroll. if you have a lot of nav items, this height may not work for you.
8 | var h = $(window).height();
9 | //console.log (h);
10 | if (h > 800) {
11 | $( "#mysidebar" ).attr("class", "nav affix");
12 | }
13 | // activate tooltips. although this is a bootstrap js function, it must be activated this way in your theme.
14 | $('[data-toggle="tooltip"]').tooltip({
15 | placement : 'top'
16 | });
17 |
18 | /**
19 | * AnchorJS
20 | */
21 | anchors.add('h2,h3,h4,h5');
22 |
23 | });
24 |
25 | // needed for nav tabs on pages. See Formatting > Nav tabs for more details.
26 | // script from http://stackoverflow.com/questions/10523433/how-do-i-keep-the-current-tab-active-with-twitter-bootstrap-after-a-page-reload
27 | $(function() {
28 | var json, tabsState;
29 | $('a[data-toggle="pill"], a[data-toggle="tab"]').on('shown.bs.tab', function(e) {
30 | var href, json, parentId, tabsState;
31 |
32 | tabsState = localStorage.getItem("tabs-state");
33 | json = JSON.parse(tabsState || "{}");
34 | parentId = $(e.target).parents("ul.nav.nav-pills, ul.nav.nav-tabs").attr("id");
35 | href = $(e.target).attr('href');
36 | json[parentId] = href;
37 |
38 | return localStorage.setItem("tabs-state", JSON.stringify(json));
39 | });
40 |
41 | tabsState = localStorage.getItem("tabs-state");
42 | json = JSON.parse(tabsState || "{}");
43 |
44 | $.each(json, function(containerId, href) {
45 | return $("#" + containerId + " a[href=" + href + "]").tab('show');
46 | });
47 |
48 | $("ul.nav.nav-pills, ul.nav.nav-tabs").each(function() {
49 | var $this = $(this);
50 | if (!json[$this.attr("id")]) {
51 | return $this.find("a[data-toggle=tab]:first, a[data-toggle=pill]:first").tab("show");
52 | }
53 | });
54 | });
55 |
--------------------------------------------------------------------------------
/_data/sidebars/product2_sidebar.yml:
--------------------------------------------------------------------------------
1 | # This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting.
2 |
3 | entries:
4 | - title: Product2
5 | product: Product2
6 | version: 1.0
7 | folders:
8 |
9 | - title:
10 | output: pdf
11 | type: frontmatter
12 | folderitems:
13 | - title:
14 | url: /titlepage.html
15 | output: pdf
16 | type: frontmatter
17 | - title:
18 | url: /tocpage.html
19 | output: pdf
20 | type: frontmatter
21 |
22 | - title: Introduction
23 | output: web, pdf
24 | folderitems:
25 |
26 | - title: Overview
27 | url: /p2_landing_page.html
28 | output: web
29 |
30 | - title: Simple Workflow
31 | output: web, pdf
32 | folderitems:
33 |
34 | - title: Sample 1
35 | url: /p2_sample1.html
36 | output: web, pdf
37 |
38 | - title: Sample 2
39 | url: /p2_sample2.html
40 | output: web, pdf
41 |
42 | - title: Sample 3
43 | url: /p2_sample3.html
44 | output: web, pdf
45 |
46 | - title: Sample 4
47 | url: /p2_sample4.html
48 | output: web, pdf
49 |
50 | - title: Sample 5
51 | url: /p2_sample5.html
52 | output: web, pdf
53 |
54 | - title: Complex Workflow
55 | output: web, pdf
56 | folderitems:
57 |
58 | - title: Sample 6
59 | url: /p2_sample6.html
60 | output: web, pdf
61 |
62 | - title: Sample 7
63 | url: /p2_sample7.html
64 | output: web, pdf
65 |
66 | - title: Sample 8
67 | url: /p2_sample8.html
68 | output: web, pdf
69 |
70 | - title: Sample 9
71 | url: /p2_sample9.html
72 | output: web, pdf
73 |
74 | - title: Sample 10
75 | url: /p2_sample10.html
76 | output: web, pdf
77 |
78 | - title: Sample 11
79 | url: /p2_sample11.html
80 | output: web, pdf
81 |
82 | - title: Sample 12
83 | url: /p2_sample12.html
84 | output: web, pdf
85 |
86 | - title: Sample 13
87 | url: /p2_sample13.html
88 | output: web, pdf
89 |
90 | - title: Sample 14
91 | url: /p2_sample14.html
92 | output: web, pdf
93 |
--------------------------------------------------------------------------------
/_posts/2021-6-16-emojisence.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: ':emojisense:, Emoji snippet VSCODE'
3 | categories: text-editor emoji, emoji snippet, emojisence
4 | permalink: emojisence.html
5 | tags: [notes]
6 | ---
7 |
8 | VScode এ emoji type করতে চাইলে,
9 |
10 | প্রথমে extention panel থেকে :emojisence: install করে নিতে হবে।
11 |
12 | এর পর settings.json এ emojisense.languages portion এ , যে সব language এ emoji ব্যবহার করার প্রয়োজন সে সব language এর নাম দিয়ে দিতে হবে ।
13 |
14 | আমি একটি demo দিয়ে দিতেছি, চাইলে এই DEMO use করতে পারেন ।
15 |
16 | ```
17 | "emojisense.languages": {
18 | "plaintext": {
19 | "markupCompletionsEnabled": true,
20 | "emojiDecoratorsEnabled": true
21 | },
22 | "javascript.validate.enable": false,
23 | "abap": true,
24 | "bat": true,
25 | "bibtex": true,
26 | "clojure": true,
27 | "coffeescript": true,
28 | "c": true,
29 | "cpp": true,
30 | "csharp": true,
31 | "css": true,
32 | "diff": true,
33 | "dockerfile": true,
34 | "fsharp": true,
35 | "git-commit": true,
36 | "git-rebase": true,
37 | "go": true,
38 | "groovy": true,
39 | "handlebars": true,
40 | "html": true,
41 | "ini": true,
42 | "java": true,
43 | "javascript": true,
44 | "javascriptreact": true,
45 | "json": true,
46 | "jsonc": true,
47 | "latex": true,
48 | "less": true,
49 | "lua": true,
50 | "makefile": true,
51 | "markdown": true,
52 | "objective-c": true,
53 | "objective-cpp": true,
54 | "perl6": true,
55 | "php": true,
56 | "powershell": true,
57 | "jade": true,
58 | "python": true,
59 | "r": true,
60 | "razor": true,
61 | "ruby": true,
62 | "rust": true,
63 | "scss": true,
64 | "sass": true,
65 | "shaderlab": true,
66 | "shellscript": true,
67 | "sql": true,
68 | "swift": true,
69 | "typescript": true,
70 | "typescriptreact": true,
71 | "tex": true,
72 | "vb": true,
73 | "xml": true,
74 | "xsl": true,
75 | "yaml": true
76 | }
77 |
78 | ```
79 |
--------------------------------------------------------------------------------
/_data/samplelist.yml:
--------------------------------------------------------------------------------
1 | entries:
2 | - title: Sidebar
3 | folders:
4 | - title: Food
5 |
6 | folderitems:
7 | - title: Bananas
8 | url: bananas.html
9 |
10 | subfolders:
11 | - title: Apples
12 |
13 | subfolderitems:
14 | - title: Fuji apples
15 | url: fuji_apples.html
16 |
17 |
18 | - title: Gala apples
19 | url: gala_apples.html
20 |
21 | name:
22 | husband: Tom
23 | wife: Shannon
24 |
25 | bikes:
26 | - title: mountain bikes
27 | - title: road bikes
28 | - title: hybrid bikes
29 |
30 |
31 | salesteams:
32 | - title: Regions
33 | subfolderitems:
34 | - location: US
35 | - location: Spain
36 | - location: France
37 |
38 | toc:
39 | - title: Group 1
40 | subfolderitems:
41 | - page: Thing 1
42 | - page: Thing 2
43 | - page: Thing 3
44 | - title: Group 2
45 | subfolderitems:
46 | - page: Piece 1
47 | - page: Piece 2
48 | - page: Piece 3
49 | - title: Group 3
50 | subfolderitems:
51 | - page: Widget 1
52 | - page: Widget 2
53 | - page: Widget 3
54 |
55 | something: &hello Greetings earthling!
56 | myref: *hello
57 |
58 | about:
59 | - zero
60 | - one
61 | - two
62 | - three
63 |
64 | numbercolors:
65 | - zero:
66 | properties: red
67 | - one:
68 | properties: yellow
69 | - two:
70 | properties: green
71 | - three:
72 | properties: blue
73 |
74 | mypages:
75 | - section1: Section 1
76 | audience: developers
77 | product: acme
78 | url: facebook.com
79 | - section2: Section 2
80 | audience: writers
81 | product: acme
82 | url: google.com
83 | - section3: Section 3
84 | audience: developers
85 | product: acme
86 | url: amazon.com
87 | - section4: Section 4
88 | audience: writers
89 | product: gizmo
90 | url: apple.com
91 | - section5: Section 5
92 | audience: writers
93 | product: acme
94 | url: microsoft.com
95 |
96 | feedback: >
97 | This is my feedback to you.
98 | Even if I include linebreaks here,
99 | all of the linebreaks will be removed when the value is inserted.
100 |
101 | block: |
102 | This pipe does something a little different.
103 | It preserves the breaks.
104 | This is really helpful for code samples,
105 | since you can format the code samples with
106 | the appropriate
107 | white spacing.
108 |
--------------------------------------------------------------------------------
/tooltips.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: none
3 | search: exclude
4 | ---
5 |
6 |
7 |
8 | Tooltip Demo
9 |
10 |
11 |
12 |
13 |
55 |
56 |
59 |
60 |
61 |
62 |
63 |
Tooltip Demo
64 |
65 |
This page is purposely separated out from the rest of theme so you can see the bare minimum code to add to a page, without all the other theme's code getting in the way.
66 |
67 |
Content in the tooltips (actually "popovers" according to Bootstrap lingo) can be pulled in dynamically by placing the JSON file on a remote host.
68 |
69 |
Note: Make sure you view the file source so you can read the notes I've added in code comments.
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/css/theme-blue.css:
--------------------------------------------------------------------------------
1 | .summary {
2 | color: #808080;
3 | border-left: 5px solid #ED1951;
4 | font-size:16px;
5 | }
6 |
7 |
8 | h3 {color: #ED1951; }
9 | h4 {color: #808080; }
10 |
11 | .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
12 | background-color: #248ec2;
13 | color: white;
14 | }
15 |
16 | .nav > li.active > a {
17 | background-color: #347DBE;
18 | }
19 |
20 | .nav > li > a:hover {
21 | background-color: #248ec2;
22 | }
23 |
24 | div.navbar-collapse .dropdown-menu > li > a:hover {
25 | background-color: #347DBE;
26 | }
27 |
28 | .nav li.thirdlevel > a {
29 | background-color: #FAFAFA !important;
30 | color: #248EC2;
31 | font-weight: bold;
32 | }
33 |
34 | a[data-toggle="tooltip"] {
35 | color: #649345;
36 | font-style: italic;
37 | cursor: default;
38 | }
39 |
40 | .navbar-inverse {
41 | background-color: #347DBE;
42 | border-color: #015CAE;
43 | }
44 | .navbar-inverse .navbar-nav>li>a, .navbar-inverse .navbar-brand {
45 | color: white;
46 | }
47 |
48 | .navbar-inverse .navbar-nav>li>a:hover, a.fa.fa-home.fa-lg.navbar-brand:hover {
49 | color: #f0f0f0;
50 | }
51 |
52 | a.navbar-brand:hover {
53 | color: #f0f0f0;
54 | }
55 |
56 | .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus {
57 | color: #015CAE;
58 | }
59 |
60 | .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus {
61 | background-color: #015CAE;
62 | color: #ffffff;
63 | }
64 |
65 | .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
66 | border-color: #248ec2 !important;
67 | }
68 |
69 | .btn-primary {
70 | color: #ffffff;
71 | background-color: #347DBE;
72 | border-color: #347DBE;
73 | }
74 |
75 | .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
76 | background-color: #347DBE;
77 | }
78 |
79 | .btn-primary:hover,
80 | .btn-primary:focus,
81 | .btn-primary:active,
82 | .btn-primary.active,
83 | .open .dropdown-toggle.btn-primary {
84 | background-color: #248ec2;
85 | border-color: #347DBE;
86 | }
87 |
88 | .printTitle {
89 | color: #015CAE !important;
90 | }
91 |
92 | body.print h1 {color: #015CAE !important; font-size:28px !important;}
93 | body.print h2 {color: #595959 !important; font-size:20px !important;}
94 | body.print h3 {color: #E50E51 !important; font-size:14px !important;}
95 | body.print h4 {color: #679DCE !important; font-size:14px; font-style: italic !important;}
96 |
97 | .anchorjs-link:hover {
98 | color: #216f9b;
99 | }
100 |
101 | div.sidebarTitle {
102 | color: #015CAE;
103 | }
104 |
105 | li.sidebarTitle {
106 | margin-top:20px;
107 | font-weight:normal;
108 | font-size:130%;
109 | color: #ED1951;
110 | margin-bottom:10px;
111 | margin-left: 5px;
112 |
113 | }
114 |
115 | .navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover {
116 | background-color: #015CAE;
117 | }
118 |
119 | .navbar-inverse .navbar-toggle {
120 | border-color: #015CAE;
121 | }
122 |
--------------------------------------------------------------------------------
/pages/mydoc/drf_genericViews.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Django REST framework example
3 | keywords: Django REST Bangla Tutorials, generic Views REST Django bangla, Bangla Python, Blog Bangla, Monad wizard
4 | last_updated: July 20, 2020
5 | # tags: [getting_started]
6 | summary: 'Django REST Framework generic Views Topic with short note. '
7 | sidebar: mydoc_sidebar
8 | permalink: drf_genericViews.html
9 | folder: mydoc
10 | ---
11 |
12 | basic intro workflow এই section এর 1st post এ দেওয়া হয়েছে ।
13 |
14 | generic makes more easyer code structures for principals. 😏
15 |
16 | ## Generics
17 |
18 | `handler methods:`
19 |
20 | CreateAPIView
21 | ListAPIView
22 | RetreiveAPIView
23 | DestroyAPIView
24 | UpdateAPIView
25 |
26 | ListCreateAPIView __(all non-id based operations)
27 |
28 | RetreiveUpdateAPIView
29 | RetreiveDestroyAPIView
30 | RetreiveUpdateDestroyAPIView __(all id based operations)
31 |
32 | যে রকম Acrion Method এর out-come প্রয়োজন সেই রকম mixin class কে parameter হিসেবে define করলেই DRF বাকি সব execution নিজেই করে নিবে।
33 |
34 |
35 |
36 | [github link](https://github.com/MonadWizard/Django_rest-framework_Views_DEMO/tree/0.4_Generic_Views)
37 |
38 |
39 |
40 | একটি demo DataBase table same as funcrion and classbase:
41 |
42 | ### models.py
43 |
44 | ```python
45 |
46 | from django.db import models
47 |
48 | # Create your models here.
49 | class Student(models.Model):
50 | id = models.IntegerField(primary_key=True)
51 | name = models.CharField(max_length=20)
52 | score = models.DecimalField(max_digits=10,decimal_places=3)
53 |
54 | def __str__(self):
55 | return self.name
56 |
57 | ```
58 |
59 | then serializer data-base table for querify and work in Views.py as DRF procedure
60 |
61 | ### serializers.py
62 |
63 | ```python
64 |
65 | from rest_framework import serializers
66 | from .models import Student
67 |
68 | class StudentSerializer(serializers.ModelSerializer):
69 | class Meta:
70 | model=Student
71 | fields=['id', 'name','score']
72 |
73 | ```
74 |
75 | আমরা এই post এ generics class base view ( generics) নিয়ে কাজ করেছি, যা ২ টা stage এ ঘটেছে।
76 |
77 | - 1.create and view(non-primary key base operations)
78 | - 2.delete, update and view(primary key base operations).
79 |
80 | ### views.py
81 |
82 | ```python
83 |
84 | from cbvApp.models import Student
85 | from cbvApp.serializers import StudentSerializer
86 |
87 | from rest_framework import generics
88 |
89 |
90 | # just call and use handler method
91 |
92 | # non-primery key based operations
93 | class StudentList(generics.ListCreateAPIView):
94 | queryset = Student.objects.all()
95 | serializer_class= StudentSerializer
96 |
97 |
98 | # primery key based operations
99 | class StudentDetail(generics.RetrieveUpdateDestroyAPIView):
100 | queryset = Student.objects.all()
101 | serializer_class= StudentSerializer
102 |
103 | ```
104 |
105 | ### urls.py
106 |
107 | same as class base views
108 |
109 | ```python
110 |
111 | from django.urls import path
112 | from .import views
113 |
114 | urlpatterns = [
115 | path('s/',views.StudentList.as_view()),
116 | path('s/',views.StudentDetail.as_view()),
117 |
118 | ]
119 |
120 | ```
121 |
--------------------------------------------------------------------------------
/pages/product2/p2_sample1.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Sample 1 Topic
3 | keywords: sample
4 | summary: "This is just a sample topic..."
5 | sidebar: product2_sidebar
6 | permalink: p2_sample1.html
7 | simple_map: true
8 | map_name: usermap
9 | box_number: 1
10 | folder: product2
11 | ---
12 |
13 |
14 | ## Sample Content
15 |
16 | Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
17 |
18 | It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
19 |
20 |
21 | ## More sample content
22 |
23 | Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
24 |
25 | The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
26 |
27 | There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
28 |
29 | {% include links.html %}
30 |
--------------------------------------------------------------------------------
/pages/product2/p2_sample14.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Sample 14 Topic
3 | keywords: sample
4 | summary: "This is just a sample topic..."
5 | sidebar: product2_sidebar
6 | permalink: p2_sample14.html
7 | complex_map: true
8 | map_name: usermapcomplex
9 | box_number: 3
10 | toc: false
11 | folder: product2
12 | ---
13 |
14 |
15 | ## Sample Content
16 |
17 | Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
18 |
19 | It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
20 |
21 |
22 | ## More sample content
23 |
24 | Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
25 |
26 | The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
27 |
28 | There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
29 |
30 | {% include links.html %}
31 |
--------------------------------------------------------------------------------
/js/toc.js:
--------------------------------------------------------------------------------
1 | // https://github.com/ghiculescu/jekyll-table-of-contents
2 | (function($){
3 | $.fn.toc = function(options) {
4 | var defaults = {
5 | noBackToTopLinks: false,
6 | title: '',
7 | minimumHeaders: 3,
8 | headers: 'h1, h2, h3, h4',
9 | listType: 'ol', // values: [ol|ul]
10 | showEffect: 'show', // values: [show|slideDown|fadeIn|none]
11 | showSpeed: 'slow' // set to 0 to deactivate effect
12 | },
13 | settings = $.extend(defaults, options);
14 |
15 | var headers = $(settings.headers).filter(function() {
16 | // get all headers with an ID
17 | var previousSiblingName = $(this).prev().attr( "name" );
18 | if (!this.id && previousSiblingName) {
19 | this.id = $(this).attr( "id", previousSiblingName.replace(/\./g, "-") );
20 | }
21 | return this.id;
22 | }), output = $(this);
23 | if (!headers.length || headers.length < settings.minimumHeaders || !output.length) {
24 | return;
25 | }
26 |
27 | if (0 === settings.showSpeed) {
28 | settings.showEffect = 'none';
29 | }
30 |
31 | var render = {
32 | show: function() { output.hide().html(html).show(settings.showSpeed); },
33 | slideDown: function() { output.hide().html(html).slideDown(settings.showSpeed); },
34 | fadeIn: function() { output.hide().html(html).fadeIn(settings.showSpeed); },
35 | none: function() { output.html(html); }
36 | };
37 |
38 | var get_level = function(ele) { return parseInt(ele.nodeName.replace("H", ""), 10); }
39 | var highest_level = headers.map(function(_, ele) { return get_level(ele); }).get().sort()[0];
40 | var return_to_top = '';
41 |
42 | var level = get_level(headers[0]),
43 | this_level,
44 | html = settings.title + " <"+settings.listType+">";
45 | headers.on('click', function() {
46 | if (!settings.noBackToTopLinks) {
47 | window.location.hash = this.id;
48 | }
49 | })
50 | .addClass('clickable-header')
51 | .each(function(_, header) {
52 | this_level = get_level(header);
53 | if (!settings.noBackToTopLinks && this_level === highest_level) {
54 | $(header).addClass('top-level-header').after(return_to_top);
55 | }
56 | if (this_level === level) // same level as before; same indenting
57 | html += "
" + header.innerHTML + "";
58 | else if (this_level <= level){ // higher level than before; end parent ol
59 | for(i = this_level; i < level; i++) {
60 | html += "
"+settings.listType+">"
61 | }
62 | html += "
" + header.innerHTML + "";
63 | }
64 | else if (this_level > level) { // lower level than before; expand the previous to contain a ol
65 | for(i = this_level; i > level; i--) {
66 | html += "<"+settings.listType+">
If you run into any of these setup issues, you must solve them before you can continue on.
23 |
24 |
25 |
28 |
29 |
30 |
31 | →
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
Build your widgets
42 |
43 |
44 |
In this step, you will build the widgets for your system. The widgets form the various components that blah blah blah this is dummy text power the nuclear capabilities of your energy transformer into deep space using wormhole technology and warp drive speeds.
45 |
46 |
In order to configure your widgets, you will need to follow these topics:
After you've configured all the necessary components to build your space transformer, you need to publish your app. Of course this content is also just dummy text. Pay no particular attention to the content but rather the format and placement of the map.