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
App = -> | |
$debug = $ '#debug' | |
log = (t)-> $debug.html t | |
W = 400 | |
H = 300 | |
VIEW_ANGLE = 45 | |
ASPECT = W / H | |
NEAR = .1 |
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
Show hidden characters
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
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
public class GUIScreenLoader | |
{ | |
private Transform container; | |
private MainNavGUIConfig config; // a ScriptableObject with a list of easily editable components | |
// it also contains a GUI Scene reference, for more control over | |
// resource loading. | |
public GUIScreenLoader(MainNavGUIConfig config, Transform container) | |
{ | |
this.config = 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
$ npm i -g lana-cli | |
# or | |
$ yarn global add lana-cli |
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
// Add this to your VSCode snippets | |
"import": { | |
"prefix": "imm", | |
"description": "ES module import", | |
"body": [ | |
"import ${2:scope} from '${1:moduleName}'", | |
"${3}" | |
] | |
}, |
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 { Observable, Subscription } from 'rxjs' | |
import { | |
Request, | |
Response, | |
Next | |
} from 'restify' | |
export interface RequestContext { | |
req: Request, | |
res: Response, |
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 Joi from 'joi'; | |
import Events from '../events'; | |
const route = { | |
handler: ({params: {props}}, reply) => { | |
let parsedData; | |
try { | |
parsedData = JSON.parse(decodeURIComponent(props)); | |
} catch (err) { |
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 { useEffect } from 'react' | |
export const useRainbowBg = () => | |
useEffect(() => { | |
const cb = () => { | |
const viewportHeight = window.innerHeight | |
const contentHeight = document.body.getBoundingClientRect().height | |
const viewportsPerRotation = Math.min( | |
3, | |
contentHeight / viewportHeight |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.