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/python | |
import json | |
import glob | |
result = [] | |
for f in glob.glob("*.json"): | |
with open(f, "rb") as infile: | |
result.append(json.load(infile)) |
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 kotlinx.coroutines.async | |
import kotlinx.coroutines.awaitAll | |
import kotlinx.coroutines.coroutineScope | |
// Run in parallel | |
suspend fun <A, B> Iterable<A>.pmap(f: suspend (A) -> B): List<B> = coroutineScope { | |
map { async { f(it) } }.awaitAll() | |
} |
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
01.mp4 00:00:00 00:02:44 | |
01.mp4 00:02:44 00:06:12 | |
01.mp4 00:06:12 00:06:52 | |
01.mp4 00:06:52 00:09:41 | |
01.mp4 00:09:41 00:13:55 | |
01.mp4 00:13:55 00:14:34 | |
01.mp4 00:14:34 00:20:31 | |
01.mp4 00:20:31 00:41:55 | |
01.mp4 00:41:55 01:00:53 | |
--- |
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/bash | |
iface=wlan0 | |
# This script applies WPA configuration so that eduroam can be accessed via a Raspberry Pi. | |
if [ "$(id -u)" != "0" ]; then | |
echo " This script must be run as root" 1 >&2 | |
exit 1 | |
else | |
killall wpa_supplicant |
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
#include "ros/ros.h" | |
#include "mavros/RCIn.h" | |
#include "mavros/OverrideRCIn.h" | |
int c=0; | |
int __ct=0; | |
void rc_in_callback(mavros::RCIn); | |
void doSequence(ros::Publisher,int); |
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 python | |
import sys, os | |
from optparse import OptionParser | |
import Tkinter as tk | |
# tell python where to find mavlink so we can import it | |
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../mavlink')) | |
from pymavlink import mavutil |
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
JavaIRC |