MaterialColor createMaterialColor(Color color) {
List strengths = <double>[.05];
Map swatch = <int, Color>{};
final int r = color.red, g = color.green, b = color.blue;
for (int i = 1; i < 10; i++) {
strengths.add(0.1 * i);
}
strengths.forEach((strength) {
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
/* | |
* Copyright 2024 GoatBytes.IO | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
// Add all chord types as properties to the MelodyDSL class with customizable durations | |
class MelodyDSL : DurationDSL { | |
// Define major chords as properties with customizable duration | |
fun chordMajor(name: String, duration: Duration, vararg notes: Note) = | |
chord(name) { notes.forEach { it.duration = duration }; notes.toList() } | |
val CMajor get() = chordMajor("CMajor", q, C4, E4, G4) | |
val DMajor get() = chordMajor("DMajor", q, D4, Fs4, A4) | |
val EMajor get() = chordMajor("EMajor", q, E4, Gs4, B4) | |
val FMajor get() = chordMajor("FMajor", q, F4, A4, C5) |
This file has been truncated, but you can view the full file.
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
6714, -0.01937628, -0.026082043, -0.037655838, -0.048852608, -0.05407036, -0.049272247, -0.03343115, -0.009027133, 0.018572796, 0.042668894, 0.0572362, 0.05875854, 0.04731384, 0.026568504, 0.0026798602, -0.017552704, -0.028712673, -0.028338633, -0.017559372, -6.0378667E-4, 0.016647726, 0.02860252, 0.03176535, 0.025842406, 0.013790362, 7.9816487E-4, -0.0074697905, -0.0068044215, 0.0040653325, 0.022919342, 0.044610262, 0.062578306, 0.07084814, 0.06588376, 0.047719084, 0.020007024, -0.011031972, -0.038436607, -0.056539107, -0.06257635, -0.057381835, -0.044953138, -0.031044284, -0.021238577, -0.019119058, -0.025119428, -0.036419578, -0.047915842, -0.053952783, -0.05025968, -0.03546793, -0.011716636, 0.01585838, 0.040603064, 0.056334592, 0.059221044, 0.04896197, 0.028897937, 0.005011959, -0.015867505, -0.02810286, -0.02889051, -0.019003864, -0.0024140393, 0.015079901, 0.02776799, 0.031880196, 0.026781652, 0.015133718, 0.0019728923, -0.006994945, -0.0073365164, 0.0025558965, 0.020804182, 0.04249834, 0.061133236, 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
/* | |
* SPDX-FileCopyrightText: © 2022 Jared Rummler <[email protected]> | |
* SPDX-License-Identifier: MIT | |
*/ | |
import androidx.annotation.WorkerThread | |
import java.io.File | |
/** |
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
// ==UserScript== | |
// @name Bloomberg Futures | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Chage table content to use percents for futures | |
// @author Jared Rummler | |
// @match https://www.bloomberg.com/markets/stocks/futures | |
// @grant none | |
// ==/UserScript== |
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
<templateSet group="TimberJava"> | |
<template name="timd" value="timber.log.Timber.d("$METHOD_NAME$: $content$");" description="Timber.d(String)" toReformat="true" toShortenFQNames="true"> | |
<variable name="METHOD_NAME" expression="methodName()" defaultValue="" alwaysStopAt="false" /> | |
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_STATEMENT" value="true" /> | |
</context> | |
</template> | |
<template name="time" value="timber.log.Timber.e($exception$, "$METHOD_NAME$: $content$");" description="Timber.e(Exception, String)" toReformat="true" toShortenFQNames="true"> | |
<variable name="exception" expression="" defaultValue="e" alwaysStopAt="true" /> |
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
{ | |
"schemaVersion": 1, | |
"label": "Instagram", | |
"message": "jaredrummler", | |
"color": "#c32aa3", | |
"namedLogo": "instagram", | |
"style": "social" | |
} |
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
/* | |
* Copyright 2017 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | |
* except in compliance with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the | |
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
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
<div class="container"> | |
<div class="box box-1"> | |
<div class="cover"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/945546/3433202-893bc9989a52eba0.png" alt=""></div> | |
<button><div></div></button> | |
</div> | |
<div class="box box-2"> | |
<div class="cover"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/945546/3433202-964edcf0f07211b0.png" alt=""></div> | |
<button><div></div></button> | |
</div> | |
<div class="box box-3"> |
NewerOlder