My collection of code snippets.
Python C++ Java C Jupyter Notebook Makefile Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
android Add and update some snippets. Mar 25, 2017
atmel_mega_avr
awk Add a snippet (AWK). Jan 10, 2016
bash
c
cmake
commands Remove some links to avoid circular paths in FS graph. Nov 22, 2017
commands_macosx
cpp
design_patterns
electron
fortran
gdl Misc update. Dec 12, 2015
gnuplot
graphviz
groovy
java
javascript Add an directory for the 'electron' framework. Nov 16, 2017
jshell Add a snippet. Mar 13, 2018
latex Add a submodule (latex/beamer_snippets). Nov 4, 2016
lua Misc updates. Jan 10, 2016
m4 Add comments. Oct 17, 2016
make Add two symbolic links. Jun 18, 2015
markdown Move a directory. Jan 11, 2016
mathml Add some snippets (MathML). Aug 18, 2015
octave Add a lot of snippets (GNU Octave). Nov 7, 2014
openmp Move some files. Oct 22, 2014
openscad
perl
php
processing.py Add a snippet (processing.py). Feb 3, 2016
processing Add a symlink. Feb 3, 2016
prolog
python Add a snippet. Aug 3, 2018
r
raspberry_pi Add a submodule. May 8, 2017
ruby
s5 Add a snippet (s5). Aug 18, 2015
sample-images @ 1d05a55 Add the 'sample-images' submodule. Oct 31, 2016
sample-sounds @ a3a2924
scheme Add a Scheme (LISP) snippet. Dec 12, 2015
science
shell
smalltalk
web
.gitignore Standardize some files. Apr 23, 2016
.gitmodules
ABOUT
AUTHORS
LICENSE
README.md Misc udpate. May 18, 2016
TODO.md
arduino
blender
idl Add a symlink. Dec 12, 2015
lisp
matlab

README.md

JDHP Snippets

Copyright (c) 2009-2016 Jérémie DECOCK (http://www.jdhp.org)

Description

This is a collection of hundreds of original snippets, i.e. small pieces of code I have written to test a specific aspect of a programming language, a programming library, a description format, a protocol, ...

Here you will find snippets for several topics:

For more exhaustive information, see the following sections.

### Programming languages

  • The python directory contains hundreds of snippets on Python language and some Python libraries.
  • The cpp directory contains hundreds of snippets on the C++ language and some C++ libraries.
  • The c directory contains a hundred of snippets on the C language and some C libraries.
  • The octave directory contains dozens snippets on Octave (Matlab clone).
  • The java directory contains some snippets on the Java language and some Java libraries.
  • The shell and commands directories contain some snippets on shell scripts (Bourne shell and Bash).

### Unix programming

  • The c/unix directory contains about fifty snippets on Unix/Linux system calls in C.
  • The c/debian, python/debian and java/debian directories contain some snippets on Debian packaging in C/C++, Python and Java.

Scientific programming libraries

Parallel computing and high performance computing

### Image processing programming libraries

  • The python/opencv directory contains some snippets on the OpenCV image processing library for Python.
  • The c/opencv directory contains some snippets on the OpenCV image processing library for the C programming language.
  • The cpp/opencv directory contains some snippets on the OpenCV image processing library for the C++ programming language.
  • The python/pil directory contains some snippets on the PIL and Pillow Python imaging libraries.

### General API

### Programming tools

XML and web development

  • The java/sax and python/sax directories contain some snippets on the SAX XML API for the Java and Python programming languages.
  • The web directory contains some snippets on HTML5, CSS, XML, DOM, Xpath, Xinclude, Xquery, SVG, XSD (XML Schema) and XSLT.

Embedded Systems Programming

Graphical User Interface libraries

  • The c/gtk and python/pygtk directories contain some snippets on the GTK+ graphical user interfaces (C and Python).
  • The cpp/qt and python/pyqt directories contain some snippets on the Qt C++ and Python UI framework.
  • The java/swing directory contains some snippets on the Swing Java UI framework.
  • The java/swt directory contains some snippets on the SWT (Standard Widget Toolkit) Java UI framework.
  • The python/tkinter directory contains some snippets on the TKinter Python UI framework.

2D, 3D and Multimedia libraries

  • The cpp/bullet and cpp/bullet_osg directories contain some snippets on the Bullet physics engine.
  • The cpp/osg directory contains some snippets on the Open Scene Graph 3D graphics toolkit.
  • The c/cairo and python/cairo directories contain some snippets on Cairo for the C programming language and Python.
  • The c/sdl directory contains some snippets on SDL (Simple DirectMedia Layer), the C Multimedia Library.
  • The python/pygame directory contains some snippets on Pygame, the Python wrapper for SDL.
  • The cpp/sfml directory contains some snippets on the SFML C++ Multimedia Library.

### Others

License

JDHP snippets are distributed under the MIT License.