Skip to content

Instantly share code, notes, and snippets.

Avatar

Ralph Bergmann the4thfloor

View GitHub Profile
View ContentView.swift
import SwiftUI
import core
struct ContentView: View {
var body: some View {
Text("Today in one year is: \(nextYear())").padding()
}
}
View Podfile
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
View Name.swift
import Foundation
public func name() -> String {
return "Ralph"
}
View ContentView.swift
import SwiftUI
import core
struct ContentView: View {
var body: some View {
Text("Hello, \(name())!").padding()
}
}
View Info.plist
<?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>
View build.gradle
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) {
@the4thfloor
the4thfloor / main.dart
Last active Oct 19, 2020
Flutter PageView with RenderBox example for https://stackoverflow.com/questions/49320015
View main.dart
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(
@the4thfloor
the4thfloor / cla
Created Apr 20, 2017 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
View cla
###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