This gist is deprecated and will not be edited in the future. Consider visit ninedraft/python-udp repo. It will not be deleted, however.
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
% SN - массив сигнала | |
% window - размер окна сглаживания | |
window = 5; | |
if(mod(window,2)==0) | |
window=window+1; | |
end | |
%размах окна влево и вправо от текущей позиции | |
hw=(window-1)/2; | |
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
use std::convert::AsMut; | |
fn clone_into_array<A, T>(slice: &[T]) -> Option<A> | |
where A: Sized + Default + AsMut<[T]>, | |
T: Clone | |
{ | |
let mut arr = Default::default(); | |
{ | |
let mut_arr = <A as AsMut<[T]>>::as_mut(&mut arr); | |
let arr_len = mut_arr.len(); |
I hereby claim:
- I am ninedraft on github.
- I am twentydraft (https://keybase.io/twentydraft) on keybase.
- I have a public key ASCLrd__pvnCe7feddMjFKWT4zgaGsrlu4EghQ1y_8JQPgo
To claim this, I am signing this object:
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
package util | |
import ( | |
"fmt" | |
"path" | |
"runtime" | |
"strings" | |
"github.com/sirupsen/logrus" | |
) |
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
import re | |
import shlex | |
import pandas as pd | |
import time | |
import random | |
import os, sys | |
random.seed(time.time()) | |
path = "/tmp/logeniue" |
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
package kube | |
import ( | |
"encoding/json" | |
"io" | |
"github.com/ericchiang/k8s" | |
metav1 "github.com/ericchiang/k8s/apis/meta/v1" | |
"github.com/mitchellh/mapstructure" | |
"github.com/thoas/go-funk" |
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
schema: | |
- name: embark | |
commands: | |
build: | |
status: true | |
method: go build -v -o embark ./cmd/embark/ | |
test: | |
status: true | |
watcher: | |
paths: |
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
import ( | |
gpflag "github.com/octago/sflags/gen/gpflag" | |
cobra "github.com/spf13/cobra" | |
) | |
type Flags struct { | |
// flag definitions here | |
// https://github.com/octago/sflags#flags-based-on-structures------ | |
} |
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
import ( | |
"net" | |
"net/http" | |
"time" | |
"golang.org/x/net/proxy" | |
) | |
type Auth = proxy.Auth |
OlderNewer