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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"type": "text", | |
"style": "plain", |
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
def func(): | |
raise ConnectionError | |
# 1 вариант - обрабатывает и подавляет исключение | |
try: | |
func() | |
except ConnectionError as exc: | |
print('exception: ', type(exc), exc) | |
# получите сообщение: | |
# exception: <class 'ConnectionError'> |
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 Serilog; | |
using Serilog.Core; | |
using Serilog.Events; | |
Log.Logger = new LoggerConfiguration() | |
.WriteTo.Console(formatProvider:new GuidFormatter()) | |
.Destructure.With<GuidDestructuringPolicy>() | |
.Destructure.ByTransforming<CustomClass>(Helper.ToString) | |
.Destructure.ByTransforming<CustomStruct>(Helper.ToString) | |
.CreateLogger(); |
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
<# | |
.SYNOPSIS | |
Generates a project change log file. | |
.LINK | |
Script posted over: | |
http://open.bekk.no/generating-a-project-change-log-with-teamcity-and-powershell | |
#> | |
# Where the changelog file will be created | |
#$changelogFile = "%system.teamcity.build.tempDir%\changes_%teamcity.build.id%.txt" |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Controls; | |
using DevExpress.Xpf.Grid; | |
using GUI.Params.DynamicTable.Impl; |
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 distutils.core import setup | |
from distutils.dir_util import copy_tree | |
from py2exe.build_exe import py2exe | |
import glob | |
import os | |
import zlib | |
import shutil | |
import time | |
import shutil | |
import enthought.tvtk |
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
private static function getSpriteImpl(filename : String, width : Float, | |
resize : IResizeBitmapData) : FlxSprite | |
{ | |
var key = resize.key(filename, width); | |
if(!FlxG.bitmap.checkCache(key)) | |
{ | |
if(cacheWarning) | |
{ | |
trace([filename, key, "Not found"]); | |
} |
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
package; | |
import flash.display.Sprite; | |
class Main extends Sprite { | |
public function new () { |
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
INRES="1680x1050" | |
OUTRES="1366x768" | |
FPS="30" | |
MAXRATE="1000k" | |
AUDIOBITRATE="60k" | |
QUAL="veryfast" | |
STREAM_KEY="STREAM KEY !!!" | |
URL="rtmp://live.justin.tv/app/$STREAM_KEY" | |
avconv -v verbose -f x11grab -show_region 1 -s "$INRES" -r "$FPS" \ |
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
#include <hxcpp.h> | |
#ifndef INCLUDED_AnalyticsImpl | |
#include <AnalyticsImpl.h> | |
#endif | |
#ifndef INCLUDED_haxe_Log | |
#include <haxe/Log.h> | |
#endif | |
Void AnalyticsImpl_obj::__construct() |
NewerOlder