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 aoc_runner_derive::{aoc, aoc_generator, aoc_lib}; | |
use std::error::Error; | |
#[aoc_generator(day1)] | |
fn parse_input(input: &str) -> Result<Vec<usize>, Box<dyn Error>> { | |
Ok(input | |
.lines() | |
.map(|line| line.parse::<usize>().unwrap()) | |
.collect()) | |
} |
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 node | |
const { get } = require('http'); | |
const debug = process.argv.includes('--debug'); | |
const output = (function() { | |
const outputArgInd = process.argv.indexOf('--output'); | |
if(outputArgInd === -1) { | |
return '䷸{pm25}|{pm10}@{time}'; | |
} |
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
Privacy policy | |
Akordi+ does not collect or use user data for any reason. | |
Information we receive and how we use it | |
Mobile application does not collect any user data. We use App Store and Google Play developer page, to track user statistics and behaviour. | |
In-app advertisment |
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
Deps.autorun(function () { | |
if (!Session.equals("section", "race")) { | |
this._runing = false; | |
return; | |
} | |
if (this._runing) { | |
return; | |
} | |
this._runing = true; | |
var n = Session.get("race"); |
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
var e = $.Event('keydown'); | |
var els = $('#paragraph > span'); | |
e.which = 32; | |
e.keyCode = 32; | |
Deps.autorun(function() { | |
var word = $(els[Session.get("race_progress")]).html(); | |
if(typeof word !== 'undefined') { | |
$('#typer-input').val(word + ' '); |