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
[ | |
{ | |
"metadata": { | |
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29", | |
"publisherId": "formulahendry.auto-close-tag", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "auto-close-tag", | |
"publisher": "formulahendry", | |
"version": "0.5.7" |
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
use std::fs::read_dir; | |
use std::path::PathBuf; | |
fn main() -> std::io::Result<()> { | |
println!("Hello, world!"); | |
let root_path = PathBuf::from("."); | |
let coll = walk_files(root_path, None)?; |
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 React from 'react'; | |
import UseStateDemo from './UseStateDemo'; | |
import UseEffectDemo from './UseEffectDemo'; | |
import './App.css'; | |
export default () => ( | |
<div style={{ margin: '20px auto', padding: '20px', width: 200 }}> | |
<UseStateDemo /> | |
<UseEffectDemo /> | |
</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 useLazyAnalytics() { | |
const [value, setValue] = useState(() => { | |
return () => { | |
const raceError = new Error('handler called before loaded'); | |
bugsnagClient.notify(raceError); | |
}; | |
}); | |
useEffect(() => { | |
import('./lazyAnalytics').then((mod) => { |
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
async function rankNonDoneIssuesToTopInEpic(dryRun = true) { | |
console.warn(`Dry Run: ${dryRun ? 'ENABLED' : 'DISABLED'}`); | |
const issuesInEpic = Array.from(document.querySelectorAll('.nav.status')) | |
.filter(el => !['Resolved', 'Closed'].includes(el.textContent.trim())) | |
// Go from bottom up so the order remains the same | |
.reverse(); | |
const sleep = (time = 1000) => | |
new Promise(resolve => setTimeout(resolve, time)); |
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
-- watch for changes | |
hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", hs.reload):start() | |
-- | |
-- start custom config | |
-- |
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
path: | |
source: ./ | |
destination: ./_site | |
plugins: ./_plugins | |
themes: ./_themes | |
# Reptar now has support for data files! | |
+ data: ./_data | |
file: | |
# Support for File defaults has been added! |
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 React, { | |
Component, | |
ART, | |
} from 'react-native'; | |
const { | |
Group, | |
Shape, | |
Surface, | |
} = ART; |
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
// http://www.movable-type.co.uk/scripts/sha1.html | |
// based off http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf | |
// minified size: 1320 bytes | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
/* SHA-1 implementation in JavaScript | (c) Chris Veness 2002-2013 | www.movable-type.co.uk */ | |
/* - see http://csrc.nist.gov/groups/ST/toolkit/secure_hashing.html */ | |
/* http://csrc.nist.gov/groups/ST/toolkit/examples.html */ |
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
// SLATE CONFIG | |
var laptopMonitor = "1"; | |
var externalMonitor = "0"; | |
// | |
// Configs | |
// | |
slate.configAll({ | |
// 'windowHintsDuration': '5, |
NewerOlder