Skip to content

Instantly share code, notes, and snippets.

View linonetwo's full-sized avatar

lin onetwo linonetwo

View GitHub Profile
@linonetwo
linonetwo / clipboard.history.json
Last active March 24, 2021 02:49
[Visual Studio Code Settings Sync] autogenerated by Visual Studio Code Settings Sync Extension #config
{
"version": 2,
"clips": [
{
"value": "brickStyle",
"createdAt": 1610620121245,
"copyCount": 1,
"useCount": 1,
"language": "typescript",
"createdLocation": {
@linonetwo
linonetwo / resolver.js
Last active May 24, 2019 07:53
Get fields in fragment of a #graphql query
async producers(_: any, __: any, ___: any, { fragments }: Object) {
const fields = flatten(values(fragments).map(data => data.selectionSet.selections.map(f => f.name.value)));
if (
intersection(fields, [
'owner',
'totalVotes',
'producerKey',
'isActive',
'url',
'unpaidBlocks',
@linonetwo
linonetwo / .hyper.js
Last active May 24, 2019 07:01
hyper term config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@linonetwo
linonetwo / .hyper.js
Last active May 24, 2019 07:47
[HyperTerm setting] #config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
hyperTransparentDynamic: {
alpha: 0.1 // default 50%
},
// Choose either "stable" for receiving highly polished,