// bin_hello.cpp
#include "lib_hello.h"
int main() {
hello_world();
}
View mpv-socat.sh
#!/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") |
View how_to.md
View falling_blocks.py
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() |
View bot.au3
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) |
View GSoC18_FinalReport.md
Google Summer of Code 2018 Final Report
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 |
View nightcore.sh
# 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 |
View forker.py
from github import Github | |
TOKEN = | |
ORGANIZATION = | |
g = Github(TOKEN) | |
organ = g.get_organization(ORGANIZATION) | |
user = g.get_user() | |
for repo in user.get_starred(): |
View PlasmaPy.md
View wolfpedia.py
import wolframalpha | |
import wikipedia | |
from wikipedia.exceptions import DisambiguationError | |
from flask import Flask | |
app = Flask(__name__) | |
client = wolframalpha.Client('T27H46-H3TH6GL545') | |
def wolframit(query): |
View count.sh
find . -name "*.py" -type f -exec grep . {} \; | wc -l |