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
module AerialImageDb | |
class Application < Rails::Application | |
# ...snip... | |
# Custom directories with classes and modules you want to be autoloadable. | |
config.autoload_paths += %W(#{config.root}/lib) | |
# ...snip... | |
end |
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
#!/usr/bin/env ruby | |
def divisible a,b | |
p = a.to_f/b | |
(a - p.to_i*b) == 0 | |
end | |
def indivisible a,b | |
not divisible a,b | |
end |
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
/* | |
* Test program Linux RS485-mode ioctls. | |
* | |
* cc -o rs485_mode rs485_mode.c | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> |
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 argparse | |
import logging | |
import datetime | |
from os import path | |
parser = argparse.ArgumentParser(description='Generate .str file for a set of image files') | |
parser.add_argument('input', metavar='inputfiles', nargs='+', |
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 subprocess | |
import os | |
from os import path | |
import datetime | |
scene = 'd2_p8_z0' | |
# prepare paths | |
videos = "output/" + scene + '/videos/' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.