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
package dev.vdbroek.nekos.components | |
/** | |
* Original source: https://github.com/android/compose-samples/blob/1630f6b35ac9e25fb3cd3a64208d7c9afaaaedc5/Owl/app/src/main/java/com/example/owl/ui/courses/FeaturedCourses.kt#L161 | |
*/ | |
import androidx.compose.runtime.Composable | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.layout.Layout | |
import androidx.compose.ui.unit.Dp |
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
#!/bin/bash env | |
cd $GAMEDIR/drive_c/Program\ Files/Genshin\ Impact/Genshin\ Impact\ game/ | |
bash $CACHE/gi-patch/161/patch.sh | |
bash $CACHE/gi-patch/161/patch_anti_logincrash.sh | |
echo "PRESS KEY TO FINISH" | |
read key | |
env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia DXVK_HUD=1 WINEARCH=win64 WINEPREFIX=$GAMEDIR $HOME/.local/share/lutris/runners/wine/lutris-6.10-5-x86_64/bin/wine cmd /c launcher.bat |
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 YTLC Auto Switch | |
// @namespace ytlc-auto-switch | |
// @version 1.0.2 | |
// @description Just auto switches to live chat instead of top chat | |
// @author Pepijn98 | |
// @match https://www.youtube.com/* | |
// @grant none | |
// @homepageURL https://github.com/Pepijn98 |
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
// Moved to https://github.com/Pepijn98/twitch-points-autoclicker |
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 | |
const https = require("https"); | |
const fs = require("fs"); | |
const fsp = require("fs/promises"); | |
const path = require("path"); | |
const help_options = ["help", "--help", "-h"]; | |
const config_dir = path.join(process.env.HOME, ".config", "twitch"); |
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
Kotlin 7 hrs 43 mins ██████████████▎░░░░░░ 68.0% | |
XML 2 hrs 52 mins █████▎░░░░░░░░░░░░░░░ 25.2% | |
TypeScript 16 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.4% | |
JavaScript 13 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.0% | |
Markdown 12 mins ▍░░░░░░░░░░░░░░░░░░░░ 1.9% |
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
data class Time(var hours: Int, var mins: Int) { | |
operator fun plus(time: Time): Time { | |
val minutes = this.mins + time.mins | |
val hoursInMinutes = minutes / 60 | |
val remainingMinutes = minutes % 60 | |
val hours = this.hours + time.hours + hoursInMinutes | |
return Time(hours, remainingMinutes) | |
} | |
operator fun minus(time: Time): Time { |
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
func countries(in grid: inout [[Int]]) -> Int { | |
let height = grid.count | |
let width = grid[0].count | |
var flag = 0 | |
var flagCount = 0 | |
func cascade(x: Int, y: Int) { | |
guard grid[y][x] == flag else { | |
return |
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
/** | |
* @author KurozeroPB | |
*/ | |
class Numbers { | |
/** | |
* Create a new instance | |
* @param {Number|Number[]} seed | |
*/ | |
constructor(seed) { | |
if (seed == undefined) { |
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
/** | |
* Set multiple storage items | |
* @param {Object} items | |
*/ | |
Storage.prototype.setItems = function (items) { | |
for (let item in items) { | |
if (items.hasOwnProperty(item)) { | |
let itemToSet = ""; | |
if (typeof items[item] === 'object') | |
itemToSet = JSON.stringify(items[item]); |
NewerOlder