Skip to content

Instantly share code, notes, and snippets.

View WCSN's full-sized avatar

WCSN WCSN

View GitHub Profile
@WCSN
WCSN / getpos.cpp
Last active October 29, 2025 12:50
С/С++ strpos
//============================================================================
// Name : getpos.cpp
// Author : wocson
// Version : 0.1.25
// Copyright : (c) 1996 2012 BSD
// Description : getpos substring on string
//============================================================================
#include <iostream>
#include <iomanip>
@WCSN
WCSN / tapemn.sh
Last active May 18, 2022 17:28
Script for work whith a DDS tape devices.
#!/bin/bash
###############################################################
#
# Tape record/read for DAT streamer
#
# wocson (c) | Modify
# Origin: https://l8sae-rexhn1.livejournal.com/15517.html
###############################################################
export TAPE="/dev/nsa0"
DLM="======================================================"
@WCSN
WCSN / switch.py
Last active May 18, 2022 17:29
Operator switch on Python
#!/bin/python3
########################################################################
'''Created on 20190412'''
########################################################################
##
## SWITCH
##
class switch(object):
def __init__(self, value):
self.value=value # значение, которое будем искать