This file contains 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
package com.robogengame.robogen; | |
import java.io.BufferedReader; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.Arrays; |
This file contains 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
mv drawable-ldpi 0.75x | |
mv drawable-mdpi 1.0x | |
mv drawable-hdpi 1.5x | |
mv drawable-xhdpi 2.0x | |
mv drawable-xxhdpi 3.0x | |
mv drawable-xxxhdpi 4.0x |
This file contains 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
from PIL import Image | |
import random | |
# size of one pixel | |
PIXEL_SIZE = 0.2 | |
# the scale is computed by dividing HEIGHT_RANGE by 128 | |
HEIGHT_RANGE = 0.4 | |
# the minimum height | |
HEIGHT_OFFSET = 0.01 | |
# should we inverse greyscale ? |
This file contains 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
import java.io.BufferedReader; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; |
This file contains 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/sh -e | |
USAGE="Usage: $0 [OPTIONS]... | |
Install the requirements for the dronecourse. | |
Options: | |
-f ignore recommended system warning | |
-h show this message and exit | |
" |
This file contains 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
% >Show a link to a video. | |
% | |
% (c) Arthur Gay | |
% | |
%% This program can be redistributed and/or modified under the terms | |
%% of the LaTeX Project Public License Distributed from CTAN archives | |
%% in directory macros/latex/base/lppl.txt. | |
% | |
\NeedsTeXFormat{LaTeX2e}[1994/06/01] | |
\ProvidesPackage{videos} |
This file contains 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
\makeatletter | |
\newcommand{\get}[1]{% | |
\@ifundefined{lookup@#1}{% | |
\PackageError{lookup}{No #1 key in lookup}{% | |
Key #1 was not found in lookup. % | |
You can insert it with \string\lookupPut{key}{value}.% | |
}% | |
}{% | |
\@nameuse{lookup@#1}% | |
}% |
This file contains 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
% | |
% Copyright 2017 Arthur Gay | |
% | |
% Permission is hereby granted, free of charge, to any person obtaining a copy | |
% of this software and associated documentation files (the "Software"), to deal | |
% in the Software without restriction, including without limitation the rights | |
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
% copies of the Software, and to permit persons to whom the Software is | |
% furnished to do so, subject to the following conditions: | |
% |
This file contains 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
function kvf2tex2( kvf, fout, rootkey) | |
%KVF2TEX2 | |
if nargin > 1 | |
rootkey = [rootkey '.']; | |
else | |
rootkey = ''; | |
end | |
TEMPLATE = '\\@lookupPut{%s%s}{%s}\n'; |
This file contains 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
kvffile = 'output/example.kvf'; | |
texfile = 'output/example.tex'; | |
diary(kvffile); | |
disp(['value1 = ' num2str(value1)]); | |
disp(['value2 = ' num2str(value2)]); | |
disp(['value3 = ' num2str(value3)]); | |
diary off; | |
fclose('all'); |
NewerOlder