Skip to content

Instantly share code, notes, and snippets.

@Novakov
Novakov / command.fs
Last active April 3, 2016 19:50
[Blog] Obsługa wiersza polecenia
module Pather.Commands.Run
[<Verb("run", HelpText = "Run process with given path set")>]
type Args = {
[<Option('f', "file", Required = true, HelpText = "Input file")>]File: string;
[<Option('g', "group", Default = "default", HelpText = "Name of group to use")>]Group: string;
[<Option('m', "mode", Default = PathSet.MergeKind.Append, HelpText = "Pathset merge mode")>]Mode: PathSet.MergeKind;
[<Value(0, HelpText = "Command to run", Required = true)>]Command: string;
[<Value(1, HelpText = "Command args")>]Args: string seq
}
public class NCalcVerifyNames : LogicalExpressionVisitor
{
private readonly ITestOutputHelper _output;
public NCalcVerifyNames(ITestOutputHelper output)
{
_output = output;
}
public override void Visit(LogicalExpression expression)
import serial
import threading
import time
import gc
for i in xrange(0, 100):
print i
port = serial.Serial(port='\\\\.\\COM8', baudrate = 250000, rtscts = True, writeTimeout=None)
def download_photo(obc, local):
data = system.obc.read_file(obc)
with open(local, 'wb') as f:
f.write(data)
result = []
rem = data[4:]
import response_frames
p = "C:\\PW-Sat\\ramki.txt"
with open(p, 'r') as f:
lines = f.readlines()
def clean_line(line):
return map(lambda x: int(x, 16), line.split(' ')[18:])
@Novakov
Novakov / .confg
Created November 11, 2017 13:50
xtensa-lx106-elf-gcc HOST=Windows x64
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG 0 Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_wget=y
CT_CONFIGURE_has_curl=y
CT_CONFIGURE_has_stat_flavor_GNU=y
CT_CONFIGURE_has_make_3_81_or_newer=y
CT_CONFIGURE_has_libtool_2_4_or_newer=y
using System;
class A{}
class B{}
class G<T> {}
class Program
{
public static void Main()
This file has been truncated, but you can view the full file.
NOTE "CREATOR" "FlashPro Version: v11.9 SP2";
NOTE "CAPTURE" "11.9.2.1";
NOTE "DEVICE" "M2S010";
NOTE "PACKAGE" "M2S010-vf400";
NOTE "DATE" "2019/01/11";
NOTE "TIME" "21:54:04";
NOTE "STAPL_VERSION" "JESD71";
NOTE "VENDOR" "Microsemi Corporation";
NOTE "IDCODE" "0F8031CF";
NOTE "IDMASK" "0FFFFFFF";
.
./include_typeslots.h
./include_pgen.h
./include_methodobject.h
./include_code.h
./include_longobject.h
./include_listobject.h
./include_dynamic_annotations.h
./include_pyport.h
./include_warnings.h