gantt
title Sprinter Service Timeline
dateFormat YYYY
tickInterval 12month
axisFormat %Y
todayMarker off
section Section
Mat'64 :1962, 2014
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 boto3 | |
import json | |
from time import sleep | |
import os | |
src_bucket = os.getenv('SRC_BUCKET','src-bkt') | |
dst_bucket = os.getenv('DST_BUCKET','dst-bkt') | |
region = os.getenv('REGION', 'eu-central-1') | |
stream_name = os.getenv('STREAM_NAME', 'kinesis-datastream') |
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 35 columns, instead of 24 in line 3.
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
Stations,Distance,7112,7114,7116,7117,7118,7119,7120,7121,7122,7123,7124,7125,7127,7129,7131,7133,7214,7216,7217,7218,7219,7220,7221,7222,7223,7224,7225,7226,7227,7228,7229,7231,7233 | |
Dordrecht,0,06:54:00,07:24:00,07:54:00,06:01:00,08:24:00,06:31:00,08:54:00,07:01:00,09:24:00,07:31:00,09:54:00,08:01:00,08:31:00,09:01:00,09:31:00,10:01:00,07:09:00,07:39:00,05:46:00,08:09:00,06:16:00,08:39:00,06:46:00,09:09:00,07:16:00,09:39:00,07:46:00,10:09:00,08:16:00,10:39:00,08:46:00,09:16:00,09:46:00 | |
Dordrecht,0,06:54:00,07:24:00,07:54:00,06:01:00,08:24:00,06:31:00,08:54:00,07:01:00,09:24:00,07:31:00,09:54:00,08:01:00,08:31:00,09:01:00,09:31:00,10:01:00,07:09:00,07:39:00,05:46:00,08:09:00,06:16:00,08:39:00,06:46:00,09:09:00,07:16:00,09:39:00,07:46:00,10:09:00,08:16:00,10:39:00,08:46:00,09:16:00,09:46:00 | |
Dordrecht - Stadspolders,3.4,06:50:00,07:20:00,07:50:00,06:04:00,08:20:00,06:34:00,08:50:00,07:04:00,09:20:00,07:34:00,09:50:00,08:04:00,08:34:00,09:04:00,09:34:00,10:04:00,07:05:00,07:35:00,05:49:00,08:05:00,06:19:00,08:35 |
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
#define LARGE_JSON_BUFFERS 1 | |
#define ARDUINOJSON_USE_LONG_LONG 1 | |
#include <Arduino.h> | |
#include "Thing.h" | |
#include "WebThingAdapter.h" | |
#include <Adafruit_Sensor.h> | |
#include <DHT.h> | |
#include <DHT_U.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
# Luke's config for the Zoomer Shell | |
# Enable colors and change prompt: | |
autoload -U colors && colors | |
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " | |
# History in cache directory: | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
HISTFILE=~/.cache/zsh/history |
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 | |
scale=640 | |
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] | |
then | |
echo "Arugments <start time> <duration> <file>" | |
fi | |
ffmpeg -ss "$1" -t "$2" -y -i "$3" -vf fps=24,scale="$scale":-1:flags=lanczos,palettegen palette.png |
Grab ffmpeg from https://www.ffmpeg.org/download.html
It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
The most trivial operation would be converting gifs:
ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
-crf
values can go from 4 to 63. Lower values mean better quality.-b:v
is the maximum allowed bitrate. Higher means better quality.
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 time import sleep | |
from urllib.request import urlopen, Request, urlretrieve | |
import requests | |
from bs4 import BeautifulSoup as soup | |
import re | |
import sys | |
import json | |
stars_list = [] | |
count = 0 |
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 time import sleep | |
from urllib.request import urlopen | |
from urllib.request import Request | |
from urllib.request import urlretrieve | |
import requests | |
from bs4 import BeautifulSoup as soup | |
import os | |
def scrape(category, down_path): | |
if not os.path.exists(down_path): |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
int main() { | |
// Char array to hold html file text |