PlasmaPy under OpenAstronomy.
- Name: Ritiek Malhotra
- Time-zone: UTC +05:30 (India)
- Realtime chat handle@protocol:
- GitHub ID: ritiek
from github import Github | |
TOKEN = | |
ORGANIZATION = | |
g = Github(TOKEN) | |
organ = g.get_organization(ORGANIZATION) | |
user = g.get_user() | |
for repo in user.get_starred(): |
# Increase tempo (x1.06) and frequency (x1.25 assuming input freq. = 44100 Hz) | |
ffmpeg -i input.mp3 -filter:a "atempo=1.06,asetrate=44100*1.25" output.mp3 | |
# Without tempo | |
ffmpeg -i input.mp3 -filter:a "asetrate=44100*1.25" output.mp3 | |
# Create one frame .mp4 from .mp3 + .jpg | |
ffmpeg -i output.mp3 -i anime.jpg output.mp4 | |
# Do above in single command | |
ffmpeg -i input.mp3 -i anime.jpg -filter:a "atempo=1.06,asetrate=44100*1.25" -vn output.mp4 |
My original project - to create a factory based implementation for unifying handling of different types of Plasmas, was completed sooner than expected. Here are the link to related pull requests I made during the summer.
PR | Status | Description |
---|---|---|
#501 | Raise more fitting NotImplementedError for functions that are yet to be implemented in our Plasma metaclass |
|
#489 | Ind |
HotKeySet("{F10}", "Exitter") | |
While 1 | |
$color = PixelGetColor(545,229) | |
If $color = 5460819 Then | |
Send("{DOWN UP}") | |
Send("{UP DOWN}") | |
Sleep(150) | |
Send("{UP UP}") | |
Sleep(300) |
import pygame | |
import random | |
width, height = (450, 600) | |
background_color = (10,10,10) | |
clock = pygame.time.Clock() | |
screen = pygame.display.set_mode((width, height)) | |
pygame.display.set_caption("Falling Blocks") | |
pygame.display.flip() |
// bin_hello.cpp
#include "lib_hello.h"
int main() {
hello_world();
}
#!/bin/bash | |
# mpv --idle --no-video --loop --input-ipc-server=/tmp/mpvsocket | |
# socat /tmp/mpvsocket udp4-listen:5000,reuseaddr,fork | |
SOCKETS=(#"192.168.1.2:5000" | |
"192.168.1.3:5000" | |
"192.168.1.4:5000" | |
"192.168.1.9:5000" | |
"192.168.1.8:5000") |
#!/usr/bin/python | |
import random | |
import os | |
import subprocess | |
import sys | |
from PIL import Image | |
ROOT_DIR = os.path.expanduser("~/Mount/box") | |
WALLPAPER_DIR = os.path.join(ROOT_DIR, "Pictures") |
# Code stolen shamelessly from | |
# https://www.raspberrypi.org/forums/viewtopic.php?p=876947&sid=44c21629719b08f74de2b3b465db8d5c#p876947 | |
# I merely modified some bits | |
import RPi.GPIO as GPIO | |
import time | |
GPIO.setmode(GPIO.BCM) | |
pin = 4 |