Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron K Saunders aaronksaunders

View GitHub Profile
@aaronksaunders
aaronksaunders / App.tsx
Created March 11, 2020 21:15
Typscript version of react-hook-form code with Ionic Framework
View App.tsx
import React, { useState } from "react";
import {
IonApp,
IonPage,
IonHeader,
IonContent,
IonItem,
IonLabel,
IonInput,
IonRadioGroup,
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@aaronksaunders
aaronksaunders / app.js
Created February 10, 2012 21:06 — forked from pixelhandler/app.js
Develop a RESTful API Using Node.js With Express and Mongoose
View app.js
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database
mongoose.connect('mongodb://localhost/ecomm_database');
@aaronksaunders
aaronksaunders / App.vue
Created October 10, 2021 23:13
ionic vue 3 ionslides in modal
View App.vue
<template>
<ion-page>
<ion-header :translucent="true">
<ion-toolbar>
<ion-title>Blank</ion-title>
</ion-toolbar>
</ion-header>
<ion-content :fullscreen="true">
<ion-button @click="setOpen(true)">SHOW MODAL</ion-button>
@aaronksaunders
aaronksaunders / docker-compose.yml
Last active September 16, 2021 03:01
Docker With Mongo
View docker-compose.yml
version: '3'
services:
mongodb:
image: mongo:4.2
environment:
MONGO_INITDB_ROOT_USERNAME: aks_root
MONGO_INITDB_ROOT_PASSWORD: aks_root
ports:
- '27017:27017'
@aaronksaunders
aaronksaunders / app.js
Created May 20, 2012 21:28
Appcelerator Titanium Yelp API v2.0 Integration
View app.js
//
// Aaron K. Saunders
//
// http://www.clearlyinnovative.com
// http://blog.clearlyinnovative.com
// @aaronksaunders
//
// SEE http://bytespider.github.com/jsOAuth/ for jsOAuth.js
//
Ti.include("jsOAuth.js");
@aaronksaunders
aaronksaunders / app_snippet.js
Last active July 11, 2020 14:07
One way to do bulk updates and deletes with Appcelerator Alloy Collections
View app_snippet.js
// add all items to collection
Alloy.Collections.Fugitive.reset([{
"name" : "Jeff Haynie"
}, {
"name" : "Nolan Wright"
}, {
"name" : "Don Thorp"
}, {
"name" : "Marshall Culpepper"
}, {
@aaronksaunders
aaronksaunders / 2-MessageListItem.stories.js
Created June 17, 2020 03:13
dev.to - storybook - post
View 2-MessageListItem.stories.js
import React from "react";
import { action } from "@storybook/addon-actions";
import MessageListItem from "../components/MessageListItem";
import { IonList } from "@ionic/react";
export default {
title: "MessageListItem",
component: MessageListItem,
};
@aaronksaunders
aaronksaunders / Home.tsx
Created April 23, 2020 02:36
Ionic Native Plugins in ReactJS with Capacitor
View Home.tsx
import React from "react";
import {
IonContent,
IonHeader,
IonPage,
IonTitle,
IonToolbar,
IonButton,
} from "@ionic/react";
import "./Home.css";
@aaronksaunders
aaronksaunders / index.js
Last active September 25, 2019 08:59
Appcelerator Titanium Alloy ListView & Facebook Friends Part Two. Using the ListView template in view.xml. New feature coming in Alloy 1.2
View index.js
/**
* called when an item in the ListView is clicked; we will get the section
* index, and addition event information
*
* @param {Object} _event
*/
function loadMoreBtnClicked(_event) {
alert('not implemented yet');
}