This file contains hidden or 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
import * as pulumi from "@pulumi/pulumi"; | |
import * as azure from "@pulumi/azure"; | |
const environment = pulumi.getStack(); | |
const location = "WestEurope"; | |
const resourceGroupName = "tutorial-rg"; | |
const appservicePlanName = "tutorial-plan"; | |
const storageAccountName = "tutorialstore"; | |
const functionAppName = "tutorial-app"; |
This file contains hidden or 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
class Store | |
{ | |
private List<string> storeProducts; | |
public Store() | |
{ | |
storeProducts = new List<string>(); | |
} | |
async Task<string> GetOrAddProduct(Product product) | |
{ |
This file contains hidden or 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
class Store | |
{ | |
private List<string> storeProducts; | |
public Store() | |
{ | |
storeProducts = new List<string>(); | |
} | |
async Task<string> GetOrAddProduct(Product product) | |
{ |
This file contains hidden or 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
class Store | |
{ | |
private static Semaphore semaphore = new Semaphore(1, 3); | |
// ... | |
async Task DoSomeWork() | |
{ | |
try | |
{ |
This file contains hidden or 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
class Store | |
{ | |
private static Mutex mutex = new Mutex(); | |
private List<string> storeProducts; | |
public Store() | |
{ | |
storeProducts = new List<string>(); | |
} | |
This file contains hidden or 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
class Store | |
{ | |
private double revenue; | |
private List<string> storeProducts; | |
public Store(RevenueGenerator generator) | |
{ | |
revenue = generator.GenerateCurrentRevenue(); | |
storeProducts = new List<string>(); | |
} |
This file contains hidden or 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
class GalleryActivity : AppCompatActivity() { | |
private val PICK_IMAGE_REQUEST = 71 | |
private var filePath: Uri? = null | |
private var firebaseStore: FirebaseStorage? = null | |
private var storageReference: StorageReference? = null | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_gallery) |
This file contains hidden or 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.adoranwodo.GalleryUploadTutorial"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" |
This file contains hidden or 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"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
tools:showIn="@layout/activity_gallery" | |
tools:context=".GalleryActivity" |
This file contains hidden or 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
<script> | |
export default { | |
name: "App", | |
data() { | |
return { | |
themeSwitched: false | |
}; | |
} | |
}; | |
</script> |
NewerOlder