This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company.product"> | |
<application android:icon="@drawable/app_icon" android:label="@string/app_name"> | |
<activity android:name=".OverrideExample" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> | |
</application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<application> | |
<meta-data android:name="com.unity.activity.listener.MyHelloWorld" | |
android:value="com.unity.myhelloworldplugin.MyHelloWorldActivityListener" /> | |
</application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Example { | |
public int exampleNumber; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const downloadFileAsPdf = (googleDriveFileId) => { | |
const drive = google.drive({ version: 'v3', auth: 'YOUR_API_KEY' }); | |
const fileStream = fs.createWriteStream('./output.pdf') | |
drive.files.export({ fileId: googleDriveFileId, mimeType: 'application/pdf' }, { responseType: 'stream' }, (err, res) => { | |
res.data.pipe(fileStream); | |
}) | |
} | |
//https://docs.google.com/presentation/d/HERE_IS_THE_FILE_ID | |
const slideId = "GOOGLE_DRIVE_FILE_ID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const { google } = require('googleapis'); | |
const express = require('express') | |
const app = express() | |
const port = 3000 | |
//https://docs.google.com/presentation/d/HERE_IS_THE_FILE_ID | |
const slideId = "1gieOtIvgm3fm7-WvLdScVPCuVKvwFZVmhEaa39rfOdE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnGUI() { | |
// Everything inside BeginHorizontal and EndHorizontal will be distributed horizontally | |
GUILayout.BeginHorizontal(); | |
GUILayout.Label("Hello"); | |
GUILayout.TextField("World!"); | |
GUILayout.EndHorizontal(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnGUI() { | |
// Everything inside BeginHorizontal and EndHorizontal will be distributed horizontally | |
GUILayout.BeginHorizontal(); | |
GUILayout.Label("Hello"); | |
GUILayout.TextField("World!"); | |
GUILayout.EndHorizontal(); | |
GUILayout.BeginHorizontal(); | |
GUILayout.BeginVertical(); | |
GUILayout.Label("Bool Value"); | |
_toggle = GUILayout.Toggle(_toggle, ""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnGUI() { | |
RenderHelloWordRow(); | |
RenderValuesRow(); | |
GUILayout.Label("Another label here"); | |
} | |
private void RenderHelloWordRow() { | |
GUILayout.BeginHorizontal(); | |
GUILayout.Label("Hello"); | |
GUILayout.TextField("World!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
public static class Layout { | |
public static void Horizontal(Action block) { | |
GUILayout.BeginHorizontal(); | |
block(); | |
GUILayout.EndHorizontal(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before | |
private void RenderHelloWordRow() { | |
GUILayout.BeginHorizontal(); | |
GUILayout.Label("Hello"); | |
GUILayout.TextField("World!"); | |
GUILayout.EndHorizontal(); | |
} | |
// After | |
private void RenderHelloWordRow() { |
OlderNewer