File: programming.rst

package info (click to toggle)
bashacks 1.5%2Bgit20241128.a8d16fc-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 412 kB
  • sloc: sh: 435; python: 34; makefile: 32
file content (130 lines) | stat: -rw-r--r-- 1,690 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Programming
===========

Session for the creation of facilitators for development in cli


bh_skel_c
---------
Generates on the standard  output ``C`` skeleton.

.. note::

    Usage

        ``bh_skel_c``

.. code-block:: bash 
    
    $ bh_skel_c  
    #include <stdio.h>

    int main(int argc, char ***argv[]**) {

        return 0;
    }


bh_skel_go
---------
Generates on the standard  output ``go`` skeleton.

.. note::

    Usage

        ``bh_skel_go``

.. code-block:: bash 
    
    $ bh_skel_go  
    package main

    import (
        "fmt"
    )

    func main() {

        fmt.Println("test")
    }


bh_skel_latex
---------
Generates on the standard  output ``latex`` skeleton.

.. note::

    Usage

        ``bh_skel_latex``

.. code-block:: bash 
    
    $ bh_skel_latex
    \documentclass{article}

    \usepackage[english]{babel}
    \usepackage[utf8]{inputenc}
    \usepackage[margin=1in]{geometry}

    \author{}
    \title{}

    \begin{document}
    \maketitle

    \end{document}

    
bh_skel_python
--------------

Generates on the standard  output ``python`` skeleton.

.. note::

    Usage

        ``bh_skel_python``

.. code-block:: bash 
    
    $ bh_skel_python
    #!/usr/bin/env python
    # *-* coding: utf-8 *-*

    if __name__ == '__main__':


bh_skel_yara
--------------

Generates on the standard  output ``yara`` skeleton.

.. note::

    Usage

        ``bh_skel_yara``

.. code-block:: bash 
    
    $ bh_skel_yara
    rule test {
    meta:
        author = "mb"
        description = ""
        date = "2022-03-03"
        ref = ""
        hash = ""

    strings:
        $a = "test" ascii wide

    condition:
        all of them
    }