Skip to content

Instantly share code, notes, and snippets.

View eikonomega's full-sized avatar

eikonomega eikonomega

View GitHub Profile
@eikonomega
eikonomega / Button100x30.jsx
Created May 22, 2020 22:08
Button100x30 w/single `props` argument
// ... all the stuff from above.
/**
* A simple, stylized, 100x30 button that you
* can be disabled and further styled.
*/
export default function Button100x30(props) {
return (
<TouchableOpacity
style={[styles.button, props.containerStyle]}
@eikonomega
eikonomega / Button100x30.jsx
Created May 22, 2020 22:01
Javascript (JSX) Version of `Button100x30` Component
// Standard Imports for React and React-Native Stuff
import React from 'react';
import { TouchableOpacity, Text, StyleSheet, ViewStyle } from 'react-native';
// CSS Styles Defined Elsewhere - IGNORE
import MasterStyles from '../styles/MasterStyles';
// CSS Styles - ALSO IGNORE
const styles = StyleSheet.create({
button: {
@eikonomega
eikonomega / Button100x300.tsx
Last active May 22, 2020 22:13
Simple Typescript React-Native Component
// ... Imports and CSS Definitions as Before
type Button100x30Props = {
text: string | number;
disabled?: boolean;
onPress?: () => void;
containerStyle?: ViewStyle;
};
/**
Getting Started with Sphinx and Autodoc
#######################################
.. automodule:: my_project.main
:members:
.. toctree::
:maxdepth: 2
:caption: Contents:
Welcome to Getting Started with Sphinx's documentation!
=======================================================
.. automodule:: my_project.main
:members:
.. toctree::
:maxdepth: 2
:caption: Contents:
@eikonomega
eikonomega / main.py
Created November 13, 2017 21:08
Very Simple Example of NumPy Style Docstrings
"""
main.py
====================================
The core module of my example project
"""
def about_me(your_name):
"""
Return the most important thing about a person.
@eikonomega
eikonomega / pytest.md
Created September 15, 2014 01:42
py.test

py.test --cov-report term-missing --cov myproj tests/