From c970ba8612111b6d3cf8aa3cc4fff7e85f40666e Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Fri, 18 Nov 2016 16:43:30 +0000 Subject: git revision --- dev/git.html | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- dev/index.html | 8 +++++++- 2 files changed, 55 insertions(+), 2 deletions(-) (limited to 'dev') diff --git a/dev/git.html b/dev/git.html index 5d65b32..de11de0 100644 --- a/dev/git.html +++ b/dev/git.html @@ -252,7 +252,16 @@ $ git -D h-1.2.2 -

Local Workflow

+

2. Local Workflow

+ +

2.1. Working area

+ +

Mark all deleted to commit;

+ +
+    $ git ls-files --deleted -z | xargs -0 git rm
+    
+

Mark all deleted to commit;

@@ -260,6 +269,8 @@ $ git ls-files --deleted -z | xargs -0 git rm +

2.2. Logs and commits

+

Last commit that affected current path

@@ -274,6 +285,42 @@
     $ git checkout f000^ -- path/to/file
     
+

2.3. Working with remotes

+ +

Update all branches with remote;

+ +
+    $ git fetch --all
+    $ git pull --all
+    
+ +

If you want to track all remotes run this line + and then the commands mentioned above;

+ +
+    $ for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done
+    
+ +

Future updates;

+ +
+    $ git fetch --all
+    $ git pull --all
+    
+ +

Update local branches removed on remote set;

+ +
+    $ git config --global fetch.prune true
+    
+ + +

This will prune on fetch or you can keep it manually;

+ +
+    $ git remote prune origin
+    
+ Development Index

This is part of the c9-doc Manual. Copyright (C) 2016 diff --git a/dev/index.html b/dev/index.html index 3d20e72..93b5246 100644 --- a/dev/index.html +++ b/dev/index.html @@ -24,7 +24,13 @@

  • 1.4. Hotfix
  • -
  • 2. Local Workflow
  • +
  • 2. Local Workflow + +
  • -- cgit 1.4.1-2-gfad0 From 07f4ffef600659a512784e08d1766eb606c2075c Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Tue, 20 Dec 2016 18:08:55 +0000 Subject: dev git fix --- dev/git.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dev') diff --git a/dev/git.html b/dev/git.html index de11de0..11028ee 100644 --- a/dev/git.html +++ b/dev/git.html @@ -271,6 +271,12 @@

    2.2. Logs and commits

    +

    Create patch files to target branch/tag/ref;

    + +
    +    $ git format-patch --no-prefix software-v0.0.1
    +    
    +

    Last commit that affected current path

    -- 
    cgit 1.4.1-2-gfad0
    
    
    From cb6dc0b2a4325611b32a22a7cdb36d7f42edb15e Mon Sep 17 00:00:00 2001
    From: Silvino Silva 
    Date: Fri, 18 Nov 2016 17:19:59 +0000
    Subject: dev git add new remotes
    
    ---
     dev/git.html | 6 ++++++
     1 file changed, 6 insertions(+)
    
    (limited to 'dev')
    
    diff --git a/dev/git.html b/dev/git.html
    index 11028ee..3660d55 100644
    --- a/dev/git.html
    +++ b/dev/git.html
    @@ -293,6 +293,12 @@
     
         

    2.3. Working with remotes

    +

    Adding a new remote;

    + +
    +    $ git remote add newremotename https://github.com/user/repo.git
    +    
    +

    Update all branches with remote;

    -- 
    cgit 1.4.1-2-gfad0
    
    
    From d1ffc3ff0fba208b29056c3c39ad78062c813114 Mon Sep 17 00:00:00 2001
    From: Silvino Silva 
    Date: Thu, 12 Jan 2017 16:47:06 +0000
    Subject: development revision
    
    ---
     dev/c/index.html      | 103 +++++++++++++++
     dev/dash.html         |  24 ----
     dev/gdbc.html         |  97 --------------
     dev/git.html          | 343 --------------------------------------------------
     dev/git/index.html    | 343 ++++++++++++++++++++++++++++++++++++++++++++++++++
     dev/index.html        |  90 ++++++++-----
     dev/js/index.html     |  24 ++++
     dev/perl/index.html   |  24 ++++
     dev/php/index.html    |  24 ++++
     dev/python/index.html |  24 ++++
     dev/shell/dash.html   |  24 ++++
     11 files changed, 627 insertions(+), 493 deletions(-)
     create mode 100644 dev/c/index.html
     delete mode 100644 dev/dash.html
     delete mode 100644 dev/gdbc.html
     delete mode 100644 dev/git.html
     create mode 100644 dev/git/index.html
     create mode 100644 dev/js/index.html
     create mode 100644 dev/perl/index.html
     create mode 100644 dev/php/index.html
     create mode 100644 dev/python/index.html
     create mode 100644 dev/shell/dash.html
    
    (limited to 'dev')
    
    diff --git a/dev/c/index.html b/dev/c/index.html
    new file mode 100644
    index 0000000..09374c6
    --- /dev/null
    +++ b/dev/c/index.html
    @@ -0,0 +1,103 @@
    +
    +
    +    
    +        
    +        C & GDB
    +    
    +    
    +        Development Index
    +
    +        

    C & GDB

    + +

    C program with autotools +

    + +
    +        $ touch NEWS README AUTHORS ChangeLog
    +        $ mkdir -p src/bin src/lib
    +        
    + +

    + GDB Quick Start, + Learning C with GDB + and Memory Layout and the Stack + are great sources of introductory information. +

    + +

    To use gdb you need to compile program with -g flag. To + debug a program;

    + +
    +        gdb program
    +        
    + +

    If the program needs arguments you can set it;

    + +
    +        (gdb)set args -parameter1 -parameter2
    +        
    + +

    To start the program you can type run, this way gdb + will try to run the program until the end. If program + crash, gdb will stop it for debuging.

    + +
    +        (gdb) run
    +        
    + +
    +        n - execute next line
    +        s - step in next line
    +        b - backtrace
    +        info locals
    +        print
    +        x
    +        
    + +

    SysCalls

    + +
    catch syscall open
    + +

    Threads

    + +

    When new thread is created you receive + a notification. To get information about + threads;

    + +
    +        info threads
    +        
    + +

    To select thread;

    + +
    +        thread 1
    +        
    + +

    Stopping and Starting + multi-thread programs

    + +
    +        break linespec thread threadno
    +        
    + +

    Strace

    + +
    +        strace -c ./program
    +        
    + + + Development Index +

    + This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 team. + See the file Gnu Free Documentation License + for copying conditions.

    + + + + + + diff --git a/dev/dash.html b/dev/dash.html deleted file mode 100644 index 0329559..0000000 --- a/dev/dash.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - Dash - Script - - - - Development Index -

    Dash - Scripting

    - -

    Hello World

    -

    Input / Output

    -

    Variables

    -

    Conditions

    - - Development Index -

    This is part of the c9-doc Manual. - Copyright (C) 2016 - c9 Team. - See the file Gnu Free Documentation License - for copying conditions.

    - - diff --git a/dev/gdbc.html b/dev/gdbc.html deleted file mode 100644 index f5b2c74..0000000 --- a/dev/gdbc.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - GDB - C - - - - Development Index -

    GDB - C

    - -

    C program with autotools -

    - -
    -        $ touch NEWS README AUTHORS ChangeLog
    -        $ mkdir -p src/bin src/lib
    -        
    - -

    - GDB Quick Start, - Learning C with GDB - and Memory Layout and the Stack - are great sources of introductory information. -

    - -

    To use gdb you need to compile program with -g flag. To - debug a program;

    - -
    -        gdb program
    -        
    - -

    If the program needs arguments you can set it;

    - -
    -        (gdb)set args -parameter1 -parameter2
    -        
    - -

    To start the program you can type run, this way gdb - will try to run the program until the end. If program - crash, gdb will stop it for debuging.

    - -
    -        (gdb) run
    -        
    - -
    -        n - execute next line
    -        s - step in next line
    -        b - backtrace
    -        info locals
    -        print
    -        x
    -        
    - -

    SysCalls

    - -
    catch syscall open
    - -

    Threads

    - -

    When new thread is created you receive - a notification. To get information about - threads;

    - -
    -        info threads
    -        
    - -

    To select thread;

    - -
    -        thread 1
    -        
    - -

    Stopping and Starting - multi-thread programs

    - -
    -        break linespec thread threadno
    -        
    - -

    Strace

    - -
    -        strace -c ./program
    -        
    - - Development Index -

    This is part of the c9-doc Manual. - Copyright (C) 2016 - c9 Team. - See the file Gnu Free Documentation License - for copying conditions.

    - - diff --git a/dev/git.html b/dev/git.html deleted file mode 100644 index 3660d55..0000000 --- a/dev/git.html +++ /dev/null @@ -1,343 +0,0 @@ - - - - - Git - - - - Development Index -

    Git

    - -

    First configure your global identity, configuration - file resides on ~/.gitconfig ;

    - -
    -       $ git config --global user.name "User Name"
    -       $ git config --global user.email user@devbox
    -    
    - -

    Assumptions of this document;

    - -
      -
    • Correct - user account - exists on git server or is public readable. -
    • -
    • Repository exists or - create one - if you have permissions. This document uses atom as example. -
    • -
    • Correct - ssh identities, - and profile alias have been setup. This document uses devbox as example. -
    • -
    - -
    -       $ git clone devbox:atom
    -       $ git remote -v
    -    
    - -

    1. Team WorkFlow

    - -

    This work flow is based on - Vicent Driessen - development model, it defines rules how branches are forked, - merged and tagged. By having well defined set of branches, - the project structure is used as a communication tool, - allowing to work simultaneously on different stages - of the development.

    - -

    Main Branches;

    - -
    -
    master
    -
    Current official stable release history.
    -
    develop
    -
    Integration branch for features.
    -
    - -

    Add-on Branches;

    - -
    -
    feature (f-)
    -
    New features, improvement proposal, tests, etc...
    -
    Only fork and merge from/to develop. -
    release (r-)
    -
    Next release, new features not allowed.
    -
    Fork from develop, merges to master and develop.
    -
    hotfix (h-)
    -
    Hotfix only contain isolated bugfixes.
    -
    Only fork from master, merges back to master and develop.
    -
    - -

    -

    1.1. Feature

    - -

    Create a branch featurex from develop and checkout;

    - -
    -    $ git checkout -b featurex develop
    -    
    - -

    Push new branch to server

    - -
    -    $ git push -u origin featurex
    -    
    - -

    Rename a branch, if all feature branches start by "f-" is easy - and quick to type and easy to spot;

    - -
    -    $ git branch -m featurex f-xpto
    -    
    - -

    Rename remote branch;

    - -
    -    $ git push origin :featurex f-xpto
    -    $ git push origin -u f-xpto
    -    
    - -

    Merge branch feature into develop;

    - -
    -    $ git checkout develop
    -    Switched to branch 'develop'
    -    $ git merge --no-ff f-xpto
    -    Updating ea1b82a..05e9557
    -    (Summary of changes)
    -    $ git push origin develop
    -    
    - -

    Delete Local;

    - -
    -    $ git branch -D f-xpto
    -    
    - -

    Delete Remote

    - -
    -    $ git push origin :f-xpto
    -    
    - -

    1.2. Release

    - -

    Software release numbers follow Tom Preston-Werner - description;

    - -
    -    software-name-X.Y.Z.tar.xz
    -    
    - -
    -
    X
    -
    Major version, backwards incompatible API changes.
    -
    Y
    -
    Minor version, backwards-compatible changes.
    -
    Z
    -
    Patch version, backwards-compatible bug fixes.
    -
    - -
    -    $ git checkout -b r-1.2.1 develop
    -    Switched to a new branch "release-1.2.1"
    -    $ ./bump-version.sh 1.2.1
    -    Files modified successfully, version bumped to 1.2.1.
    -    $ git commit -a -m "Bumped version number to 1.2.1"
    -    [release-1.2 74d9424] Bumped version number to 1.2.1
    -    1 files changed, 1 insertions(+), 1 deletions(-)
    -    
    - -

    Only documentation or bugfixes are allowed in this - branch. When release is ready for production merge - and push to master;

    - -
    -    $ git checkout master
    -    Switched to branch 'master'
    -    $ git merge --no-ff r-1.2.1
    -    Merge made by recursive.
    -    
    - -

    Tag new release with software-name-version, this - allows meaningful ports - distfiles when - downloading releases from git archives;

    - -
    -    $ git tag -a software-name-1.2.1
    -    $ git push --follow-tags
    -    
    - -

    Update branch develop with bugfixes from last release, - conflict will happen in next step

    - -
    -    $ git checkout develop
    -    Switched to branch 'develop'
    -    $ git merge --no-ff r-1.2.1
    -    Merge made by recursive.
    -    (Summary of changes)
    -    $ git push
    -    
    - -

    1.3. Tags

    - -

    There are two main types of tags, lightweight and - annotated. Lightweight tag is a pointer to a specific commit, - much like cheap branches. Annotated tags are stored as full objects - and allow to sign with gnupg, making it ideal - for distributing releases.

    - -

    Delete local and remote last end of life version;

    - -
    -    $ git tag -d software-name-0.0.12
    -    $ git push origin :refs/tags/software-name-0.8
    -    
    - -

    Checkout master commit you want to start long term support and then;

    - -
    -    $ git tag -m "this commit is tagged" -a "software-name-1.1.8"
    -    $ git push --follow-tags
    -    
    - -

    1.4. Hotfix

    - -

    This branch should never exist, ;)

    - -
    -    $ git checkout -b h-1.2.2 master
    -    $ ./bump-version.sh 1.2.2
    -    Files modified successfully, version bumped to 1.2.2
    -    $ git commit -a -m "Bumped version number to 1.2.2"
    -    
    - -
    -    $ git merge --no-ff b-error-xpto
    -    ...
    -    $ git merge --no-ff b-error-xpto
    -    ...
    -    $ git commit -m "Commit severe fix"
    -    ...
    -    $ git commit -m "Commit severe fix"
    -    ...
    -    
    - -
    -    $ git checkout master
    -    Switched to branch 'master'
    -    $ git merge --no-ff h-1.2.2
    -    Merge made by recursive.
    -    (Summary of changes)
    -    $ git tag -a software-name-1.2.2
    -    
    - -

    Conflict will happen in next step

    - -
    -    $ git checkout develop
    -    Switched to branch 'develop'
    -    $ git merge --no-ff h-1.2.2
    -    Merge made by recursive.
    -    (Summary of changes)
    -    
    - -
    -    $ git -D h-1.2.2
    -    
    - -

    2. Local Workflow

    - -

    2.1. Working area

    - -

    Mark all deleted to commit;

    - -
    -    $ git ls-files --deleted -z | xargs -0 git rm
    -    
    - - -

    Mark all deleted to commit;

    - -
    -    $ git ls-files --deleted -z | xargs -0 git rm
    -    
    - -

    2.2. Logs and commits

    - -

    Create patch files to target branch/tag/ref;

    - -
    -    $ git format-patch --no-prefix software-v0.0.1
    -    
    - -

    Last commit that affected current path

    - -
    -    $ git rev-list -n 1 HEAD -- .
    -    $ git show f000 path/to/file
    -    $ git diff --name-status f000 path/to/file
    -    
    - -

    Undo a file to specific commit

    - -
    -    $ git checkout f000^ -- path/to/file
    -    
    - -

    2.3. Working with remotes

    - -

    Adding a new remote;

    - -
    -    $ git remote add newremotename https://github.com/user/repo.git
    -    
    - -

    Update all branches with remote;

    - -
    -    $ git fetch --all
    -    $ git pull --all
    -    
    - -

    If you want to track all remotes run this line - and then the commands mentioned above;

    - -
    -    $ for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done
    -    
    - -

    Future updates;

    - -
    -    $ git fetch --all
    -    $ git pull --all
    -    
    - -

    Update local branches removed on remote set;

    - -
    -    $ git config --global fetch.prune true
    -    
    - - -

    This will prune on fetch or you can keep it manually;

    - -
    -    $ git remote prune origin
    -    
    - - Development Index -

    This is part of the c9-doc Manual. - Copyright (C) 2016 - c9 Team. - See the file Gnu Free Documentation License - for copying conditions.

    - - diff --git a/dev/git/index.html b/dev/git/index.html new file mode 100644 index 0000000..40ae49d --- /dev/null +++ b/dev/git/index.html @@ -0,0 +1,343 @@ + + + + + Git + + + + Development Index +

    Git

    + +

    First configure your global identity, configuration + file resides on ~/.gitconfig ;

    + +
    +       $ git config --global user.name "User Name"
    +       $ git config --global user.email user@devbox
    +    
    + +

    Assumptions of this document;

    + +
      +
    • Correct + user account + exists on git server or is public readable. +
    • +
    • Repository exists or + create one + if you have permissions. This document uses atom as example. +
    • +
    • Correct + ssh identities, + and profile alias have been setup. This document uses devbox as example. +
    • +
    + +
    +       $ git clone devbox:atom
    +       $ git remote -v
    +    
    + +

    1. Team WorkFlow

    + +

    This work flow is based on + Vicent Driessen + development model, it defines rules how branches are forked, + merged and tagged. By having well defined set of branches, + the project structure is used as a communication tool, + allowing to work simultaneously on different stages + of the development.

    + +

    Main Branches;

    + +
    +
    master
    +
    Current official stable release history.
    +
    develop
    +
    Integration branch for features.
    +
    + +

    Add-on Branches;

    + +
    +
    feature (f-)
    +
    New features, improvement proposal, tests, etc...
    +
    Only fork and merge from/to develop. +
    release (r-)
    +
    Next release, new features not allowed.
    +
    Fork from develop, merges to master and develop.
    +
    hotfix (h-)
    +
    Hotfix only contain isolated bugfixes.
    +
    Only fork from master, merges back to master and develop.
    +
    + +

    +

    1.1. Feature

    + +

    Create a branch featurex from develop and checkout;

    + +
    +    $ git checkout -b featurex develop
    +    
    + +

    Push new branch to server

    + +
    +    $ git push -u origin featurex
    +    
    + +

    Rename a branch, if all feature branches start by "f-" is easy + and quick to type and easy to spot;

    + +
    +    $ git branch -m featurex f-xpto
    +    
    + +

    Rename remote branch;

    + +
    +    $ git push origin :featurex f-xpto
    +    $ git push origin -u f-xpto
    +    
    + +

    Merge branch feature into develop;

    + +
    +    $ git checkout develop
    +    Switched to branch 'develop'
    +    $ git merge --no-ff f-xpto
    +    Updating ea1b82a..05e9557
    +    (Summary of changes)
    +    $ git push origin develop
    +    
    + +

    Delete Local;

    + +
    +    $ git branch -D f-xpto
    +    
    + +

    Delete Remote

    + +
    +    $ git push origin :f-xpto
    +    
    + +

    1.2. Release

    + +

    Software release numbers follow Tom Preston-Werner + description;

    + +
    +    software-name-X.Y.Z.tar.xz
    +    
    + +
    +
    X
    +
    Major version, backwards incompatible API changes.
    +
    Y
    +
    Minor version, backwards-compatible changes.
    +
    Z
    +
    Patch version, backwards-compatible bug fixes.
    +
    + +
    +    $ git checkout -b r-1.2.1 develop
    +    Switched to a new branch "release-1.2.1"
    +    $ ./bump-version.sh 1.2.1
    +    Files modified successfully, version bumped to 1.2.1.
    +    $ git commit -a -m "Bumped version number to 1.2.1"
    +    [release-1.2 74d9424] Bumped version number to 1.2.1
    +    1 files changed, 1 insertions(+), 1 deletions(-)
    +    
    + +

    Only documentation or bugfixes are allowed in this + branch. When release is ready for production merge + and push to master;

    + +
    +    $ git checkout master
    +    Switched to branch 'master'
    +    $ git merge --no-ff r-1.2.1
    +    Merge made by recursive.
    +    
    + +

    Tag new release with software-name-version, this + allows meaningful ports + distfiles when + downloading releases from git archives;

    + +
    +    $ git tag -a software-name-1.2.1
    +    $ git push --follow-tags
    +    
    + +

    Update branch develop with bugfixes from last release, + conflict will happen in next step

    + +
    +    $ git checkout develop
    +    Switched to branch 'develop'
    +    $ git merge --no-ff r-1.2.1
    +    Merge made by recursive.
    +    (Summary of changes)
    +    $ git push
    +    
    + +

    1.3. Tags

    + +

    There are two main types of tags, lightweight and + annotated. Lightweight tag is a pointer to a specific commit, + much like cheap branches. Annotated tags are stored as full objects + and allow to sign with gnupg, making it ideal + for distributing releases.

    + +

    Delete local and remote last end of life version;

    + +
    +    $ git tag -d software-name-0.0.12
    +    $ git push origin :refs/tags/software-name-0.8
    +    
    + +

    Checkout master commit you want to start long term support and then;

    + +
    +    $ git tag -m "this commit is tagged" -a "software-name-1.1.8"
    +    $ git push --follow-tags
    +    
    + +

    1.4. Hotfix

    + +

    This branch should never exist, ;)

    + +
    +    $ git checkout -b h-1.2.2 master
    +    $ ./bump-version.sh 1.2.2
    +    Files modified successfully, version bumped to 1.2.2
    +    $ git commit -a -m "Bumped version number to 1.2.2"
    +    
    + +
    +    $ git merge --no-ff b-error-xpto
    +    ...
    +    $ git merge --no-ff b-error-xpto
    +    ...
    +    $ git commit -m "Commit severe fix"
    +    ...
    +    $ git commit -m "Commit severe fix"
    +    ...
    +    
    + +
    +    $ git checkout master
    +    Switched to branch 'master'
    +    $ git merge --no-ff h-1.2.2
    +    Merge made by recursive.
    +    (Summary of changes)
    +    $ git tag -a software-name-1.2.2
    +    
    + +

    Conflict will happen in next step

    + +
    +    $ git checkout develop
    +    Switched to branch 'develop'
    +    $ git merge --no-ff h-1.2.2
    +    Merge made by recursive.
    +    (Summary of changes)
    +    
    + +
    +    $ git -D h-1.2.2
    +    
    + +

    2. Local Workflow

    + +

    2.1. Working area

    + +

    Mark all deleted to commit;

    + +
    +    $ git ls-files --deleted -z | xargs -0 git rm
    +    
    + + +

    Mark all deleted to commit;

    + +
    +    $ git ls-files --deleted -z | xargs -0 git rm
    +    
    + +

    2.2. Logs and commits

    + +

    Create patch files to target branch/tag/ref;

    + +
    +    $ git format-patch --no-prefix software-v0.0.1
    +    
    + +

    Last commit that affected current path

    + +
    +    $ git rev-list -n 1 HEAD -- .
    +    $ git show f000 path/to/file
    +    $ git diff --name-status f000 path/to/file
    +    
    + +

    Undo a file to specific commit

    + +
    +    $ git checkout f000^ -- path/to/file
    +    
    + +

    2.3. Working with remotes

    + +

    Adding a new remote;

    + +
    +    $ git remote add newremotename https://github.com/user/repo.git
    +    
    + +

    Update all branches with remote;

    + +
    +    $ git fetch --all
    +    $ git pull --all
    +    
    + +

    If you want to track all remotes run this line + and then the commands mentioned above;

    + +
    +    $ for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done
    +    
    + +

    Future updates;

    + +
    +    $ git fetch --all
    +    $ git pull --all
    +    
    + +

    Update local branches removed on remote set;

    + +
    +    $ git config --global fetch.prune true
    +    
    + + +

    This will prune on fetch or you can keep it manually;

    + +
    +    $ git remote prune origin
    +    
    + + Development Index +

    This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 Team. + See the file Gnu Free Documentation License + for copying conditions.

    + + diff --git a/dev/index.html b/dev/index.html index 93b5246..befe5d6 100644 --- a/dev/index.html +++ b/dev/index.html @@ -11,35 +11,44 @@

    Tools for development and debugging

    -

    Source Code Revision

    +

    Git

    + +

    Git is a distributed version control system, this document is meant to be distributed using git.

    -

    C

    +

    C & GDB

    + +

    C is functional compiled language created by Dennis Ritchie. BSD, Linux and Minix kernels use this language + as primary language.

    + +

    Shell Script

    @@ -49,38 +58,61 @@ use bash;

    Python

    Perl

    +

    JavaScript

    PHP

    - diff --git a/dev/js/index.html b/dev/js/index.html new file mode 100644 index 0000000..ae7e946 --- /dev/null +++ b/dev/js/index.html @@ -0,0 +1,24 @@ + + + + + c9 JavaScript + + + Development Index + +

    c9 JavaScript

    + + Development Index +

    + This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 team. + See the file Gnu Free Documentation License + for copying conditions.

    + + + + + + diff --git a/dev/perl/index.html b/dev/perl/index.html new file mode 100644 index 0000000..247a96f --- /dev/null +++ b/dev/perl/index.html @@ -0,0 +1,24 @@ + + + + + c9 Perl + + + Development Index + +

    c9 Perl

    + + Development Index +

    + This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 team. + See the file Gnu Free Documentation License + for copying conditions.

    + + + + + + diff --git a/dev/php/index.html b/dev/php/index.html new file mode 100644 index 0000000..2a44270 --- /dev/null +++ b/dev/php/index.html @@ -0,0 +1,24 @@ + + + + + c9 PHP + + + Development Index + +

    c9 PHP

    + + Development Index +

    + This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 team. + See the file Gnu Free Documentation License + for copying conditions.

    + + + + + + diff --git a/dev/python/index.html b/dev/python/index.html new file mode 100644 index 0000000..3fc8ea1 --- /dev/null +++ b/dev/python/index.html @@ -0,0 +1,24 @@ + + + + + c9 Python + + + Development Index + +

    c9 Python

    + + Development Index +

    + This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 team. + See the file Gnu Free Documentation License + for copying conditions.

    + + + + + + diff --git a/dev/shell/dash.html b/dev/shell/dash.html new file mode 100644 index 0000000..3a0e6de --- /dev/null +++ b/dev/shell/dash.html @@ -0,0 +1,24 @@ + + + + + Dash - Script + + + + Development Index +

    Dash - Scripting

    + +

    Hello World

    +

    Input / Output

    +

    Variables

    +

    Conditions

    + + Development Index +

    This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 Team. + See the file Gnu Free Documentation License + for copying conditions.

    + + -- cgit 1.4.1-2-gfad0 From a671b0c01821d46d9f783393b887d7987ec10161 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Wed, 1 Feb 2017 05:09:54 +0000 Subject: added debugging to python --- dev/python/index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'dev') diff --git a/dev/python/index.html b/dev/python/index.html index 3fc8ea1..e9b78eb 100644 --- a/dev/python/index.html +++ b/dev/python/index.html @@ -9,6 +9,21 @@

    c9 Python

    +
    +        test="/root/data"
    +        dir= test + "/other"
    +        print(dir)
    +        
    + +

    Debugging;

    + +
    +        import pdb
    +        pdb.set_trace()
    +        
    + +

    Run your program;

    + Development Index

    This is part of the c9-doc Manual. -- cgit 1.4.1-2-gfad0