This file contains hidden or 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
Stopwatch $stopwatch$ = new Stopwatch(); | |
stopwatch.Start(); | |
$SELECTION$ | |
$stopwatch$.Stop(); | |
Console.WriteLine("EXEC TIME {0}", $stopwatch$.ElapsedMilliseconds); | |
$END$ |
This file contains hidden or 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
<Style TargetType="{x:Type Button}"> | |
<Setter Property="Background" Value="Green"/> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="{x:Type Button}"> | |
<Border Background="{TemplateBinding Background}"> | |
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> | |
</Border> | |
</ControlTemplate> | |
</Setter.Value> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<style-scheme version="1.0" name="Eartsong"> | |
<style name="Text" foreground="#ebd1b7" background="#36312c"/> | |
<style name="Link" foreground="#66d9ef"/> | |
<style name="Selection" foreground="#e6e5e2" background="#161A1F"/> | |
<style name="LineNumber" foreground="#a0a19c" background="#272822"/> | |
<style name="SearchResult" foreground="#ffffff" background="#2572b8"/> | |
<style name="SearchScope" foreground="#000000" background="#e2efff"/> | |
<style name="Parentheses" foreground="#ff0000" background="#515d6a"/> | |
<style name="CurrentLine" background="#3e3d32"/> |
This file contains hidden or 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
var dpiXProperty = typeof(SystemParameters).GetProperty("DpiX", BindingFlags.NonPublic | BindingFlags.Static); | |
var dpiYProperty = typeof(SystemParameters).GetProperty("Dpi", BindingFlags.NonPublic | BindingFlags.Static); | |
var dpiX = (int)dpiXProperty.GetValue(null, null); | |
var dpiY = (int)dpiYProperty.GetValue(null, null); |
This file contains hidden or 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 static void RegisterBundles(BundleCollection bundles) | |
{ | |
bundles.IgnoreList.Clear(); | |
AddDefaultIgnorePatterns(bundles.IgnoreList); | |
} | |
public static void AddDefaultIgnorePatterns(IgnoreList ignoreList) | |
{ | |
if (ignoreList == null) | |
{ |
This file contains hidden or 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
using System; | |
using System.Globalization; | |
using System.Linq; | |
using System.Threading; | |
using System.Windows; | |
using System.Windows.Markup; | |
namespace WpfApplication1 | |
{ | |
/* |
This file contains hidden or 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
body, .darcula .sb-row, .darcula .sb-row, .darcula .sb-board-title { | |
background: #303030 !important; | |
color: #eeeeee !important; | |
} | |
.yt-header__create-btn > .ring-menu__item__i { | |
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ef9331), to(#e9701d)) !important; | |
} | |
.ring-menu, .jt-menu-button, .ring-dropdown__item, .suggest, .inputWrapper > input { |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
__author__ = 'Rustam Safin' | |
import threading | |
from Queue import Queue | |
import time | |
import random | |
import logging | |
This file contains hidden or 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
from pympler import refbrowser | |
ib = refbrowser.InteractiveBrowser(root) | |
ib.main() |
This file contains hidden or 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
from multiprocessing import Pool, cpu_count | |
import time | |
import random | |
import logging | |
from pprint import pprint | |
logging.basicConfig(level=logging.DEBUG, | |
format='(%(threadName)-10s) %(message)s', | |
) |