Skip to content

Instantly share code, notes, and snippets.

import React from 'react';
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import Page from '../components/page';
export class Index extends React.Component {
static contextTypes = {
store: PropTypes.object,
}
// Expected (note that 0 on the second line is directly under 9 on the first line)
0 9 8 7 6 5 4 3 2 1 2 3 4 5 6 7 8 9 0
0 9 8 7 6 5 4 3 2 1 2 3 4 5 6 7 8 9 0
0 9 8 7 6 5 4 3 2 1 2 3 4 5 6 7 8 9 0
0 9 8 7 6 5 4 3 2 1 2 3 4 5 6 7 8 9 0
0 9 8 7 6 5 4 3 2 1 2 3 4 5 6 7 8 9 0
0 9 8 7 6 5 4 3 2 1 2 3 4 5 6 7 8 9 0
0 9 8 7 6 5 4 3 2 1 2 3 4
d=>{for(a=e=b=0,c='';a<((4*d.length+2)/3|0);c+=`${x='ABCDEFGHIJKLMNOPQRSTUVWXYZ'}${x.toLowerCase()}0123456789+/`[b>>2*(++a&3)&63])a&3^3&&(b=b<<8^d[e++]);while(a++&3)c+="=";return c}