Code:
package main
import "fmt"
func main() {
abc := []string{"aaa", "bbb", "ccc"}
for i := range abc {
fmt.Println(i)
#include <stdio.h> | |
#include <glib.h> | |
#include <librepo/repoconf.h> | |
int main() { | |
printf("Testing librepo\n"); | |
LrYumRepoConfs *confs = lr_yum_repoconfs_init(); | |
GError *error = NULL; | |
const char *repofile = "/etc/yum.repos.d/redhat.repo"; |
{ | |
"version": "2", | |
"pipelines": [ | |
{ | |
"name": "build", | |
"runner": "org.osbuild.rhel84", | |
"stages": [ | |
{ | |
"type": "org.osbuild.rpm", | |
"inputs": { |
{ | |
"version": "2", | |
"pipelines": [ | |
{ | |
"name": "build", | |
"runner": "org.osbuild.rhel84", | |
"stages": [ | |
{ | |
"type": "org.osbuild.rpm", | |
"inputs": { |
#!/usr/bin/python3 | |
import dnf | |
base = dnf.Base() | |
conf = base.conf | |
conf.cachedir = '/tmp/my_cache_dir' | |
conf.substitutions['releasever'] = '33' | |
conf.substitutions['basearch'] = 'x86_64' | |
base.repos.add_new_repo('my-repo', conf, |
import requests | |
from requests_kerberos import HTTPKerberosAuth | |
class Response: | |
def __init__(self, data, id, status): | |
self.data = data | |
self.id = id | |
self.status = status |
Code:
package main
import "fmt"
func main() {
abc := []string{"aaa", "bbb", "ccc"}
for i := range abc {
fmt.Println(i)
import os | |
from fpdf import FPDF | |
from PIL import Image | |
input = os.environ["INPUT"] | |
output = os.environ["OUTPUT"] | |
images = os.listdir(input) | |
print(images) |
{ | |
"build": { | |
"pipeline": { | |
"stages": [ | |
{ | |
"name": "org.osbuild.dnf", | |
"options": { | |
"repos": [ | |
{ | |
"metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch", |
#[derive(Debug)] | |
struct Task { | |
b: u8, | |
c: String, | |
} | |
#[derive(Debug)] | |
struct Day { | |
a: u8, |
/* | |
* # C++17 Coding challenge in Rust | |
* How to deal with edge cases: | |
* * if the input file is empty, the program should write “input file missing” to the console. | |
* * if the input file does not contain the specified column, the program should write “column name doesn’t exists in the input file” to the console. | |
* | |
* The rest was not considered and mercilessly unwrapped. | |
*/ | |
use std::env; |