This file contains hidden or 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
| // ==UserScript== | |
| // @name Swisspass Halbtax Plus | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0.0 | |
| // @description Get CSV out of Halbtax Plus | |
| // @author kikeg | |
| // @match https://www.swisspass.ch/info/abos/detailRefilledContract/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=swisspass.ch | |
| // @grant GM.setClipboard | |
| // ==/UserScript== |
This file contains hidden or 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 chrono::{Days, NaiveDate}; | |
| use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion}; | |
| use snippets::price_db::{BTreeCachedPriceDB, CachedPriceDB, FakeCommodityStore, PriceDBHashMap}; | |
| fn price_db_bench(c: &mut Criterion) { | |
| let mut group = c.benchmark_group("price-db"); | |
| for num_dense in [5usize, 10, 20].iter() { | |
| group.bench_with_input( | |
| BenchmarkId::new("naive", num_dense), | |
| num_dense, |
This file contains hidden or 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
| MIT License | |
| Copyright (c) 2023 xkikeg | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Revolut.com to ledger | |
| // @version 1.2 | |
| // @grant GM.setClipboard | |
| // @require https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js | |
| // @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
| // @match https://app.revolut.com/transactions* | |
| // ==/UserScript== | |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Moneyforward to ledger | |
| // @version 1 | |
| // @grant GM.setClipboard | |
| // @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js | |
| // @match https://moneyforward.com/accounts/show/* | |
| // ==/UserScript== | |
| function runReport(node) { | |
| var result = []; |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Wise.com to ledger | |
| // @version 1 | |
| // @grant GM.setClipboard | |
| // @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js | |
| // @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
| // @match https://wise.com/user/account/* | |
| // ==/UserScript== | |
| function getPayee(node) { |
This file contains hidden or 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
| $ # Ubuntu | |
| $ # nodebrewで入れた see http://qiita.com/sinmetal/items/154e81823f386279b33c | |
| $ # Mac | |
| $ brew install node |
This file contains hidden or 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
| Copyright (c) 2014 liquid_amber | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to | |
| permit persons to whom the Software is furnished to do so, subject to | |
| the following conditions: |
This file contains hidden or 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
| // for test | |
| #include <memory> | |
| #include <string> | |
| #include <vector> | |
| #include "type_inclusion.hh" | |
| #define TO_STR(x) TO_STR_(x) | |
| #define TO_STR_(x) #x | |
| #define STATIC_ASSERT_SIMPLE(x) static_assert(x, TO_STR(x)); |
This file contains hidden or 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 System.IO (hFlush, stdout) | |
| import Control.Concurrent (threadDelay) | |
| main = do | |
| putStr "\ESC[0G\ESC[0Ktest1 " >> hFlush stdout | |
| threadDelay 1000000 | |
| putStr "\ESC[0G\ESC[0Ktest2 " >> hFlush stdout | |
| threadDelay 1000000 | |
| putStr "\ESC[0G\ESC[0Ktest3 " >> hFlush stdout | |
| putStrLn "" |
NewerOlder