Convert between ASCII (char), ASCII (int), && 8-bit (Byte)
Added: Ability to update the default text being converted.
/* Convert to ASCII (int) */
word[idx] = '[' + ltr.charCodeAt().toString() + ']';
... Typed with TypeScript
... With Testing Mock-up
GitHub - Done (for now)
- Filename used: ./src/utilities/functions.ts
| 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 () { |
A Small Personal Boilerplate
Sample code within based on Redux Docs
The two sample components and the initial-state object used herein are only inlined for brevity. CSS is not used/included in this boilerplate.
This project derived from: Programming Challenges: [Remove False Values From Array]
This project derived from: Programming Challenges: [Convert to Seconds]
This project derived from: Programming Challenges: [Fizz Buzz]
This project derived from: Laracasts: ["Do You React?"]
| // 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 | |
| // // // // // // // // // // |