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::error::Error; | |
use std::future::pending; | |
use zbus::{connection, interface}; | |
pub struct Broker; | |
#[interface(name = "com.microsoft.identity.broker1")] | |
impl Broker { | |
#[allow(non_snake_case)] | |
fn getAccounts(&mut self, num: f32, session_id: &str, context: &str) -> String { |
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
// autotoken retrieves a Slack token and cookie using your Slack team | |
// credentials. | |
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" |
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
/* | |
Unix SMB/CIFS implementation. | |
Samba utility functions | |
Copyright (C) David Mulder <[email protected]> 2021 | |
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 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
from yast import import_module | |
import_module('UI') | |
from yast import * | |
UI.OpenDialog( | |
VBox( | |
MultiLineEdit(Id('problem'), 'Enter text here:'), | |
PushButton("&OK"), | |
) | |
) |