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
{ | |
"name": "bookism", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"scripts": { | |
"scss": "node-sass --output-style compressed --watch src/scss -o dist/css", | |
"serve": "browser-sync start --proxy 0.0.0.0:9999 --files 'dist/css/*.css'", | |
"clean": "rimraf dist/{css/*,js/*}", | |
"lint": "eslint src/js || true", |
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
black="\033[0;30m" | |
blackb="\033[1;30m" | |
white="\033[0;37m" | |
whiteb="\033[1;37m" | |
red="\033[0;31m" | |
redb="\033[1;31m" | |
green="\033[0;32m" | |
greenb="\033[1;32m" | |
yellow="\033[0;33m" | |
yellowb="\033[1;33m" |
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
// styles for this are based on Bootstrap 3.3.7 | |
import React, { Component } from "react"; | |
import ReactDOM from "react-dom"; | |
import { withProps } from "recompose"; | |
const users = [ | |
{ "name": "Homer Jay", "status": "pending" }, | |
{ "name": "El Barto", "status": "active" }, | |
{ "name": "SideshowBob", "status": "active" } | |
]; |
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
// just translated from the php version (I have to optimise it) | |
function generatePassword (length) { | |
if(!length) length = 8; | |
var sets = ['abcdefghjkmnpqrstuvwxyz', 'ABCDEFGHJKMNPQRSTUVWXYZ', '23456789', '~!@#$^*()_.-=+']; | |
var all = ''; | |
var password = ''; | |
sets.forEach(function(set){ | |
set = shuffle(set); | |
password += set[0]; |