This file contains 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 { useCount, useIncrement, useDecrement } from './store.Count' | |
export default function Counter () { | |
const count = useCount() | |
const increment = useIncrement() | |
const decrement = useDecrement() | |
return ( | |
<div> | |
<div>Count: {count}</div> |
This file contains 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
function decorateRBAC(fn) { | |
console.log('----start decorate-----'); | |
console.log(...arguments); | |
console.log('fn-name:', fn.name); | |
console.log('----end-----'); | |
return fn; | |
} | |
function withValidation(fn) { | |
const handlerName = fn.name; |
This file contains 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
basicSelect = () => { | |
return knex('workouts') | |
.select('*') | |
} | |
basicFilter = (knex) => { | |
return knex | |
.where('workout_id', 1) | |
} |
This file contains 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
#!/bin/bash | |
# Amazon_Linux-512MB-Virginia-1-Personal | |
# 512 MB RAM, 1 vCPU, 20 GB SSD | |
# Amazon Linux | |
# Virginia, Zone A (us-east-1a) | |
# Exit on any error (non-zero return code) | |
set -e | |
# Below commands are easier to run via root. |
A Pen by Stephen Huh on CodePen.
This file contains 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
body#bootstrap-overrides | |
header#layout-header | |
a(href="http://www.threadgenius.co", target="_blank") | |
img(src="https://s3.amazonaws.com/threadgenius-web-assets/icon-small.png").logo | |
//TODO - add sidebar as needed for extensibility | |
//TODO - extract main into a section if parallax is going to be sought after | |
main#layout-main.container | |
//TODO make text slightly longer by expanding container or widening col | |
.row | |
h5.col-xs-8.col-xs-offset-4.blurb |
A Pen by Stephen Huh on CodePen.
A Pen by Stephen Huh on CodePen.
A Pen by Stephen Huh on CodePen.
NewerOlder