Skip to content

Instantly share code, notes, and snippets.

View joshi1983's full-sized avatar

Josh Greig joshi1983

  • Windsor, Ontario
View GitHub Profile
@joshi1983
joshi1983 / Home.js
Last active September 12, 2019 22:04
import React from 'react';
import {Alert, Image, View, Button} from 'react-native';
export default class HomeScreen extends React.Component {
static navigationOptions = {
title: 'Home',
};
onPress() {
console.log('onPress called');
}
@joshi1983
joshi1983 / maybe.cs
Last active October 26, 2017 14:33 — forked from dcomartin/maybe.cs
Fixed misspelled return keyword in Decrement method
public Maybe<int> Decrement(int number)
{
if (number <= 0)
{
return Maybe<int>.None;
}
return Maybe<int>(number-1);
}