This file contains hidden or 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
| #! /run/current-system/sw/bin/sh | |
| . "${HOME}/.cache/wal/colors.sh" | |
| pgrep -x sxhkd > /dev/null || sxhkd & | |
| pgrep -x udiskie > /dev/null || udiskie & | |
| pgrep -x picom > /dev/null || picom & | |
| pgrep -x dunst > /dev/null || dunst & | |
| killall xmobar > /dev/null ; (bspc subscribe report | awk -v ulcolor="$color4" -v tcolor="$color7" -v fcolor="$color2" -f $HOME/.config/bspwm/desktops.awk | xmobar -B $color0 -F $color7 $HOME/.config/bspwm/xmobarrc) & |
This file contains hidden or 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
| { | |
| stdenv, | |
| stdenvNoCC, | |
| lib, | |
| makeWrapper, | |
| fetchurl, | |
| makeDesktopItem, | |
| copyDesktopItems, | |
| autoPatchelfHook, | |
| writeText, |
This file contains hidden or 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
| unsigned int XORShiftLinearFeedbackShiftRegister(unsigned int state, unsigned int seed, int index) { | |
| /* A 32-bit XOR Shift LFSR. | |
| * The lower 16 bits can be used as a pseudo random number generator. | |
| * Based on the XORShift LFSR source code example at https://stackoverflow.com/questions/65661856/how-to-do-an-8-bit-16-bit-and-32-bit-linear-feedback-shift-register-prng-in-ja"; | |
| * IMPORTANT: The seed must NEVER be zero, otherwise the LFSR will get stuck. | |
| */ | |
| unsigned int lfsr = index == 0 ? seed : state; | |
| lfsr ^= (lfsr & 0x0007ffff) << 13; | |
| lfsr ^= lfsr >> 17; |
This file contains hidden or 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
| { | |
| stdenvNoCC, | |
| stdenv, | |
| lib, | |
| fetchurl, | |
| makeDesktopItem, | |
| copyDesktopItems, | |
| buildFHSEnv, | |
| # temurin JDK dependencies |
This file contains hidden or 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
| void main() { | |
| var restaurants = [ | |
| { | |
| 'name': 'Pizza Mario', | |
| 'cuisine': 'Italian', | |
| 'ratings': [5.0, 3.5, 4.5], | |
| }, | |
| { | |
| 'name': 'Chez Anne', | |
| 'cuisine': 'French', |
This file contains hidden or 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 bash | |
| # ami4linux.bash - Awesome Maya Installer 4 Linux | |
| set -e | |
| FEDORA_RELEASE="42" | |
| CONFIG_DIR_PATH="$HOME/.config/ami4linux" | |
| CONFIG_FILE="ami4linux.env" | |
| CONFIG_FILE_PATH="$CONFIG_DIR_PATH/$CONFIG_FILE" | |
| CHECKPOINT_FILE_PATH="$CONFIG_DIR_PATH/checkpoint" |
This file contains hidden or 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 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); | |
| @override |
This file contains hidden or 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 'dart:math' as math; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
This file contains hidden or 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 'package:flutter/material.dart'; | |
| // NOTICE! | |
| // The rive package as an Image class, which conflicts with the Flutter Image class. | |
| // Thus, import rive such that it uses its own namespace to avoid this conflict. | |
| import 'package:rive/rive.dart' as rive; | |
| void main() { | |
| runApp(const MyApp()); | |
| } |
OlderNewer