View project.py
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
import sys | |
import pickle | |
import time | |
import webbrowser | |
import pywhatkit | |
from datetime import datetime | |
import pyautogui as pg | |
now = datetime.now() |
View veditor.v
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
import os | |
fn C.execvp(file charptr, argv &charptr) int | |
fn main() { | |
final_editor_cmd := os.file_name(os.args[0])[1..] | |
if os.args.len < 2 { | |
eprintln('Usage: `v$final_editor_cmd FILE:LINE: ...`') | |
exit(1) | |
} |
View check_cast_type.v
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
pub fn (mut c Checker) can_type_cast(from table.Type, to table.Type) bool { | |
from_type_sym := c.table.get_type_symbol(from) | |
to_type_sym := c.table.get_type_symbol(to) | |
// check basic types | |
if c.check_types(from, to) { | |
return true | |
} | |
if to == table.bool_type || to_type_sym.kind == .none_ || from == table.none_type { | |
return false | |
} |
View print.v
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
import os { flush } | |
struct Print { | |
sep string = ' ' | |
end string = '\n' | |
} | |
fn (p Print) print(args ...string) { | |
for i, arg in args { | |
print(arg) |
View is_13.v
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
module is_thirteen | |
import math | |
import time | |
import strings | |
const ( | |
thirteen_strs = [ | |
"xiii", // Roman numeral 13 | |
"1.3", // Basically 13, see proof in https://github.com/jezen/is-thirteen/pull/420 |
View link.txt
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
https://play.golang.org/p/4ZGpGd9Dq-q |
View canvas.css
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
canvas { background: #eee; } |