This file contains 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
**Jeff Escalante** | |
# Dato & Contentful | |
There are many areas in which I'd consider Dato to be much stronger of a CMS than | |
contentful, and one in which I'd consider the opposite to be the case. I will try to be as | |
balanced as possible with this overview, as I am not employed by dato or anything ‐ my | |
goal is to ensure that my clients and developers get the best possible experience working | |
with a CMS. |
This file contains 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
3D printing | |
Abseiling | |
Acting | |
Action figure | |
Adventure racing | |
Aerobatics | |
Aeromodeling | |
Aggressive inline skating | |
Aid climbing | |
Aikido |
This file contains 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 { connect } from 'datocms-plugin-sdk'; | |
connect({ | |
buildItemPresentationInfo(item, ctx) { | |
// we only want to customize the presentation for records of a specific | |
// model | |
if (item.relationships.item_type.data.id !== '810975') { | |
return undefined; | |
} |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
struct KeyPoint | |
{ | |
char key; | |
char points; | |
}; | |
struct KeyPoint rules[] = { |
This file contains 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
// First option: | |
// This will dump every content of a DatoCMS space in the "backup" directory | |
// To be used with the `dato dump` command (see https://docs.datocms.com/other/basic-usage.html) | |
module.exports = (dato, root, i18n) => { | |
i18n.availableLocales.forEach(locale => { | |
root.directory(`backup/${locale}`, localeDir => { | |
dato.itemTypes.forEach(itemType => { | |
localeDir.createDataFile( | |
`${itemType.apiKey}.json`, |
This file contains 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 withLayoutProps from 'utils/withLayoutProps'; | |
export const getStaticProps = withLayoutProps(async ({ params: { id } }) => { | |
const pokemon = await api.getPokemonById(id); | |
return { | |
props: { pokemon }, | |
}; | |
}); |
This file contains 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
{ | |
"title": "Lettere accentate", | |
"rules": [ | |
{ | |
"description": "Option + e = è", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { |
This file contains 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
snippet oo outline-offset | |
outline-offset: ${1} | |
snippet le left | |
left: ${1} | |
snippet atf animation-timing-function | |
animation-timing-function: ${1} | |
snippet lst list-style-type | |
list-style-type: ${1} | |
snippet cw column-width | |
column-width: ${1} |
This file contains 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
// https://nec.is/writing/transform-your-codebase-using-codemods/ | |
export default function transformer(file, api) { | |
const j = api.jscodeshift; | |
const root = j(file.source); | |
root.find( | |
j.ExportDefaultDeclaration, | |
{ | |
declaration: { |
This file contains 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
require 'formula' | |
class Sshpass < Formula | |
url 'http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz' | |
homepage 'http://sshpass.sourceforge.net/' | |
md5 'c52d65fdee0712af6f77eb2b60974ac7' | |
def install | |
system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
"--prefix=#{prefix}" |
NewerOlder