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
// 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, |
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
// 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', |
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
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', |
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": 2, | |
"clips": [ | |
{ | |
"value": "brickStyle", | |
"createdAt": 1610620121245, | |
"copyCount": 1, | |
"useCount": 1, | |
"language": "typescript", | |
"createdLocation": { |
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
{ | |
"hotkey": "alt+space", | |
"theme": "linonetwo/zazu-light-theme", | |
"displayOn": "detect", | |
"blur": false, | |
"plugins": [ | |
{ | |
"name": "linonetwo/zazu-clipboard", | |
"variables": { | |
"ClipboardKey": "ctrl+v" |
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
const xxx = require('./xxx'); | |
module.exports = xxx; |
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
fetch(`http://localhost:${env.ankiPort || 8765}`, { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json', | |
}, | |
body: JSON.stringify({ action: 'addNote', version: 6, params }), | |
}).catch(error => { | |
pluginContext.console.log('error', 'failed adding to anki', { error, errorString: String(error) }); | |
}) |
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
const zipResults = _.flow([_.zip, _.flatten, _.compact]); |
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
/** slug field: let parent folder create a resource named ${slug} */ | |
const slug = basename(url); | |
const parentFolder = dirname(pathName); | |
const parentUrl = `https://${hostName}${parentFolder}`; | |
/** link field: links saparated by comma, and key-value saparated by semicolon; | |
* type means the suggested content-type, describedby means the suggested meatdata file | |
*/ | |
const link = `<http://www.w3.org/ns/ldp#Resource>; rel="type", <${slug}.meta>; rel="describedby"`; |
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
export function useScene( | |
canvasRef: React.RefObject<HTMLCanvasElement>, | |
cameraRef: React.MutableRefObject<Camera | undefined>, | |
currentAirplaneObject, | |
currentDetectedPointObjects: Mesh[], | |
) { | |
// set up scene and model | |
const sceneRef = useRef<Scene>(); | |
useEffect(() => { | |
// 如果这个 Effect 被调用了,说明场景需要刷新 |
OlderNewer