This was tested on:
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
| # This is a sample build configuration for PHP. | |
| # Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
| # Only use spaces to indent your .yml configuration. | |
| # ----- | |
| # You can specify a custom docker image from Docker Hub as your build environment. | |
| image: php:7.4-fpm | |
| definitions: | |
| services: | |
| mysql: |
| clear all; | |
| %Read the image | |
| img = imread('image.jpg'); | |
| %Get the size (rows and columns) of the image | |
| [r,c] = size(img); | |
| rr=r/3; | |
| %Wrire code to split the image into three equal parts and store them in B, G, R channels | |
| B=imcrop(img,[1,1,c,rr-1]); |
| version: '2.3' | |
| services: | |
| mysql: | |
| restart: always | |
| image: mariadb:10.3 | |
| container_name: mariadb | |
| ports: | |
| - "3307:3306" | |
| volumes: |
| var Promise = require('bluebird'); | |
| const Sequelize = require('sequelize'); | |
| const fs = Promise.promisifyAll(require('fs')); | |
| const _ = require('lodash'); | |
| const sequelize = new Sequelize(connectionString, { | |
| dialect: 'mysql', | |
| logging: false, | |
| pool: { // application-side connection pool configuration |
| #!/bin/sh -x | |
| # Script usage example | |
| # sudo sh azure-disk.sh /dev/sdc /datadisk | |
| DEVICE="$1" | |
| MOUNT_DIR="$2" | |
| sfdisk $DEVICE << EOF | |
| start=2048, type=83 |
Win + Alt + P{bash} with the following settings:
/icon "%CMDER_ROOT%\cmder.exe" /icon "C:\Program Files (x86)\Git\etc\git.ico""C:\Program Files (x86)\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%| var express = require('express'); | |
| var cookieParser = require('cookie-parser'); | |
| var session = require('express-session'); | |
| var flash = require('express-flash'); | |
| var handlebars = require('express-handlebars') | |
| var app = express(); | |
| var sessionStore = new session.MemoryStore; | |
| // View Engines |
| var gulp = require('gulp'); | |
| // Include Our Plugins | |
| var jshint = require('gulp-jshint'); | |
| var sass = require('gulp-sass'); | |
| var concat = require('gulp-concat'); | |
| var uglify = require('gulp-uglify'); | |
| var minifyCSS = require('gulp-minify-css'); | |
| var rename = require('gulp-rename'); | |
| var yuidoc = require("gulp-yuidoc"); |
| @echo off | |
| :: Making directory for executable files | |
| md build | |
| set /p fName=Write source name: | |
| :: Csharp compiler must be in %PATH% | |
| csc.exe %fName%.cs | |
| :: Move executable file to directory | |
| move %fName%.exe build/ | |
| cd build | |
| cls |