用 Haskell 的 list comprehension 來解某數學愛好者社團的某題目。
執行結果
$ ghc -o solution solution.hs && ./solution
[[D,A,D,B,B,D,C,C,D,C]]
用 Haskell 的 list comprehension 來解某數學愛好者社團的某題目。
$ ghc -o solution solution.hs && ./solution
[[D,A,D,B,B,D,C,C,D,C]]
redux is a global data
management tool, not a proper state
management tool, hence causing a lot of troubles
statecharts is an extension to Finite State Machine (FSM) which provides explicit and safe state management capabilities, perfectly fit for front-end development
statecharts had been used intensivelly in all industries (be it embedded systems, hardware, electronics, aeronautics, automotive, game development and more), it's us front-end developers late to the party
// | |
// YeetJSIUTils.h | |
// yeet | |
// | |
// Created by Jarred WSumner on 1/30/20. | |
// Copyright © 2020 Facebook. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <jsi/jsi.h> |
Note: For now, Apple Silicon users need to be set up for x86 mode
First, download Go or brew install go
. Then, put largetype.go
in a directory called largetype
and from there run:
$ go mod init largetype
/* | |
* 1. Sign in to Firstrade's positions page (https://invest.firstrade.com/cgi-bin/main#/cgi-bin/acctpositions). | |
* 2. Open DevTools (Command + Option + i) JS console (Esc), paste the code below. Then stuff will be copied. | |
* 3. Open a new text file, paste the copied content into it and save it as *.csv. | |
* 4. Go to the Portfolios page on Yahoo Finance (https://finance.yahoo.com/portfolios), click "Import" and upload the file created on step 3. | |
* 5. You now have a new portfolio imported from your Firstrade positions data (you might want to rename it). | |
*/ | |
function getPositionTable() { |
Apple Shortcut for creating a long-term (per day) stock chart that can be used as a widget with Charty.