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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
<span class="stamp">proposal</span> | |
<span class="stamp is-nope">Declined</span> | |
<span class="stamp is-approved">Approved</span> | |
<span class="stamp is-draft">Draft</span> |
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
// Copied & pasted and maybe modified from `material-ui` | |
/* eslint-disable no-console */ | |
const path = require("path"); | |
const fse = require("fs-extra"); | |
const glob = require("glob"); | |
const packagePath = process.cwd(); | |
const buildPath = path.join(packagePath, "./lib"); | |
const srcPath = path.join(packagePath, "./src"); |
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 useQuery from "./useQuery"; | |
export default useQuery; |
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
git fetch -p && for branch in `git branch -v | egrep '^\S*\s*\S*\s*\[gone\]' | awk '{print $1}'`; do git branch -D $branch; done; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>iFrame srcdoc test</title> | |
</head> | |
<body> | |
<div id="target">Hi.</div> | |
<iframe srcdoc="<!DOCTYPE html> | |
<html> | |
<head> |
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 /users { | |
read() { true } | |
// `.isAdmin` is not writable by any users including admin user. | |
index() { ['email'] } | |
/{uid} { | |
write() { (isCreate(this) || isCurrentUser(uid) || isAdmin()) && (this.isAdmin == null && prior(this).isAdmin == null) } | |
} | |
} |
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
{ | |
"rules": { | |
"users": { | |
"$uid": { | |
".write": "(data.val() == null || auth != null && auth.uid == $uid || root.child('users').child(auth.uid).child('isAdmin').val() == true) && newData.child('isAdmin').val() == null && data.child('isAdmin').val() == null" | |
}, | |
".read": true, | |
".indexOn": [ | |
"email" | |
] |
NewerOlder