Call this program with -s N
to set a specific CPU.
Without -s
, the thread will have the default affinity.
This program will print out the main threads CPU, the child threads CPU and the child threads affinity after optionally setting it.
Call this program with -s N
to set a specific CPU.
Without -s
, the thread will have the default affinity.
This program will print out the main threads CPU, the child threads CPU and the child threads affinity after optionally setting it.
# Maintainer: Dan Beste <[email protected]> | |
# Contributor: Frederic Bezies < fredbezies at gmail dot com> | |
# Contributor: Ian Brunelli (brunelli) <[email protected]> | |
pkgname="lollypop-transparent" | |
_gitname="lollypop-transparent" | |
_gitname_orig="lollypop" | |
pkgdesc='Lollypop with a transparent background' | |
pkgver=0.9.304.r573.g20395d12 | |
pkgrel=1 |
trait Foo { | |
fn bar(&self); | |
} | |
impl Foo for &dyn Foo { | |
fn bar(&self) { | |
(*self).bar(); | |
} | |
} |
https://start.duckduckgo.com/// These are our "fake" pins | |
#[derive(Debug)] | |
pub struct PA; | |
#[derive(Debug)] | |
pub struct PB; | |
#[derive(Debug)] | |
pub struct PC; | |
#[derive(Debug)] | |
pub struct PD; |
/* | |
* echoed - Pipedeamon which changes to lowercase and uppercase | |
* Copyright (C) 2019 Harald Seiler | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
# SPDX-License-Identifier: GPL-2.0-or-later | |
from pyprofibus import phy_serial | |
from pyprofibus import fdl | |
import pyprofibus | |
def main(): | |
phy = phy_serial.CpPhySerial("/dev/ttyUSB0") | |
phy.setConfig(baudrate=phy_serial.CpPhy.BAUD_19200) | |
phy.debug = 1 |
# inspired by https://forum.freecad.org/viewtopic.php?t=44309 | |
from PySide import QtCore, QtGui | |
edges = FreeCADGui.Selection.getSelectionEx()[0].SubObjects | |
length = sum(e.Length for e in edges) | |
print(f"Length of selected edges is {length:.2f} mm.") | |
diag = QtGui.QMessageBox(QtGui.QMessageBox.Information, "Edge Length", f"Length of selected edges is {length:.2f} mm.") | |
diag.setWindowModality(QtCore.Qt.ApplicationModal) | |
diag.exec_() |
#[derive(Hash, Debug, PartialEq, Eq, Clone)] | |
struct KeyOwned { | |
s1: String, | |
s2: String, | |
} | |
#[derive(Hash, Debug, PartialEq, Eq)] | |
struct KeyRef<'a> { | |
s1: &'a str, | |
s2: &'a str, |