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.Net.Sockets; | |
using System.Net; | |
using System.Text; | |
using System.Threading; | |
namespace UDPer | |
{ | |
class UDPer | |
{ |
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 net = require("net"), | |
repl = require("repl"); | |
connections = 0; | |
repl.start({ | |
prompt: "node via stdin> ", | |
input: process.stdin, | |
output: process.stdout | |
}); | |
net.createServer(function(socket) { | |
connections += 1; |
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
{ | |
esversion: 6, | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"env": { |
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
# Парсит электронную таблицу сохраненую в формате csv в json | |
# В первой строке должны быть записаны ключи | |
# run: ruby parser.tb filename.csv | |
# Пример | |
# ------------------- | |
# Имя | Улица |дом| | |
# ------------------- | |
# Андрей|Ленина |44 | | |
# Денис |Маркса |98 | | |
# || |
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
ko.subscribable.fn.subscribeChanged = function( callback ) { | |
var oldValue; | |
return [ | |
this.subscribe( function( _oldValue ) { | |
oldValue = _oldValue; | |
}, this, 'beforeChange' ), | |
this.subscribe( function( newValue ) { | |
callback( newValue, oldValue ); | |
} ) | |
]; |
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
#Переименование файлов | |
j=0; | |
for i in *.jpg; | |
do let j+=1; | |
mv $i file$j.jpg ; | |
done |
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
<script> | |
var points = []; | |
function generatePoints(){ | |
for(var i =0; i< 100; i++) | |
points.push({ | |
'x': parseInt(Math.random() * 100), | |
'y': parseInt(Math.random() * 100), | |
}); | |
} | |
generatePoints() |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace KozakLaba2Ind | |
{ | |
class Program | |
{ |
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
<script> | |
var X = []; | |
for (var i = 0; i < 100; i++) | |
{ | |
X[i] = {'x':Math.random() * 100), 'y':Math.random() * 100, 'z':Math.random() * 100}; | |
} | |
F = []; |
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
private void SetDataToServer(){ | |
if(SearchServer.ipServer == ""){ | |
SearchServer udp = new SearchServer(); | |
udp.Start(); | |
udp.Send("softPLC"); | |
} | |
System.Net.Http.HttpClient client = new System.Net.Http.HttpClient(); | |
string vel = plcValue_vel.TextValue; | |
string pos = plcValue_state.TextValue; |
OlderNewer