A number of fonts are available by default based on the platform (e.g., Roboto on Android, Helvetica on iOS). See the full list here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios, { AxiosError, AxiosResponse } from 'axios'; | |
import token from './somewhere'; | |
interface Todo { | |
id: string; | |
title: string; | |
} | |
interface User { | |
id: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import useSWR from '@zeit/swr'; | |
import localForage from 'localforage'; | |
import { ConfigInterface } from '@zeit/swr/dist/src/types'; | |
import { useState, useEffect } from 'react'; | |
export function usePersistentSWR(key: string, fn?: Function, config?: ConfigInterface) { | |
let handleSuccess; | |
if (config !== undefined && config.onSuccess !== undefined) { | |
const { onSuccess } = config; | |
handleSuccess = (data: any, key: string, config: ConfigInterface) => { |
This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
canPlayBanjo - https://www.youtube.com/watch?v=A4FD1XtiE1o&feature=youtu.be | |
maxOfThree - https://www.youtube.com/watch?v=J5mUUn75Mec&feature=youtu.be | |
Vowel Count - https://www.youtube.com/watch?v=7FE2gVN6WUc&feature=youtu.be | |
underToCamel - https://www.youtube.com/watch?v=6O5wkRsWirc&feature=youtu.be | |
11:05 - Palindrome - https://www.youtube.com/watch?v=dZINp1sMSaI | |
11:35 - First Repeating Letter - http://www.youtube.com/watch?v=EFPEmNi6ooY | |
12:05 - Utopian Tree - https://www.youtube.com/watch?v=PiGeQXKNiMo | |
12:35 - Nested Loops - http://www.youtube.com/watch?v=kLpE1cXZN8o | |
1:05- Rotate - http://www.youtube.com/watch?v=hcXxkDQ9qR4 |
A number of fonts are available by default based on the platform (e.g., Roboto on Android, Helvetica on iOS). See the full list here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Loops though every collection you defined in _config.yml and grabs the pages they contain; outputting titles. | |
{% endcomment %} | |
{% for collection in site.collections %} | |
{% assign name = collection.label %} | |
<h1>{{ name }}</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Secure File Permissions | |
# https://codex.wordpress.org/Changing_File_Permissions#.htaccess_permissions | |
# 600 -rw------- /home/user/wp-config.php | |
# 604 -rw----r-- /home/user/cgi-bin/.htaccess | |
# 600 -rw------- /home/user/cgi-bin/php.ini | |
# 711 -rwx--x--x /home/user/cgi-bin/php.cgi | |
# 100 ---x------ /home/user/cgi-bin/php5.cgi | |
# BEGIN Increases Max Upload Size | |
php_value upload_max_filesize 64M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ range first 3 (where (where .Site.Pages.ByDate.Reverse "Section" "posts") ".Title" "!=" .Title) }} | |
<!-- latest posts --> | |
{{ end }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class EmbeddedGist extends Component { | |
constructor(props) { | |
super(props); | |
this.gist = props.gist; | |
this.file = props.file; | |
this.stylesheetAdded = false; | |
this.state = { |
NewerOlder