Skip to content

Instantly share code, notes, and snippets.

View hemepositive's full-sized avatar

Jonathan White, MD hemepositive

  • Huntsville Hospital
  • Huntsville, AL
View GitHub Profile
@mustafakucuk
mustafakucuk / index.ios.js
Created October 15, 2018 08:46
React Native - Speech to text (I try for IOS https://github.com/wenkesj/react-native-voice, you can try for Android)
import React, { Component } from 'react';
import {AppRegistry, View, Text,StyleSheet,TouchableOpacity } from 'react-native';
import Speech from 'react-native-speech';
import Voice from 'react-native-voice';
export default class NVoice extends Component {
constructor(){
super();
this.state = {
results: []

Strings

String.prototype.*

None of the string methods modify this – they always return fresh strings.

  • charAt(pos: number): string ES1

    Returns the character at index pos, as a string (JavaScript does not have a datatype for characters). str[i] is equivalent to str.charAt(i) and more concise (caveat: may not work on old engines).

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active July 25, 2024 15:41
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@guillaumegarcia13
guillaumegarcia13 / html_forms_cheatsheet.md
Created April 4, 2017 12:21
HTML forms and input tags cheatsheet. All you need to know to write every HTML form possible, including links to good resources on HTML and the new HTML5 form and input options...

HTML Forms

In order that you never go to W3Schools (never go there), here is a basic cheat sheet for writing simple HTML forms.

This is culled from a few sources, [the most important being MDN][MDN]. MDN (the Mozilla Developer Network) should be seen as "the docs" when you are having an issue with HTML.

@wordyallen
wordyallen / Counter.js
Last active May 15, 2018 16:17
Learning MobX
import React, {Component} from 'react'
import { observable } from 'mobx'
import { observer } from 'mobx-react'
@observer
class Counter extends Component{
@observable count = 0
@sibelius
sibelius / learning.md
Last active August 23, 2023 13:21
Learning Path React Native

Basics

  • Learn how to start a new react native project
  • Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
  • Learn how to upgrade a react native project
  • Learn how to add a package to the project
  • Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS
  • Learn how to use fetch to get data from your backend

Learn Navigation

@astagi
astagi / appdemo.js
Created August 21, 2015 09:11
Text to speech Angular Service
var app = angular.module('demo', ['textToSpeech']);
app.controller('demoCtrl', function($scope, $timeout, textToSpeech) {
textToSpeech.onVoiceReady(function(){
textToSpeech.speak(
'You worked 9 hours!!',
'UK English Male',
{pitch: 2}
).then(function() {
alert('Finish!');
}, function(err) {
@ourmaninamsterdam
ourmaninamsterdam / LICENSE
Last active July 24, 2024 17:00
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@anchetaWern
anchetaWern / responsive-voice.js
Created May 16, 2015 09:44
responsive-voice.js
//Look for other responsivevoice instances
/*if (window.parent != null) {
var iframes = window.parent.document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
//iframes[i].style.width = "300px"
}
}*/
if (typeof responsiveVoice != 'undefined') {
console.log('ResponsiveVoice already loaded');
(00) Emergency treatment of poisoning
(01) GASTRO-INTESTINAL SYSTEM
(01.01) Dyspepsia and gastro-oesophageal reflux disease
(01.01.01) Antacids and Simeticone
(01.01.01) -- magnesium trisilicate (Firstline - green)
(01.01.01) -- aluminium&magnesium hydroxide (Firstline - green)
(01.01.02) Compound alginates and proprietary indigestion preparations
(01.01.02) -- Gastrocote (Firstline - green)
(01.01.02) -- Gaviscon Advance (Firstline - green)
(01.01.02) -- Gaviscon Infant (Firstline - green)