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
Shader "AnimatedGradientShader" | |
{ | |
Properties | |
{ | |
_ColorA ("ColorA", Color ) = (0, 0, 0, 1) | |
_ColorB ("ColorB", Color ) = (1, 1, 1, 1) | |
_MainTex ("Texture", 2D) = "white" {} | |
_Frequency ("Frequency", Float) = 1 | |
_Offset ("Offset", Float) = 0 | |
_AnimationSpeed ("Animation Speed", Range(0, 255)) = 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
Shader "HelloWorldShader" | |
{ | |
// Parameters passed in through Unity | |
Properties { | |
_Color ("Color", Color ) = (1, 1, 1, 1) | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } |
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 { Story, Meta } from '@storybook/react/types-6-0'; | |
import { Provider } from 'react-redux'; | |
import store from '../../../../store/store'; | |
import SentinelDrawer from './sentinel-drawer'; | |
export default { | |
title: 'Sentinel Drawer' |
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
{ | |
"Simple react component": { | |
"prefix": "rc", | |
"body": [ | |
"import React from 'react';", | |
"", | |
"interface $1Props {", | |
"}", | |
"", | |
"const $1 = (props: $1Props) => {", |
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
"Storybook": { | |
"prefix": "rstory", | |
"body": [ | |
"import React from 'react';", | |
"import { Story, Meta } from '@storybook/react/types-6-0';", | |
"import { Provider } from 'react-redux';", | |
"import store from '../../../../store/store';", | |
"", | |
"export default {", | |
" title: '$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
"React test": { | |
"prefix": "rtest", | |
"body": [ | |
"import * as React from 'react';", | |
"import { createStore } from 'redux';", | |
"import { render, screen } from '@testing-library/react';", | |
"import '@testing-library/jest-dom/extend-expect';", | |
"", | |
"import { Provider } from 'react-redux';", | |
"import { state } from '../../../../store/root-reducer';", |
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
"React Connected Component": { | |
"prefix": "rcc", | |
"body": [ | |
"import React, { useState, useEffect } from 'react';", | |
"import styled from 'styled-components'", | |
"import { createStructuredSelector } from 'reselect';", | |
"", | |
"", | |
"const connect = require('react-redux').connect", | |
"", |
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 { MapLayer, withLeaflet } from 'react-leaflet'; | |
import L from 'leaflet'; | |
class LeafletEditableCircle extends MapLayer { | |
_attachListener(circle) { | |
var map = this.props.leaflet.map; |
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 { MapLayer, withLeaflet } from 'react-leaflet'; | |
import L from 'leaflet'; | |
class LeafletEditableCircle extends MapLayer { | |
createLeafletElement(props) { | |
var map = this.props.leaflet.map | |
var circle = L.circle(this.props.center, this.props.radius); |
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 } from 'react' | |
import LeafletEditableCircle from './leaflet-editable-circle'; | |
export default class ReactLeafletEditableCircle extends Component { | |
render() { | |
return ( | |
<LeafletEditableCircle | |
center={this.props.center} |
NewerOlder