Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
is this thing on?

Vincent Stakenburg FrozenDroid

💭
is this thing on?
View GitHub Profile
View skins.json
{
"name": "CVW-69 skin repository",
"aircraft": [
{
"name": "F-16C",
"skins": [
{
"path": "CoreMods/aircraft/F-16C/Liveries/F-16C_50/327th FrozenDroid",
"title": "FrozenDroid"
},
View nmeaparser.rs
use core::str::FromStr;
use nom::bytes::streaming::{take, take_until, take_while_m_n};
use nom::character::complete::alpha0;
use nom::character::streaming::digit1;
use nom::character::{is_digit, is_hex_digit};
use nom::combinator::map;
use nom::number::streaming::float;
use nom::{
alt, branch::alt, bytes::streaming::tag, named, number::streaming::double, tag, IResult,
};
View gist:08d4bef9669b74d690ee4c46d478e466
function sync() {
var id="vincentstakenburg@gmail.com"; // CHANGE - id of the secondary calendar to pull events from
var secondaryCal=CalendarApp.getCalendarById(id);
var today=new Date();
var enddate=new Date();
enddate.setDate(today.getDate()+30); // how many days in advance to monitor and block off time
var secondaryEvents=secondaryCal.getEvents(today,enddate);
View keybase.md

Keybase proof

I hereby claim:

  • I am frozendroid on github.
  • I am frozendroid (https://keybase.io/frozendroid) on keybase.
  • I have a public key whose fingerprint is 7196 8557 4CC7 FA93 1345 6BE7 BEE0 6316 556D 9571

To claim this, I am signing this object:

View fib.rs
#![feature(try_trait)]
// Fibonacci sequence takes last 2 numbers and sums them, but you can change as you like :)
const TAKE_COUNT: usize = 2;
fn main() {
let mut vec: Vec<i64> = Vec::with_capacity(100);
loop {
let last = vec.iter().rev().take(TAKE_COUNT).collect::<Vec<_>>();
View build.gradle
buildscript {
ext {
kotlinVersion = '1.2.50'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
View launch.sh
#!/bin/sh
MONITOR_LIST=$(xrandr --listmonitors | sed '1 d' | awk 'NF>1{print $NF}')
killall polybar 2> /dev/null
for mon in $MONITOR_LIST; do
echo "Launching on monitor $mon"
env MONITOR=$mon polybar main &
done
View traefik.toml
debug = false
InsecureSkipVerify = true
logLevel = "INFO"
defaultEntryPoints = ["https","http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
View docker-compose.yml
version: '2'
services:
proxy:
image: traefik
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
View docker-compose.yml
version: '3'
services:
db:
restart: always
image: postgres:9.6-alpine
networks:
- internal_network
### Uncomment to enable DB persistance
volumes:
You can’t perform that action at this time.