Skip to content

Instantly share code, notes, and snippets.

View brucevang's full-sized avatar
Making

Bruce Vang brucevang

Making
View GitHub Profile
@rje
rje / 1_sign_and_submit.sh
Last active July 3, 2021 10:49
This is a set of scripts that I'm using to sign and notarize a unity app that has native plugins included as .bundle files. It's a lot of steps! Hopefully this makes it a bit easier...
#!/bin/bash -x
# This script takes .app file generated by unity for OSX, signs any plugin bundles and the main app,
# zips the project, and submits it for notarization
# Required data -- You need to fill these out with useful values!
USERNAME=# username of your apple account, usually your email
PASSWORD=# a generated password from appleid.apple.com
ROOT_FOLDER=# path to where your build lives
APP_NAME=# name of the app file unity created for you
PLUGIN_DIR=Contents/Plugins # you should be able to leave this be
@TheHemantKaushik
TheHemantKaushik / flutter_tab_navigator.dart
Last active November 15, 2022 17:03
This Flutter app example show how to use bottom navigation bar with tabs inner navigation. Also, how to handle Android's back button to pop inner screens of tab and double tap bottom navigation item to pop all inner screens of a tab.
///
/// Example GIF image:
/// https://ibb.co/mbqF72Q
///
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
@saito-sv
saito-sv / Shimmer.swift
Last active June 24, 2024 18:22
a simple shimmer view in swift
// Created by Marlon Monroy on 5/19/18.
// Copyright © 2018 Monroy.io All rights reserved.
//
import Foundation
import UIKit
protocol Shimmerable {
func start(count: Int) -> Void
@Utopiah
Utopiah / triangulate_obj.py
Last active October 18, 2022 09:36
Blender Python script to triangulate obj coming from Google Blocks
# Blender Python script to triangulate obj coming from Google Blocks
# result http://vatelier.net/MyDemo/TestingTriangulation/
# via https://blender.stackexchange.com/questions/34537/how-to-batch-convert-between-file-formats
import bpy # Python interface for Blender, use Shift+F4 to start the interactive console.
# alternatively for headless server side batch conversion use blender -b -P triangulate_obj.py
import os
def convert_in_dir(path):
for root, dirs, files in os.walk(path):
for f in files:
/**
* Author: David Asmuth
* Contact: [email protected]
* License: Public domain
*
* Converts the .fbx model
* from Blender orientation system (Z is up, Y is forward)
* to the Unity3D orientation system (Y is up, Z is forward)
*/
using System.IO;
// LoadingScreenManager
// --------------------------------
// built by Martin Nerurkar (http://www.martin.nerurkar.de)
// for Nowhere Prophet (http://www.noprophet.com)
//
// Licensed under GNU General Public License v3.0
// http://www.gnu.org/licenses/gpl-3.0.txt
using UnityEngine;
using UnityEngine.UI;
@nickpettit
nickpettit / SceneLoader.cs
Last active November 26, 2020 16:43
This Unity script will add fields in the inspector that allow you to enter a scene number. When the user presses the space bar, Unity will load the new scene.
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class SceneLoader : MonoBehaviour {
private bool loadScene = false;
[SerializeField]
private int scene;
@brunomikoski
brunomikoski / ReplaceTextForTextMeshPro.cs
Created March 31, 2015 14:24
Replace all Text instances for TextMeshPROUGUI ones
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using TMPro;
using UnityEngine.UI;
public class ReplaceFont
@mpost
mpost / colors.xml
Last active September 4, 2024 05:58
This gist demonstrates how to create an animated pause/resume media playback button for Android. It uses animated vector drawables and state transitions to orchestrate the effect. Some background: https://plus.google.com/u/0/+MoritzPost/posts/3EFF8uC7jXv
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="action_pause">#FF8F00</color>
<color name="action_resume">#43A047</color>
</resources>
@staltz
staltz / introrx.md
Last active April 8, 2025 04:41
The introduction to Reactive Programming you've been missing