Skip to content

Instantly share code, notes, and snippets.

View wantyapps's full-sized avatar
🙃
hacking

Uri Arev wantyapps

🙃
hacking
View GitHub Profile
@wantyapps
wantyapps / .hyper.js
Created June 19, 2021 08:48
My current hyper config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@wantyapps
wantyapps / readfile.py
Last active June 19, 2021 08:47
Read a file, and print the content of it without \n after line (Remember to replace "<yourfile>.<yourext>" with the file and its extension. Example: "hello.txt").
try:
with open("<yourfilename>.<yourext>", "r") as f:
for line in f:
print(line.replace("\n", "")
except FileNotFoundError:
# If the file does not exist, print:
print("File not found.")