Last updated: 2026-05-19
Everyday Giver is a developer-productivity Chrome extension. It is designed to keep your data on your own machine.
- Slack thread content. Only when you explicitly click a copy action,
| class DrumMachine { | |
| // Timing constants for unified event loop | |
| static readonly PPQ = 192; // Pulses per quarter note (Tone.js constant) | |
| static readonly TICK_RESOLUTION = 12; // Master loop resolution | |
| static readonly MUSICAL_STEP_DIVISION = 2; // 8th notes (2 per quarter note) | |
| static readonly STEPS_PER_MUSICAL_STEP = | |
| DrumMachine.PPQ / DrumMachine.MUSICAL_STEP_DIVISION / DrumMachine.TICK_RESOLUTION; // 8th note per musical step | |
| static readonly LATENCY_COMPENSATION = 0.1; // Metronome timing compensation | |
| static readonly PROGRESS_UPDATE_PRECISION = 2; // Progress update frequency multiplier |
| (function(factory) { | |
| typeof define === "function" && define.amd ? define(factory) : factory(); | |
| })(function() { | |
| "use strict"; | |
| function makeMap(str, expectsLowerCase) { | |
| const map = /* @__PURE__ */ Object.create(null); | |
| const list = str.split(","); | |
| for (let i = 0; i < list.length; i++) { | |
| map[list[i]] = true; | |
| } |
| <script lang="ts"> | |
| import { defineComponent } from 'vue'; | |
| import SubComponent from './Sub.vue'; | |
| export default defineComponent({ | |
| components: { | |
| SubComponent, | |
| }, | |
| setup() { | |
| function handleChange(n: number) { |
| import { Component } from 'react'; | |
| import { withState, compose } from 'recompose'; | |
| import withTodos from './withTodos'; | |
| // let's assume these components exist | |
| import TodoItem from './components/TodoItem'; | |
| import AddButton from './components/AddButton'; | |
| import InputBox from './components/InputBox'; | |
| // if in the future we need it elsewhere, maybe promote it to a global state |
| // Option 1 | |
| export { myFunc as getMe } | |
| // Option 2 | |
| export const muffler = { HOLY: 'GRAIL' }; | |
| // Option 3 | |
| export default { | |
| muffler: muffler, | |
| gangster: 'Zup!', |
| define([ "./config", "when/when" ], function (config, when) { | |
| "use strict"; | |
| var UNDEFINED; | |
| var CALLBACK = config.callback; | |
| var SCOPE = config.scope; | |
| var HEAD = config.head; | |
| var NEXT = config.next; | |
| #!/bin/bash | |
| # A better vimdiff mergetool for Git | |
| # | |
| # Git does a great job resolving merge conflicts automatically but there are | |
| # times when human intervention is still needed. Git resolves all the conflicts | |
| # that it is able to and finally wraps each conflict it cannot resolve within | |
| # special markers which must be resolved by a human. | |
| # | |
| # The vertical format and lack of syntax highlighting in the plain conflict | |
| # marker layout makes it difficult to spot subtle conflicts such as |
| #!/usr/local/bin/fish | |
| function tips | |
| set_color red | |
| echo $argv[1] | |
| set_color normal | |
| end | |
| set SOURCE $argv[1] | |
| set TARGET $argv[2] |
###硬规则
年,如果是1960s这种,直接翻xx年代,如: