Skip to content

Instantly share code, notes, and snippets.

View ilopX's full-sized avatar
🐞
make some bugs

ilopX ilopX

🐞
make some bugs
  • ilopXgoup
  • Ukraine, Cherkassy
  • X @ilopX3
View GitHub Profile
public class Main {
public static void main(String[] args) {
byte zero = 0b0000_0000;
byte mid = (byte)0b1000_0000;
byte max = 0b0111_1111;
System.out.println(zero + " -> 0b0000_0000");
System.out.println(mid + " -> 0b1000_0000");
System.out.println(max + " -> 0b0111_1111");
System.out.println("0b0111_1111 (127) + 0b0000_0001 (1) = 0b1000_0000 (" + (byte)(max + 1) + ")");
@ilopX
ilopX / column.dart
Last active September 6, 2022 20:22
final column = OutVar<Column>();
init(
Center(
child: Column(
outVar: column,
space: 20,
align: Align.start,
children: [
Box(
class ToDoItem {
String name;
bool check;
ToDoItem(this.name, [this.check = false]);
}
class ToDo {
final List<ToDoItem> init;
class ToDo {
final List<String> init;
ToDo({required this.init}) {
update();
}
final edit = OutVar<Edit>();
final listView = OutVar<ListView>();
final buttonsRow = OutVar<Row>();
async login(request: Request, response: Response) {
const { email, password } = request.body;
try {
const user = assert(await User.findOne({ email }));
assert(bcrypt.compareSync(password, user.password));
} catch(_) {
return response.status(404).json({ message: 'email or password incorrect' })
}
фун змінити(імя: Рядок): Рядок
де змін накопичувач = НакопичувачСимволів()
перебрати імя в символ:
символ == ' ':
накопичувач.додати('_')
символ == 'ы':
накопичувач.додати('и')
або:
накопичувач.додати(символ)
fn main() {
let mut editor = Editor::new();
let mut history = History::new();
input("one", &mut editor, &mut history);
input("_", &mut editor, &mut history);
input("two", &mut editor, &mut history);
undo_all(&mut editor, &mut history);
}
fn main() {
let mut c = CompoundGraphics::new();
c.add_all(vec![
Box::new(Dot {
x: 100,
y: 200,
}),
Box::new(Rectangle {
x: 200,
y: 300,
fn main() {
CvsMiner.mine("file.cvs");
TxtMiner.mine("file.txt");
}
trait Miner {
fn mine(&self, file_name: &str) {
let file = self.open_file(file_name);
let raw = self.extract_data(file);
#![feature(trait_upcasting)]
#![allow(incomplete_features)]
extern crate core;
use std::borrow::Borrow;
use std::thread::sleep;
use std::time::Duration;
use crate::gui_app::{Form, GuiFactory};