- problem: you forgot the
-iflag before the input - fix: make sure you call with the
-iflag:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang=""> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>p5.js example</title> | |
| <style> body {padding: 0; margin: 0;} </style> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.js"></script> | |
| <!-- <script src="../addons/p5.dom.min.js"></script> !--> | |
| <script src="sketch.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% minimal FFT2 example - for illustrating k-space | |
| % | |
| % ds 2018-10-05 (for the MSc Brain Imaging students) | |
| % download a photo from my flickr page | |
| I = imread('https://farm1.staticflickr.com/437/18409639743_ce62590762_z.jpg'); | |
| % convert to gray / intensity (from colour) | |
| I_intensity = rgb2gray(I); |
GNU/datamash a handy tool for doing maths + string operations (on files or stdout, stderr) on the the unix command line.
- (on macOS) Make sure you have the
brewpackage manager installed:
which brew
# /usr/local/bin/brewIf you don't get a path returned, you need to install following instructions on https://brew.sh/
R code to go along with a blog post on how to move "From Excel to R"
Enjoy. DS
This is the code snippets for a simple linear regression analysis. The properly rendered version of this R-markdown file includes nice graphs.
The data set comes from the Companion to Applied Regression (CAR). I just picked the Salaries dataset because it has severeal independent variables - some of them categorical, some real-valued (on a interval/ratio scale).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| # simulate data | |
| n_students <- 50; | |
| grades <- c(100, | |
| 85, | |
| 78, | |
| 72, | |
| 68, | |
| 65, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # | |
| # imagemagick script for merging a texture background image | |
| # with separate images of wands that we produced for the | |
| # 7th birthday party of our twins | |
| # | |
| # 2018-02-02 | |
| # sample texture | |
| bgTexture=TEXTURE_C.jpg |
