Skip to content

Instantly share code, notes, and snippets.

View ralph-bergmann's full-sized avatar

Ralph Bergmann ralph-bergmann

View GitHub Profile
@ralph-bergmann
ralph-bergmann / k8s.yaml
Created September 3, 2022 15:35
Playbook to install the necessary things to run k8s on Raspberry PIs
---
- name: Playbook to install the necessary things to run k8s on Raspberry PIs
hosts: raspis
become: yes
gather_facts: no
tasks:
- name: Update repositories cache and upgrade system
ansible.builtin.apt:
update_cache: yes
upgrade: dist
import SwiftUI
import core
struct ContentView: View {
var body: some View {
Text("Today in one year is: \(nextYear())").padding()
}
}
workspace 'app.xcworkspace'
platform :ios, '13.0'
use_frameworks!
def core_pods
pod 'SwiftDate', '~> 6.3.1'
end
def main_pods
# add pods for the main target here
import Foundation
public func name() -> String {
return "Ralph"
}
import SwiftUI
import core
struct ContentView: View {
var body: some View {
Text("Hello, \(name())!").padding()
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
@ralph-bergmann
ralph-bergmann / main.dart
Last active October 19, 2020 11:21
Flutter PageView with RenderBox example for https://stackoverflow.com/questions/49320015
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
@ralph-bergmann
ralph-bergmann / cla
Created April 20, 2017 20:35 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
###SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwid