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
Studenci Informatyki w trakcie studiów często korzystają z języka modelowania UML. Jednak tworzenie diagramów UML za pomocą obecnie dostepnych narzedzi jest niewygodne. Wymaga przeciągania elementów z przybornika na obszar roboczy, ustalania relacji między nimi (również przez przeciągnięcie ich z przybornika) oraz opisywanie ich właściwości, co jest czasochłonne i nieergonomiczne, bo wymaga od użytkownika ciągłego przekładania dłoni z klawiatury na mysz. Doświadczenie pokazuje, że narzędzia, które można obsługiwać wyłącznie za pomocą klawiatury (np. edytor Vim), pozwalają (po uzyskaniu pewnej wprawy i biegłości) na znaczne skrócenie czasu potrzebnego do wykonania zadania w stosunku do narzędzi obsługiwanych za pomocą klawiatury i myszy. | |
Dlatego studenci zaczęli szukać narzędzia, umożliwiającego utworzenie diagramu UML wyłącznie przy użyciu klawiatury. Po dogłebnym przebadaniu rynku takich narzędzi okazało się, że żadne z dostępnych nie jest wygodne w użyciu. Świadczy o tym ich mała popularność. Stąd też powst |
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
proxyResponse.addListener('end', function(e) { | |
var bufferSize = 0; | |
chunks.forEach(function(chunk) { | |
bufferSize += chunk.length; | |
}); | |
var buffer = new Buffer(bufferSize); | |
var pos = 0; | |
chunks.forEach(function(chunk) { | |
chunk.copy(buffer, pos, 0); |
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
clear all; | |
close all; | |
rel_pwr_flow_data; | |
bigPmax = repmat(Pmax, 1, m) .* (ones(18) - eye(18)); | |
cvx_begin | |
variable p(m, m) | |
variable g(k) |
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
#define WIN32_LEAN_AND_MEAN | |
#include <Windows.h> | |
#include <portaudio.h> | |
#include <assert.h> | |
#include <stdio.h> | |
#include <math.h> | |
#define NUM_CHANNELS 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
close all; | |
sampling_freq = 8000; | |
nyq_freq = sampling_freq / 2; | |
% Bandpass filter frequencies | |
freqs = [41 82 123]; | |
for i=1:10 | |
fsize = size(freqs, 2); | |
freqs = [freqs (freqs(fsize-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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <Python.h> | |
static PyObject* rettest(PyObject *self, PyObject *args) | |
{ | |
return Py_BuildValue("i", 123); | |
} |
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
/* | |
Copyright (C) 1996 John W. Eaton | |
This file is part of Octave. | |
Octave is free software; you can redistribute it and/or modify it | |
under the terms of the GNU General Public License as published by the | |
Free Software Foundation; either version 2, or (at your option) any | |
later version. |
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
grammar negationtest; | |
expression: ar_expression { System.out.println($ar_expression.ret); } | |
; | |
ar_expression returns [Integer ret]: | |
a = mult_expression { $ret = $a.ret; } | |
( | |
('+' b = mult_expression { $ret += $b.ret; } ) | | |
('-' c = mult_expression { $ret -= $c.ret; } ) |
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
mockery = (func) -> | |
mocks = [{f: func}] | |
ret = () -> | |
mock = mocks[0] | |
unless mock | |
throw new Error('No mocks left') | |
unless mock.forever | |
mocks.splice(0, 1) | |
return mock.f.apply @, arguments |
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
module SocketPolicyServer | |
type HttpListener = System.Net.HttpListener | |
type HttpListenerRequest = System.Net.HttpListenerRequest | |
let StartPolicyServer (port:int) = | |
if not HttpListener.IsSupported then | |
failwith "HttpListener not supported" | |
else |
OlderNewer