Skip to content

Instantly share code, notes, and snippets.

zh-HK:
devise:
failure:
invited: "你有一個待處理的邀請, 請接受它以完成創建您的帳戶。"
invitations:
send_instructions: "邀請電子郵件已發送到%{email)。"
invitation_token_invalid: "提供嘅邀請令牌無效!"
updated: "你嘅密碼設置成功。 你而家已經登錄。"
updated_not_active: "你嘅密碼設置成功。"
no_invitations_remaining: "冇剩餘邀請"
@thattimc
thattimc / node-cheatsheet.md
Last active November 25, 2019 12:09
Generate secret key
node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { Box } from '@chakra-ui/core';
import PropTypes from 'prop-types';
import React from 'react';
function Template({ children, ...props }) {
return (
<React.Fragment>
@thattimc
thattimc / js-array-cheatsheet.md
Last active October 31, 2021 06:38
Javascript array cheatsheet

Creating an Array

const array = ['one', 'two', 'three'];
or
const array = new Array('one', 'two', 'three');

Get the array index