Skip to content

Instantly share code, notes, and snippets.

View TroySchmidt's full-sized avatar

Troy Schmidt TroySchmidt

View GitHub Profile
@TroySchmidt
TroySchmidt / 0.cs
Created October 1, 2019 00:09 — forked from up1/0.cs
Selenium with C# (Waiting)
webdriver.FindElement(By.Id("search_button")).Click();
Thread.Sleep(5000);
IWebElement searchResult = webdriver.FindElement(By.Id("search_result"));
@TroySchmidt
TroySchmidt / settings.json
Last active September 12, 2019 17:07
VS Code Settings
{
"git.autofetch": true,
"git.confirmSync": false,
"files.autoSave": "onWindowChange",
"files.hotExit": "onExitAndWindowClose",
"git.enableSmartCommit": true,
"editor.minimap.enabled": false,
"zenMode.hideTabs": false,
"zenMode.hideStatusBar": false,
"javascript.autoClosingTags": false,
@TroySchmidt
TroySchmidt / typescript.json
Created October 8, 2018 13:51
TypeScript file snippets for VS Code
{
"Slice Reducer Function": {
"prefix": "slicereducer",
"body": [
"const ${1:property} = (state = initialState.${1:property}, action: Actions) => {",
" switch (action.type) {",
" default: {",
" return state;",
" }",
" }",
@TroySchmidt
TroySchmidt / typescriptreact.json
Last active July 15, 2019 12:38
Typescript React VS Code Snippets
{
"SvgIcon Wrapper Component": {
"prefix": "svgicon",
"body": [
"/* tslint:disable:max-line-length */",
"import * as React from 'react';",
"import { SvgIcon } from 'material-ui';",
"",
"const ${1:CustomIcon} = props => (",
" <SvgIcon {...props} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 35 35\">",