http://blog.qt.io/blog/2017/06/22/using-compiler-explorer-qt/
git clone https://github.com/mattgodbolt/compiler-explorer.git
Requires Node >= 8
| ''' | |
| Proof of Concept: | |
| Django devs built an ORM that seems way more straightforward than many existing tools. This class lets you leverage the django-orm without any project settings or other aspects of a django setup. | |
| There are probably weak points and functionality missing, but it seems like a relatively intuitive proof of concept | |
| ''' | |
| import os | |
| import django | |
| from django.conf import settings |
http://blog.qt.io/blog/2017/06/22/using-compiler-explorer-qt/
git clone https://github.com/mattgodbolt/compiler-explorer.git
Requires Node >= 8
| These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
| To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
| USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
| ABSOLUTELY NO WARRANTY. | |
| If you are still reading let's carry on with the code. | |
| sudo apt-get update && \ | |
| sudo apt-get install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
| git clean -xfd | |
| git submodule foreach --recursive git clean -xfd | |
| git reset --hard | |
| git submodule foreach --recursive git reset --hard | |
| git submodule update --init --recursive |
| #include <iostream> | |
| #include <hdf5.h> | |
| // Constants | |
| const char saveFilePath[] = "test.h5"; | |
| const hsize_t ndims = 2; | |
| const hsize_t ncols = 3; | |
| int main() |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| # sudo gem install ruby-graphviz | |
| # sudo port install graphviz | |
| require 'graphviz' | |
| # NB: The following line deals with the case where your iPhoto library is not in the usual place. | |
| # If you have more than one iPhoto libraries, please set this manually. | |
| IPHOTO_LIBRARY = `mdfind "kMDItemKind == 'iPhoto Library' && kMDItemContentTypeTree == com.apple.package"`.strip | |
| LIBRARY = File.join(IPHOTO_LIBRARY, "Database", "Library.apdb") |