This file contains 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
// ========= | |
// main.dart | |
// ========= | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'package:rxdart/subjects.dart'; | |
import 'package:table_sticky_headers/table_sticky_headers.dart'; | |
void main() => runApp(ProviderScope(child: MainPage())); |
This file contains 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 { | |
MAX_BATCH, MAX_BURST, | |
MAX_DELAY, MIN_BURST, | |
MIN_DELAY, MIN_PRIORITY, | |
TASKS_COUNT, MAX_PRIORITY, | |
Stopwatch, Task, | |
randomInt, TaskAggregate | |
} from './util' | |
export default async function () { |
This file contains 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
<template> | |
<div class="q-pa-md"> | |
<q-card class="my-card"> | |
<q-card-section> | |
<div class="text-h6"> | |
Inline Markup Table | |
</div> | |
</q-card-section> | |
<q-markup-table dense> | |
<thead> |
This file contains 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
/* lib/state/dark.dart */ | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'package:hive/hive.dart'; | |
final darkTheme = StateNotifierProvider((_) => Dark()); | |
class Dark extends StateNotifier<bool> { | |
final String boxname; | |
bool firstrun = true; | |
Dark({this.boxname = 'todo'}) : super(false); |
This file contains 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
if !has('nvim') | |
source $VIMRUNTIME/defaults.vim | |
endif | |
set number | |
set hlsearch | |
set incsearch | |
let &t_ut='' " fixes display bug on kitty | |
call plug#begin('~/.vim/plugged') |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- Generated by: TmTheme-Editor --> | |
<!-- ============================================ --> | |
<!-- app: http://tmtheme-editor.herokuapp.com --> | |
<!-- code: https://github.com/aziz/tmTheme-Editor --> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Ayu Dark</string> |
This file contains 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
#!/usr/bin/python3 | |
# Source: https://support.particle.io/hc/en-us/articles/360045547634-How-can-I-set-up-my-Argon-or-Boron-via-USB- | |
from shutil import which | |
from urllib.request import urlopen | |
from sys import exit as bail | |
from subprocess import run | |
from os import remove | |
from re import compile as regex |
This file contains 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
-- Full list at https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md | |
local servers = { | |
'pyright', 'rust_analyzer', 'tsserver', 'dartls', 'clangd', | |
-- Provided by vscode-langservers-extracted | |
'html', 'eslint', 'cssls', 'jsonls', | |
} | |
local use = require('packer').use | |
require('packer').startup(function() | |
use 'wbthomason/packer.nvim' -- Self-management |
This file contains 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 anyhow::Result; | |
use std::{thread::sleep, time::Duration}; | |
use flutter_rust_bridge::StreamSink; | |
const ONE_SECOND: Duration = Duration::from_secs(1); | |
// can't omit the return type yet, this is a bug | |
pub fn tick(sink: StreamSink<i32>) -> Result<()> { | |
let mut ticks = 0; |
This file contains 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
#!/usr/bin/env python | |
# pyright: basic | |
import re | |
import sys | |
import os | |
import ast as a | |
from typing import Callable, Generic, Iterable, Iterator, TypeVar | |
from multiprocessing import Pool | |
from pathlib import Path |
OlderNewer