Skip to content

Instantly share code, notes, and snippets.

View KDCinfo's full-sized avatar
💭
Flutter Developer | Contra Costa Co. CA

Keith D Commiskey KDCinfo

💭
Flutter Developer | Contra Costa Co. CA
View GitHub Profile
@KDCinfo
KDCinfo / redux-doc-todo-streamlined.js
Created April 26, 2017 22:55
Redux Docs - Todo App - Streamlined into One File
// The following code was extracted from the Redux docs and streamlined into one file
// I only did this to get a simplistic skeleton, so I could see how they all fit together
// ...and just to see that they all could work from one file :)
// http://redux.js.org/docs/basics/ExampleTodoList.html
// [npm: v3.6.0, changelog: #187]
// // // // // // // // // //
// Entry Point
// // // // // // // // // //
@KDCinfo
KDCinfo / README.md
Last active April 29, 2017 08:17
React Daily Project: Gist Box
@KDCinfo
KDCinfo / README.md
Last active April 29, 2017 07:03
Coding Challenge - FizzBuzz
@KDCinfo
KDCinfo / README.md
Last active April 29, 2017 07:58
Coding Challenge - Hour Seconds
@KDCinfo
KDCinfo / README.md
Created April 30, 2017 08:17
Coding Challenge - Removing Values from an Array
@KDCinfo
KDCinfo / README.md
Last active September 1, 2017 11:04
A Small Personal Boilerplate: Simple React + Router + Redux for RR4

Simple React + Router + Redux for RR4

A Small Personal Boilerplate

Sample code within based on Redux Docs

Files / Structure

The two sample components and the initial-state object used herein are only inlined for brevity. CSS is not used/included in this boilerplate.

import React, { Component } from 'react'
import PropTypes from 'prop-types'
// mock/pretend API
let dogs = [
{ id: '1', name: 'Castor', favoriteToy: 'bone' },
{ id: '2', name: 'Gandalf', favoriteToy: 'Stick' }
]
const API = {
getDogs () {
@KDCinfo
KDCinfo / README.md
Last active September 10, 2020 15:43
LocalStorage Functions with Testing Mock-up - `Typed` with TypeScript

LocalStorage Functions

... Typed with TypeScript
... With Testing Mock-up

In the Wild

GitHub - Done (for now) - Filename used: ./src/utilities/functions.ts

@KDCinfo
KDCinfo / README.md
Last active October 2, 2017 06:05
Convert0101 - JavaScript: Convert between ASCII (char), ASCII (int), and 8-bit (Byte)

Convert0101 (JavaScript)

Convert between ASCII (char), ASCII (int), && 8-bit (Byte)

Added: Ability to update the default text being converted.

Code Crux

    /* Convert to ASCII (int) */
 word[idx] = '[' + ltr.charCodeAt().toString() + ']';
@KDCinfo
KDCinfo / README.md
Last active December 24, 2017 11:53
Simon - JavaScript Game