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
Stopwatch $stopwatch$ = new Stopwatch(); | |
stopwatch.Start(); | |
$SELECTION$ | |
$stopwatch$.Stop(); | |
Console.WriteLine("EXEC TIME {0}", $stopwatch$.ElapsedMilliseconds); | |
$END$ |
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
<?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 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 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 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 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 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 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', | |
) |
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
#!/bin/sh | |
cd /var/opt/gitlab/gitlab-rails/working | |
exec 2>&1 | |
exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \ | |
-U git -u git \ | |
/opt/gitlab/embedded/bin/bundle exec sidekiq \ | |
# ADD THE LINE BELOW AND SET NUMBER OF WORKERS |
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
<?xml version="1.0" encoding="utf-8"?> | |
<item> | |
<title>New version 2.13.2 available!</title> | |
<version>2.13.2</version> | |
<url>https://github-windows.s3.amazonaws.com/GitHubSetup.exe</url> | |
<changelog>https://windows.github.com/release-notes.html</changelog> | |
</item> |
OlderNewer