Skip to content

Instantly share code, notes, and snippets.

@fedejordan
fedejordan / LibGDX3DTest.kt
Created July 29, 2022 06:17
Blog16 - 3D rendering of a car model
package com.fedejordan.libgdx3dtest
import com.badlogic.gdx.ApplicationAdapter
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.graphics.Camera
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.PerspectiveCamera
import com.badlogic.gdx.graphics.g3d.utils.ModelBuilder
import com.badlogic.gdx.graphics.VertexAttributes.Usage
import com.badlogic.gdx.graphics.g3d.*
@fedejordan
fedejordan / LibGDX3DTest.kt
Created July 29, 2022 05:43
Blog16 - 3D Cube with camera control
package com.fedejordan.libgdx3dtest
import com.badlogic.gdx.ApplicationAdapter
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.graphics.Camera
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.PerspectiveCamera
import com.badlogic.gdx.graphics.g3d.utils.ModelBuilder
import com.badlogic.gdx.graphics.VertexAttributes.Usage
import com.badlogic.gdx.graphics.g3d.*
@fedejordan
fedejordan / LibGDX3DTest.kt
Created July 29, 2022 05:16
Blog16 - Basic 3D cube rendering
package com.fedejordan.libgdx3dtest
import com.badlogic.gdx.ApplicationAdapter
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.PerspectiveCamera
import com.badlogic.gdx.graphics.g3d.utils.ModelBuilder
import com.badlogic.gdx.graphics.VertexAttributes.Usage
import com.badlogic.gdx.graphics.g3d.*
import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute
@fedejordan
fedejordan / LibGDX3DTest.kt
Last active July 29, 2022 05:18
Blog16 - Initial LibGDX3DTest.kt
package com.fedejordan.libgdx3dtest
import com.badlogic.gdx.ApplicationAdapter
import com.badlogic.gdx.graphics.Texture
import com.badlogic.gdx.graphics.g2d.SpriteBatch
import com.badlogic.gdx.utils.ScreenUtils
class LibGDX3DTest: ApplicationAdapter() {
private lateinit var batch: SpriteBatch
private lateinit var img: Texture
@fedejordan
fedejordan / AppDelegate.swift
Created July 7, 2022 17:30
Blog15 - AppDelegate with #if
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
#if DEBUG
print("This is the STDevelopment scheme, using Development configuration with Development.xcconfig")
#endif
#if RELEASE
print("This is the STProduction scheme, using Production configuration with Production.xcconfig")
#endif
@fedejordan
fedejordan / Production.xcconfig
Last active July 7, 2022 17:06
Blog15 - Production.xcconfig
#include "Common.xcconfig"
PRODUCT_BUNDLE_IDENTIFIER = com.fedejordan.schemes-test
BUNDLE_DISPLAY_NAME = STProduction
@fedejordan
fedejordan / Development.xcconfig
Last active July 7, 2022 17:07
Blog15 - Development.xcconfig
#include "Common.xcconfig"
PRODUCT_BUNDLE_IDENTIFIER = com.fedejordan.schemes-test-development
BUNDLE_DISPLAY_NAME = STDevelopment
@fedejordan
fedejordan / Common.xcconfig
Created July 7, 2022 05:17
Blog15 - Common.xcconfig
MARKETING_VERSION = 1.2.0
CURRENT_PROJECT_VERSION = 200
@fedejordan
fedejordan / BuildConfiguration.xcconfig
Last active July 3, 2022 20:19
Blog15 - Xcode Configuration file example
PRODUCT_BUNDLE_IDENTIFIER = com.fedejordan.schemes-test
MARKETING_VERSION = 1.2.0
CURRENT_PROJECT_VERSION = 200
@fedejordan
fedejordan / publish_code_coverage.rb
Created September 7, 2021 03:41
Blog14 - Custom action with Github Status API POST
module Fastlane
module Actions
class PublishCodeCoverageAction < Action
COVERAGE_FILE_PATH = 'fastlane/code_coverage/index.html'
def self.run(params)
UI.message "Generating Slather report"
Actions::SlatherAction.run(