Component Library:
css modules
```css` .button { width: 1em;
Component Library:
css modules
```css` .button { width: 1em;
public class TargetLinkExtension : IMarkdownExtension | |
{ | |
public void Setup(MarkdownPipelineBuilder pipeline) | |
{ | |
} | |
public void Setup(MarkdownPipeline pipeline, IMarkdownRenderer renderer) | |
{ | |
var htmlRenderer = renderer as HtmlRenderer; | |
if (htmlRenderer != null) |
function dedupeWithDictionary(numbers) { | |
return Object.keys(numbers.reduce((accum, current) => { | |
accum[current] = true | |
return accum | |
}, {})) | |
} | |
function dedupeWithSet(numbers) { | |
return new Set(numbers).values() |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Text; | |
using UnityEngine; | |
using UnityEngine.Networking; | |
public class Main | |
{ | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
static void OnBeforeSceneLoadRuntimeMethod() |
import axe from 'axe-core'; | |
function debounce(fn, wait) { | |
let timeout = null; | |
return function (...args) { | |
const next = () => fn.apply(this, args); | |
clearTimeout(timeout); | |
timeout = setTimeout(next, wait); | |
}; | |
} |
const { performance, PerformanceObserver } = require('perf_hooks'); | |
const PluginName = "TimeReporterPlugin"; | |
class TimeReporterPlugin { | |
constructor(filterPattern = /HtmlWebpackPlugin|mini-css-extract-plugin/i) { | |
this.FilterPattern = filterPattern; | |
} | |
apply(compiler) { | |
let _timeEvents = []; |
import React from "react" | |
import { useStaticQuery, graphql } from "gatsby" | |
import Img from "gatsby-image" | |
const Image = ({ imgName }) => { | |
const data = useStaticQuery(graphql` | |
query images { | |
allFile(filter: { sourceInstanceName: { eq: "images" } }) { | |
nodes { | |
name |
if(window.IntersectionObserver) { | |
document.addEventListener("DOMContentLoaded", function() { | |
var lazyImages = [].slice.call(document.querySelectorAll(".lazy")); | |
var lazyImageObserver = new IntersectionObserver(function(entries, observer) { | |
entries.forEach(function(entry) { | |
if (entry.isIntersecting) { | |
var lazyImage = entry.target; | |
if(lazyImage.dataset.src) { | |
lazyImage.src = lazyImage.dataset.src; | |
} |
brew uninstall --ignore-dependencies node@10 | |
brew uninstall --ignore-dependencies node | |
brew uninstall --ignore-dependencies yarn | |
brew uninstall --ignore-dependencies icu4c | |
brew install node@10 | |
brew install --ignore-dependencies yarn | |
brew link --overwrite --force node@10 | |
brew link --overwrite yarn |
javaCount=`git diff --cached --name-status | grep -i .java | wc -l | awk '{print $1}'` | |
if [ $javaCount -eq 0 ]; | |
then | |
exit 0 | |
else | |
exec ~/cargurus/cg-main/cargurus-build/local/devbox-push/run-checkstyle.sh | |
fi |