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
import React, { useEffect, useRef, useState } from 'react'; | |
export const Counter: React.FC = () => { | |
const [count, setCount] = useState(0); | |
const previousValueRef = useRef(count); | |
const isMountRef = useRef(true); | |
console.log('Counter called'); | |
console.log(`Previous value = ${previousValueRef.current}`); |
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
# Clean out the Bazel cache | |
bazel clean --expunge --async |
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
#!/bin/bash | |
# Interactive disk utilization utility | |
ncdu / | |
# report file system disk space usage, -h = human-readable | |
df -h |
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
import { COUNT_INCREMENTED } from "./countReducer"; | |
import useCount from "./useCount"; | |
import useValueDifference from "./useValueDifference"; | |
const Counter = () => { | |
console.log("Counter"); | |
const [count, dispatchCount] = useCount(); | |
useValueDifference({ count }); | |
return ( | |
<> |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "WebdriverIO", | |
"type": "node", | |
"request": "launch", | |
"protocol": "inspector", | |
"address": "localhost", | |
"port": 5859, |
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
<?php | |
// Example formatting for PHP/HTML Templates. | |
// Use WordPress coding standards: https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/ | |
?> | |
<?php | |
/* | |
* Order of classes: | |
* BEM element and modifiers, BEM block and modifiers, Bootstrap layout/grid classes, state/javascript classes. | |
*/ |
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
#!/usr/bin/env bash | |
# Variables | |
DB_FILENAME= | |
LOCAL_DIR= | |
LOCAL_UPLOADS_DIR= | |
SERVER_DIR= | |
SERVER_UPLOADS_DIR= | |
SERVER_THEME_DIR= | |
LOCAL_DB_PASS= | |
LOCAL_DB_USER= |
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
chown -R [username]:cndls-admins [directory] | |
cd [directory] | |
find ./ -type d -exec chmod 775 {} \; | |
find ./ -type f -exec chmod 664 {} \; |
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
body { | |
overflow-y: scroll; | |
&.js-nav-menu-open, | |
&.js-social-menu-open, | |
&.js-search-menu-open { | |
position: fixed; | |
width: 100%; | |
height: 100%; |
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
<div class="hero js-scale-media-container"> | |
<video class="hero__video js-scale-media" autoplay playsinline loop muted> | |
<source src="fpo/video/toky_background_sd_640x360.mp4" type="video/mp4"> | |
</video> | |
<div class="hero__overlay-block"> | |
<div class="hero__slash-label animate-slide-up-100px-from-below-fade-in">At Toky</div> | |
<h1 class="hero__header-1 animate-slide-up-100px-from-below-fade-in-first-delay">We believe our world can be more thoughtful, more humane, and more beautiful.</h1> | |
<a href="/what-we-do/" class="hero__link-button animate-slide-up-100px-from-below-fade-in-second-delay">About TOKY</a> | |
</div> | |
<a href="#expertise" aria-label="Scroll to the next section."> |
NewerOlder