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
%% Signal synthesizer functions | |
function s = construct_with_n_N() | |
n = get_n(); | |
N = get_N(); | |
phi = data.phi; | |
k = 0:n-1; | |
k = k/n; | |
phi = phi*pi/180; | |
s = trigfun(2*pi*N*k + phi); |
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
from itertools import permutations | |
import re | |
def generate_mandatory_arbitrary(content): | |
pattern_string = '(' | |
for p in permutations(content): | |
pattern_string += '(.*' | |
for i in p: | |
pattern_string += '{}.*'.format(i) | |
pattern_string += ')|' |
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 fuzzy | |
from pprint import pprint | |
data_list = [ | |
'efo', | |
'efoo', | |
'dfsfoo', | |
'efiofo', | |
'abc', | |
'cba', |
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
Word count: 200 next_link: https://hu.wiktionary.org/w/index.php?title=Kateg%C3%B3ria:magyar_f%C5%91nevek&pagefrom=adenokarcin%C3%B3ma#mw-pages | |
Word count: 400 next_link: https://hu.wiktionary.org/w/index.php?title=Kateg%C3%B3ria:magyar_f%C5%91nevek&pagefrom=agr%C3%A1rt%C3%B6rv%C3%A9ny#mw-pages | |
Word count: 600 next_link: https://hu.wiktionary.org/w/index.php?title=Kateg%C3%B3ria:magyar_f%C5%91nevek&pagefrom=akaszt%C3%B3fahumor#mw-pages | |
Word count: 800 next_link: https://hu.wiktionary.org/w/index.php?title=Kateg%C3%B3ria:magyar_f%C5%91nevek&pagefrom=alapilletm%C3%A9ny#mw-pages | |
Word count: 1000 next_link: https://hu.wiktionary.org/w/index.php?title=Kateg%C3%B3ria:magyar_f%C5%91nevek&pagefrom=almaexport#mw-pages | |
Word count: 1200 next_link: https://hu.wiktionary.org/w/index.php?title=Kateg%C3%B3ria:magyar_f%C5%91nevek&pagefrom=android#mw-pages | |
Word count: 1400 next_link: https://hu.wiktionary.org/w/index.php?title=Kateg%C3%B3ria:magyar_f%C5%91nevek&pagefrom=anyak%C3%B6nyv#mw-pages | |
Word count: 1600 next_link: http |
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 requests | |
from bs4 import BeautifulSoup | |
import json | |
words = [] | |
def main(): | |
next_link = 'https://hu.wiktionary.org/wiki/Kategória:magyar_főnevek' | |
try: | |
while(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
function ret = my_function(varargin) | |
params.a = 42; | |
params.b = 'answer'; | |
params.c = 55.3; | |
params = simple_input_parser(params, varargin); | |
% further functionalities that uses the params struct |
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
my_mls_package | |
│ install.m | |
│ uninstall.m | |
│ librarydata.txt | |
│ | |
└───library | |
│ files1.m | |
│ files2.m | |
│ ... | |
│ |
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
% Based on the thread: http://stackoverflow.com/questions/32710709/prepare-command-in-matlab/32721523?noredirect=1#comment53292353_32721523 | |
function type_command(command) | |
commandwindow; %// make Matlab command window have focus | |
robot = java.awt.Robot; %/ Java Robot class | |
for k=1:length(command) | |
switch command(k) | |
case 'a' | |
robot.keyPress (java.awt.event.KeyEvent.VK_A); | |
robot.keyRelease (java.awt.event.KeyEvent.VK_A); | |
case 'b' |
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
from blinker import signal | |
import pprint | |
import datetime | |
class MultipleResponseError(Exception): | |
pass | |
class Signal(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
my_library | top level folder of your library | |
│ install.m | add your library to the MATLAB path | |
│ librarydata.txt | edit your library name and version here | |
│ LICENSE | add your license here optionally | |
│ README.md | you can edit this readme file optionally | |
│ uninstall.m | remove your library from the MATLAB path | |
│ | | |
└───library | all your code goes here | |
dummy_lib_test.m | dummy deletable function for installation testing |