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
export default { | |
title: 'About Page', | |
name: 'about_page', | |
type: 'document', | |
fields: [ | |
{ | |
title: 'Title', | |
name: 'title', | |
type: '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 * as React from 'react' | |
import { Box, Flex } from 'theme-ui' | |
import { ResponsiveStyleValue } from '@theme-ui/css' | |
import { BoxProps } from '@theme-ui/components' | |
interface Props extends BoxProps { | |
gap?: ResponsiveStyleValue<number> | |
dividers?: boolean | |
dividerColor?: ResponsiveStyleValue<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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.16862745583057404</real> |
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
const secrets = { | |
LASTFM_KEY: '', | |
LASTFM_USER: '', | |
} | |
let albums = [] | |
fetch( | |
`https://ws.audioscrobbler.com/2.0/?method=user.gettopalbums&user=${ | |
secrets.LASTFM_USER |
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
// Convert boolean and integer strings to literals | |
// convertString("true") => true | |
// convertString("12") => 12 | |
// convertString("string") => "string" | |
function convertString(str) { | |
try { | |
JSON.parse(str); | |
} catch { | |
return str; | |
} |
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
{ | |
"path": "cz-conventional-changelog" | |
} |
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
export function queryString (el, string) { | |
// Check if el is a link | |
if (!el.href || (el.protocol !== 'http:' && el.protocol !== 'https:')) return | |
// Check if link host does not match current window host | |
if (el.host !== window.location.host) { | |
// If link already has a query string add to it, else create one | |
if (el.search) { | |
el.search += '&' + string | |
} else { |
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
// @link http://codepen.io/lowmess/pen/JXvNVp?editors=0011 | |
// this is a bad idea. | |
Array.prototype.fizzbuzz = function () { | |
for (var i = 1; i <= this.length; i++) { | |
var fizzBuzzString = '' | |
if (i % 3 === 0) fizzBuzzString = 'Fizz' | |
if (i % 5 === 0) fizzBuzzString += 'Buzz' |
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
node_modules | |
_build |
NewerOlder