dc@dc:/tmp$ mkdir foo
dc@dc:/tmp$ echo sup > foo/1
dc@dc:/tmp$ echo dawg > foo/2
dc@dc:/tmp$ echo yo > bar
dc@dc:/tmp$ cp -r foo/ bar
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
| const win = new electron.BrowserWindow(...) | |
| // When work makes progress, show the progress bar | |
| function onProgress (progess) { | |
| // Use values 0 to 1, or -1 to hide the progress bar | |
| win.setProgressBar(progress || -1) // Progress bar works on all platforms | |
| } | |
| // When work completes while the app is in the background, show a badge | |
| var numDoneInBackground = 0 |
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
| // In the main process, check whether the app is starting | |
| // because the user dragged files onto the app icon | |
| process.argv.forEach(onOpen) | |
| // Open handlers should be added on the first tick. | |
| // These fire if the app is already running and the user | |
| // drags files or URLs onto the dock icon, or if they set | |
| // the app as a handler for a file type and then open a file | |
| app.on('open-file', onOpen) | |
| app.on('open-url', onOpen) |
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
| // In *both* the main and renderer processes | |
| // For example, in both main/index.js and renderer/index.js | |
| var crashReporter = require('../crash-reporter') | |
| crashReporter.init() | |
| // Separately, create crash-reporter.js, shared by main and renderer: | |
| module.exports = { | |
| init | |
| } |
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
| @keyframes fadein { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| .app { |
😱😱
> var s = 'hello [object Object] null undefined'
> s.indexOf([])
0
> s.indexOf({})
6
> s.indexOf(null)
22
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
| public class Bulbs { | |
| public static void main(String[] args) { | |
| Board challenge = new Board(3); | |
| challenge.set(1, 0, true); | |
| System.out.println("CHALLENGE"); | |
| System.out.println(challenge); | |
| System.out.println("SOLUTION"); |
| name | tax-prep |
|---|---|
| description | Full-service personal tax preparation using beancount double-entry accounting. Use this skill when the user wants to do their taxes, file a tax return, build a tax ledger, track crypto cost basis, audit past returns, prepare Form 8949, or anything related to personal income tax. Also trigger when user mentions beancount, capital gains, FIFO cost basis, crypto taxes, Form 1040, Schedule D, or amended returns. |
| user_invocable | true |
You are a personal tax accountant and bookkeeper. You will build a complete, auditable beancount ledger for the user's taxes, import all their financial data, compute capital gains via FIFO, generate tax documents, and optionally audit past returns for errors and missed refunds.
OlderNewer