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
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details | |
version: 1 | |
script: | |
- rm -rf AppDir || true | |
- cp -r build/linux/x64/release/bundle AppDir | |
- mkdir -p AppDir/usr/share/icons/hicolor/512x512/apps/ | |
- cp light.png AppDir/usr/share/icons/hicolor/512x512/apps/ | |
AppDir: | |
path: ./AppDir | |
app_info: |
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] | |
name = "dice" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
rui = "0.6.1" | |
vger = "0.2.7" |
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 iced::widget::canvas::{self, Cursor, Event, Geometry}; | |
use iced::widget::canvas::{Cache, Canvas, Path, Text}; | |
use iced::{event, mouse, Color, Element, Font, Length, Point, Rectangle, Size, Theme}; | |
#[derive(Debug, Clone)] | |
pub enum Message {} | |
#[derive(Default)] | |
pub enum Interaction { | |
#[default] |
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 iced::widget::canvas::{self, Cursor, Event, Geometry}; | |
use iced::widget::canvas::{Cache, Canvas, Path}; | |
use iced::{event, mouse, Color, Element, Length, Rectangle, Theme}; | |
#[derive(Debug, Clone)] | |
pub enum Message {} | |
pub enum Interaction { | |
None, | |
} |
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 com.loloof64.compose_chess_experiment.ui.components.chess_board | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.foundation.shape.CircleShape | |
import androidx.compose.material3.Button | |
import androidx.compose.material3.Surface | |
import androidx.compose.material3.Text | |
import androidx.compose.runtime.* | |
import androidx.compose.ui.Alignment |
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
echo 'Disconnect your android device by WIFI' | |
echo '-----------------------------------' | |
echo 'You must first ensure that :' | |
echo '1) Your device enable USB connection in the developper settings,' | |
echo '2) adb (Android debug bridge) command is in your path,' | |
echo '3) your device and your computer are on the same Wifi network.' | |
ip_adress=$(adb devices | grep -o -P '192\.\d+\.\d+\.\d+' | sed -n 's/\(.*\)/\1/p') | |
adb disconnect $ip_adress > /dev/null |
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
echo 'Connect your android device by WIFI' | |
echo '-----------------------------------' | |
echo 'You must first ensure that :' | |
echo '1) Your device enable USB connection in the developper settings,' | |
echo '2) adb (Android debug bridge) command is in your path,' | |
echo '3) your device and your computer are on the same Wifi network.' | |
echo "Also don't forget to disconnect device from adb, you can run script disconnect_android_wifi for that." | |
echo "Then plug your device by USB and press ENTER when you're ready:" | |
read dummy_variable |
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 std::cell::RefCell; | |
fn main() { | |
let x = RefCell::new(42); | |
{ | |
let mut y = x.borrow_mut(); | |
*y += 60; | |
} | |
println!("{:?}", x); | |
} |
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] | |
name = "greet-user" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
gtk = {version = "0.3", package = "gtk4"} | |
relm4 = "0.2" |
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 androidx.compose.desktop.DesktopMaterialTheme | |
import androidx.compose.desktop.ui.tooling.preview.Preview | |
import androidx.compose.foundation.Canvas | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.gestures.detectTapGestures | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.material.Button | |
import androidx.compose.material.Text | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.mutableStateOf |
NewerOlder