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
function createRalmApp() { | |
return new Realm.App({ | |
id: 'xxxxxx', | |
}) | |
} | |
function createRalm(user: Realm.User | null) { | |
const realmConfig = { | |
schema: [ | |
// your schemas.. |
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
{{define "node"}} | |
// ... | |
{{range $node := $.Nodes}} | |
{{$requiredFieldIndices := xrange 0}} | |
{{range $index, $field := $node.Fields}} | |
{{if and (not $field.Optional) (not $field.Default) (not $field.Immutable) -}} | |
{{$requiredFieldIndices = append $requiredFieldIndices $index}} | |
{{end}} |
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
declare module 'react-table' { | |
const val: ReactTable | |
export default val | |
} | |
declare module ReactTable { | |
import * as React from 'react' | |
type AccessorFunction = (row: object) => any | |
type Accessor = string | string[] | object | AccessorFunction |
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
<?php | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/zf2 for the canonical source repository | |
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ | |
namespace Zend\Form\Element; |