The table below shows the full list of languages (and corresponding classes/aliases) for markdown codeblocks.
| Language | Aliases |
|---|---|
| 1C | 1c |
| 4D | 4d |
| ABAP | sap-abap, abap |
| use std::str; | |
| fn main() { | |
| // -- FROM: vec of chars -- | |
| let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
| // to String | |
| let string1: String = src1.iter().collect::<String>(); | |
| // to str | |
| let str1: &str = &src1.iter().collect::<String>(); | |
| // to vec of byte |
update-alternatives maintains symbolic links determining default commands
This is a reminder to install java and javac alternatives.
Install java compiler alternatives
$ sudo update-alternatives --install /usr/bin/javac javac /home/bchenebault/Apps/jdk1.5.0_22/bin/javac 1
$ sudo update-alternatives --install /usr/bin/javac javac /home/bchenebault/Apps/jdk1.6.0_45/bin/javac 2
| #!/usr/bin/env node | |
| console.log('yay gist') |
| [Unit] | |
| Description=supervisord - Supervisor process control system for UNIX | |
| Documentation=http://supervisord.org | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf | |
| ExecReload=/bin/supervisorctl reload | |
| ExecStop=/bin/supervisorctl shutdown |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> | |
| <script> | |
| $(function() { | |
| $(".video").click(function () { | |
| var theModal = $(this).data("target"), | |
| videoSRC = $(this).attr("data-video"), |
Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.
To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js
(I may be using incorrect terms below, please forgive me)
| <?php | |
| // Ignore errors | |
| libxml_use_internal_errors(true) AND libxml_clear_errors(); | |
| // http://stackoverflow.com/q/10237238/99923 | |
| // http://stackoverflow.com/q/12034235/99923 | |
| // http://stackoverflow.com/q/8218230/99923 | |
| // original input (unknown encoding) |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| type ErrNegativeSqrt float64 |