Skip to content

Instantly share code, notes, and snippets.

View AdoraNwodo's full-sized avatar
🏠
Working from home

Adora Nwodo AdoraNwodo

🏠
Working from home
View GitHub Profile
@AdoraNwodo
AdoraNwodo / style.css
Last active April 26, 2019 10:31
Vue Vixens workshop - My pet shop webapp styles
<style lang="scss">
@import url("https://fonts.googleapis.com/css?family=Roboto");
/*brown and mint*/
/*dark brown 32292F
light mint 99E1D9
bisque F0F7F4
dark mint 70ABAF
light brown 705D56*/
@AdoraNwodo
AdoraNwodo / App.vue
Created March 23, 2019 05:17
Vue Vixens workshop - Building the my pet shop webapp
<template>
<v-app>
<main>
<div class="app-container">
<header class="app-header dark-brown">
<h1>My Pet Store</h1>
</header>
<div class="wrapper">
<div class="panel tall-panel light-mint">
<h2>Pet Products</h2>
@AdoraNwodo
AdoraNwodo / script.js
Created March 23, 2019 12:34
Vue vixens script
<script>
export default {
name: "App",
data() {
return {
themeSwitched: false
};
}
};
</script>
@AdoraNwodo
AdoraNwodo / activity_gallery.xml
Last active April 26, 2019 10:31
Layout for Gallery Activity - Uploading an Image to Firebase
<?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"
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)
@AdoraNwodo
AdoraNwodo / Store.cs
Last active November 22, 2019 06:33
class Store
{
private double revenue;
private List<string> storeProducts;
public Store(RevenueGenerator generator)
{
revenue = generator.GenerateCurrentRevenue();
storeProducts = new List<string>();
}
class Store
{
private static Mutex mutex = new Mutex();
private List<string> storeProducts;
public Store()
{
storeProducts = new List<string>();
}
class Store
{
private static Semaphore semaphore = new Semaphore(1, 3);
// ...
async Task DoSomeWork()
{
try
{
class Store
{
private List<string> storeProducts;
public Store()
{
storeProducts = new List<string>();
}
async Task<string> GetOrAddProduct(Product product)
{