This is a temporary solution. Might change in the near future, this depends on how create-react-app will implement testing.
create-react-app quick-test-example
cd quick-test-example
npm run eject
<h1>Simple Pure CSS Drop Down Menu</h1> | |
<nav id="primary_nav_wrap"> | |
<ul> | |
<li class="current-menu-item"><a href="#">Home</a></li> | |
<li><a href="#">Menu 1</a> | |
<ul> | |
<li><a href="#">Sub Menu 1</a></li> | |
<li><a href="#">Sub Menu 2</a></li> | |
<li><a href="#">Sub Menu 3</a></li> | |
<li><a href="#">Sub Menu 4</a> |
Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)
Alter the port the script talks to from 8000 to 80:
}).listen(80);
server { | |
index index.php; | |
set $basepath "/var/www"; | |
set $domain $host; | |
# check one name domain for simple application | |
if ($domain ~ "^(.[^.]*)\.dev$") { | |
set $domain $1; | |
set $rootpath "${domain}"; |
#!/bin/bash | |
# file: ttfb.sh | |
# curl command to check the time to first byte | |
# ** usage ** | |
# 1. ./ttfb.sh "https://google.com" | |
# 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com" | |
curl -o /dev/null \ | |
-H 'Cache-Control: no-cache' \ | |
-s \ |
/* begin table creation */ | |
create table department | |
(dept_id smallint unsigned not null auto_increment, | |
name varchar(20) not null, | |
constraint pk_department primary key (dept_id) | |
); | |
create table branch | |
(branch_id smallint unsigned not null auto_increment, |
//https://egghead.io/lessons/javascript-add-a-browser-build-to-an-npm-module | |
import { join } from "path"; | |
export default { | |
entry: "./src/index.js", | |
output: { | |
path: join(__dirname, "dist"), | |
libraryTarget: "umd", | |
library: "starWarsNames" | |
}, |
First principles battery
what are the materials constituents of batteries
what is spot market value of the material constituents
Cobalt, nickel, aluminium, carbon and polymers for separation and steel can.
Break that down on a material basis and say okay if we bought that in London metal exchange, what would each of those things cost. Its $80 per kilowatt hour
#!/bin/bash | |
FILE=$1 | |
if [[ -f $FILE ]]; then | |
git filter-branch -f --index-filter "git rm -r --cached $FILE --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all | |
else | |
echo File required | |
fi |