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
while True: __import__("os").system(input(__import__("os").getcwd() + "> ")) |
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
#!/usr/bin/env python3 | |
# -*- coding:UTF-8 -*- | |
""" | |
TODO: Documentation to here. | |
""" | |
from tkinter import * | |
from ui import Ui | |
import json, sys, os |
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
#!/usr/bin/env python3 | |
# -*- coding:UTF-8 -*- | |
""" | |
TODO: Documetation to here. | |
""" | |
import itertools, json, sys | |
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
#!/usr/bin/env python3 | |
# -*- coding:UTF-8 -*- | |
""" | |
TODO: Documetation to here. | |
""" | |
from time import sleep | |
import json, sys, os |
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
#!/usr/bin/env python3 | |
# -*- coding:UTF-8 -*- | |
""" | |
Functional Programming like OOP. | |
""" | |
import sys | |
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
use std::fmt::Display; | |
use std::io::{stdin, stdout, Write}; | |
pub fn input(prompt: impl Display) -> Box<str> { | |
let mut buffer = String::new(); | |
stdout().write(prompt.to_string().as_bytes()).unwrap(); | |
stdout().flush().unwrap(); | |
stdin().read_line(&mut buffer).unwrap(); |
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
use std::fmt::Display; | |
use std::io::{stdin, stdout, Write}; | |
struct Library; | |
impl Library { | |
pub fn main() { | |
Self.greet(Self::input("Who are you?: ")); | |
} | |
fn greet(&self, name: impl Display) { |
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
use std::fmt::Display; | |
use std::io::{stdin, stdout, Stdin, Write}; | |
pub trait Input { | |
fn input(&self, prompt: impl Display) -> Box<str> { | |
let mut buffer = String::new(); | |
stdout().write(prompt.to_string().as_bytes()).unwrap(); | |
stdout().flush().unwrap(); | |
stdin().read_line(&mut buffer).unwrap(); |