Skip to content

Instantly share code, notes, and snippets.

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())
}
@bojan88
bojan88 / air-pollution.js
Last active November 8, 2018 13:38
Get the air quality data for your current location.
#!/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}';
}
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
Deps.autorun(function () {
if (!Session.equals("section", "race")) {
this._runing = false;
return;
}
if (this._runing) {
return;
}
this._runing = true;
var n = Session.get("race");
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 + ' ');