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
/* Default Tailwind styles */ | |
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
/* Light mode */ | |
:root { | |
--colors-on-container: #353531; | |
} |
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
const step = 100 | |
const wait = 1000 | |
const data = Array.from({ length: 69000 }, (_, i) => ({ | |
id: i, | |
})) | |
const getData = async ({ id }) => Promise.resolve({ id, data: `data-${id}` }) | |
const newData = [] | |
const run = async (step) => { |
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::{anyhow, Result}; | |
use std::fs; | |
fn main() -> Result<()> { | |
let args: Vec<String> = std::env::args().collect(); | |
if args.len() <= 1 { | |
return Err(anyhow!("No file specified")); | |
} |
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 node | |
// Required parameters: | |
// @raycast.schemaVersion 1 | |
// @raycast.title Jira fetcher | |
// @raycast.mode silent | |
// Optional parameters: | |
// @raycast.icon 🤖 | |
// @raycast.argument1 { "type": "text", "placeholder": "Jira URL" } |
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
// Defined in asset library | |
$color-data-blue: #5d8aff; | |
$color-data-purple: #a858ff; | |
// Map colors | |
$colors: ( | |
blue: $color-data-blue, | |
purple: $color-data-purple, | |
// and so on... | |
); |
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
const fetchSeller = () => Promise.resolve({ streetAddress: 'Test street' }) | |
const sellerInformationValid = (ctx, event) => !!ctx.seller.streetAddress | |
const validId = () => false | |
const fetchMachine = Machine( | |
{ | |
id: 'kp-form', | |
initial: 'seller', |
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
#: The 16 terminal colors. There are 8 basic colors, each color has a | |
#: dull and bright version. You can also set the remaining colors from | |
#: the 256 color table as color16 to color255. | |
color0 #051626 | |
color8 #334452 | |
#: black | |
color1 #ef5350 |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
Array.apply( | |
null, | |
document.querySelectorAll('.cbox_table tbody tr:not(:last-child)') | |
) | |
.map((node, i) => { | |
var title = node.querySelector('td:nth-child(2)').innerText.trim() | |
var playtime = node.querySelector('td:nth-child(3)').innerText.trim() | |
return `${i + 1};${title};${playtime}` | |
}) |
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
-- DOWN | |
DROP SCHEMA public CASCADE; | |
-- UP | |
CREATE SCHEMA public; | |
GRANT ALL ON SCHEMA public TO postgres; | |
GRANT ALL ON SCHEMA public TO public; | |
-- Equipment enum |