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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = '2' | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. |
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
| :root { | |
| --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | |
| --body-color: #eceff4; | |
| --body-background: #2e3440; | |
| --hr-border-color: #4c566a; | |
| --title-color: #eceff4; | |
| --link-color: #8fbcbb; | |
| --link-focus-color: #81a1c1; | |
| --link-hover-color: #81a1c1; | |
| --link-visited-color: #b48ead; |
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
| from ctypes import * | |
| from ctypes import util | |
| from platform import mac_ver | |
| import uuid | |
| iokit = cdll.LoadLibrary(util.find_library('IOKit')) | |
| cf = cdll.LoadLibrary(util.find_library('CoreFoundation')) | |
| cf.CFStringCreateWithCString.argtypes = [c_void_p, c_char_p, c_int32] |
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
| import asyncio | |
| import socket | |
| import fcntl | |
| import struct | |
| import sys | |
| SIOCSKEVFILT = 0x800c6502 |
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
| //VERSION=3 | |
| // Ship detection with S1 and S2 | |
| // Original source: https://custom-scripts.sentinel-hub.com/custom-scripts/data-fusion/ship_detection_s1_s2/script.js | |
| // Original author: Monja B. Šebela | |
| // Fork author: Pontus J. Karlsson | |
| function setup() { | |
| return { | |
| input: [ | |
| {datasource: "S2L1C", bands:["B02", "B03", "B04", "B08"], mosaicking: "ORBIT"}, |
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
| find . -type d -name migrations -not -exec git check-ignore -q {} \; -exec git add {} \; |
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
| // | |
| // NSArray+firstObject.h | |
| // | |
| // Created by Pontus Carlsson on 2013-10-02. | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface NSArray (firstObject) |
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
| CFLAGS += -I$(shell brew --prefix libarchive)/include | |
| CFLAGS += -I$(shell brew --prefix ffmpeg)/include | |
| LDFLAGS += -L$(shell brew --prefix ffmpeg)/lib | |
| LDFLAGS += -L$(shell brew --prefix libarchive)/lib | |
| LDFLAGS += -larchive -lavformat -lavutil | |
| av_archive_decode_OBJS=av_archive_decode.o | |
| av_archive_decode: $(av_archive_decode_OBJS) |
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
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <archive.h> | |
| #include <archive_entry.h> | |
| #include <libavformat/avformat.h> | |
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
| import ctypes | |
| import ctypes.util | |
| def load_libcap(lib_name=None): | |
| if lib_name is None: | |
| lib_name = 'cap' | |
| if not load_libcap.loaded_library: | |
| libcap_name = ctypes.util.find_library(lib_name) |
NewerOlder