Skip to content

Instantly share code, notes, and snippets.

agilob agilob

Block or report user

Report or block agilob

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@agilob
agilob / sleep_sort.dart
Created May 18, 2018
Sleep sort implementation in Dart
View sleep_sort.dart
import 'dart:async';
class Input {
var sleepTimes = new List();
}
main(List<String> arguments) async {
var input = new Input();
arguments.forEach((val) { input.sleepTimes.add(num.parse(val)); } );
@agilob
agilob / formatter.user.js
Created Feb 13, 2018
wykop code formatter
View formatter.user.js
// ==UserScript==
// @name codeFormatter
// @homepage https://kmiasko.github.io/
// @version 0.0.2
// @description codeFormatter - umożliwia zachowanie spacji w kodzie oraz koloruje składnię JS na wykop.pl
// @author kmiasko
// @match https://www.wykop.pl/*
// @grant none
// @require https://cdn.rawgit.com/kmiasko/highlight.js/master/build/highlight.pack.js
// @run-at document-end
View keybase.md

Keybase proof

I hereby claim:

  • I am agilob on github.
  • I am agilob (https://keybase.io/agilob) on keybase.
  • I have a public key whose fingerprint is F365 8D0A 04A5 76A4 1072 FC0D 296F 0B76 4741 106C

To claim this, I am signing this object:

@agilob
agilob / home_dir.rs
Last active Sep 3, 2016
Rust - get home directory
View home_dir.rs
fn main() {
let mut path: PathBuf = get_app_dir();
path.push(".config");
path.set_file_name("properties");
path.set_extension("ini");
let str_path = path.to_str().unwrap();
if str_path.len() != 0 && path_exists(&path) {
println!("Path {} exists", str_path);
}
}
You can’t perform that action at this time.