View use-shake-controller.ts
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 { MutableRefObject, useEffect, useMemo, useRef, useState } from 'react'; | |
import { Clock, Euler, MathUtils, Object3D, Vector3 } from 'three'; | |
import { SimplexNoise } from 'three-stdlib'; | |
import { ShakeController } from '@react-three/drei'; | |
import { useFrame } from '@react-three/fiber'; | |
export interface ShakeControllerParam { | |
max: number; | |
frequency: number; |
View sample_crash.json
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
{ | |
"environment": "production", | |
"extra": { | |
"crashed_process": "browser" | |
}, | |
"release": "Slack@4.13.0-alpha1", | |
"user": { | |
"ip_address": "{{auto}}" | |
}, | |
"tags": { |
View main.js
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
const {app, BrowserWindow} = require('electron') | |
let mainWindow | |
function createWindow () { | |
mainWindow = new BrowserWindow({ | |
width: 800, | |
height: 600, | |
show: false, | |
paintWhenInitiallyHidden: false, |
View index.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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
<link rel="stylesheet" type="text/css" href="./styles.css"> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<!-- All of the Node.js APIs are available in this renderer process. --> |
View index.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
<!-- Empty --> |
View how-to-use-it.tsx
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 Scene() { | |
return ( | |
<Canvas> | |
<OutlineItemsProvider> | |
<SomeMesh /> | |
<SomeMesh /> | |
<SomeMesh /> | |
<Effects /> | |
</OutlineItemsProvider> | |
</Canvas> |
View prompt-to-update-epic.ts
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
/** | |
* Shows a notification prompting users to restart when an update has been downloaded | |
* and we're ready to apply it. | |
*/ | |
export const promptToUpdateEpic: Epic<Action<ReleaseChannel | UpdateStatus>, State> = ( | |
action$, | |
store, | |
) => { | |
// Update status is redux state populated by autoUpdater events | |
const updateStatusChanged = action$.pipe( |
View main.js
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
const {app, BrowserWindow, webContents: WebContents} = require('electron') | |
const assert = require('assert') | |
let mainWindow | |
function createWindow () { | |
mainWindow = new BrowserWindow({ | |
width: 800, | |
height: 600, | |
webPreferences: { |
View index.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
<!-- Empty --> |
View index.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
<!-- Empty --> |
NewerOlder