Skip to content

Instantly share code, notes, and snippets.

View greybax's full-sized avatar
🎯
Focusing

Aleksandr Filatov greybax

🎯
Focusing
View GitHub Profile
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Asp.net_sample_events.aspx.cs" Inherits="AspNetSampleEvents._Default" %>
<asp:TextBox runat="server" ID="textBox" Text="Sample text"> </asp:TextBox>
<asp:Button runat="server" ID="button" Text="Click me"> </asp:Button>
</asp:Content>
@greybax
greybax / settings.json
Last active September 28, 2017 15:16
My vscode settings
// Place your settings in this file to override the default settings
{
// Editor
// The number of spaces a tab is equal to.
"editor.tabSize": 2,
// Controls whether the editor should render whitespace characters
"editor.renderWhitespace": "all",
// Controls whether the editor should render indent guides
"editor.renderIndentGuides": true,
// Controls if the minimap is shown

Revert string 'abc' -> 'cba'

str.split('').reverse().join('')

Search substring in string

let a = 'Happy New Year 2019!';
let b = 'Year 2019';
let c = 'Year 2018';