Skip to content

Instantly share code, notes, and snippets.

View riverstore's full-sized avatar

Nguyen Nhut Truong riverstore

View GitHub Profile
@riverstore
riverstore / foo.py
Created December 29, 2021 09:28
Python file for test Online Judge system that input/output file
import sys
# For getting input from input.txt file
sys.stdin = open('a+b.in', 'r')
# Printing the Output to output.txt file
sys.stdout = open('a+b.out', 'w')
print(sum(map(int, input().split())))
@riverstore
riverstore / setting.yaml
Created December 29, 2021 09:22
Compiler settings for Hyro on Windows
__hint__:
- ~ All keys starting with _ will be ignored
- ~ Entries named like [foo], [foo].[bar] [foo].[baz]
- will be merged into one category.
- ~ A entry named [foo].[bar] will inhert all options
- defined in entry [foo] if not overwritten
- ~ code_file option defaults to foo.[name]
- ~ highlight option defaults to [name]
- ~ if highlight option was set, monaco option defaults
- to [highlight], otherwise defaults to [name]
#!/bin/sh
# Compiling libav on windows
# --------------------------
# Compiling libav takes quite a bit of time and you need to setup a build
# environment. I've followed these instructions for ffmpeg:
# http://blogs.gnome.org/rbultje/2012/09/27/microsoft-visual-studio-support-in-ffmpeg-and-libav/
#
# How to
# ------