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 | |
clc | |
close all | |
[y,fs]=wavread('odliczanie.wav'); %wczytujemy wartości wektora y i wartość cz. próbk. fs z pliku odliczanie.wav | |
figure | |
plot (y) %rysujemy wczytany sygnał | |
axis tight; grid on; xlabel ('Probki'); ylabel ('Amplituda'); title ('sygnal y'); %ustalamy parametry wykresu |
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
# 1: Character Input | |
from datetime import datetime | |
name=input("What's your name?\n") | |
age=int(input("How old are you?\n")) | |
if age / 100 == 0: | |
cur_year = datetime.now().year | |
est_year = cur_year - age + 100 | |
print (name + ", you'll have an age of 100 years in " + str(est_year) + ".") |
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
# 04 Divisors | |
num = int(input("\tI'll list you numbers which are divisors of your number.\n\tType your number:")) | |
all_to = range(2, num) | |
print ("\n\tThese numbers are divisors of " + str(num) + ":") | |
for x in all_to: | |
if num % x == 0: | |
print ("\t" + str(x)) |
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
# Rock-Paper-Scissors game for two players | |
# http://www.practicepython.org/exercise/2014/03/26/08-rock-paper-scissors.html | |
counter = 1 | |
p_1_c = 0 # number of player 1 wins | |
p_2_c = 0 # number of player 2 wins | |
while 1==1: | |
p_1_x = p_1_c | |
p_2_x = p_2_c |
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
interrupts() // enables interrupts | |
noInterrupts() // disables interrupts | |
// https://oscarliang.com/arduino-timer-and-interrupt-tutorial/ |
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
[![NPM version](https://badge.fury.io/js/tslint.svg)](http://badge.fury.io/js/tslint) | |
[![Downloads](http://img.shields.io/npm/dm/tslint.svg)](https://npmjs.org/package/tslint) | |
[![Circle CI](https://circleci.com/gh/palantir/tslint.svg?style=svg)](https://circleci.com/gh/palantir/tslint) | |
[![Join the chat at https://gitter.im/palantir/tslint](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/palantir/tslint?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | |
TSLint | |
====== | |
TSLint is an extensible static analysis tool that checks [TypeScript](https://github.com/Microsoft/TypeScript) code for readability, maintainability, and functionality errors. It is widely supported across modern editors & build systems and can be customized with your own lint rules, configurations, and formatters. |
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 strict"; | |
/** | |
* @license | |
* Copyright 2013 Palantir Technologies, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Adds to candy feature from bira - different chars & colors for root (red) and normal user (green). | |
if [[ $UID -eq 0 ]]; then | |
PROMPT=$'%{$fg_bold[red]%}%n@%m %{$fg[blue]%}%D{[%X]} %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} $(git_prompt_info)\ | |
%{$fg[blue]%}->%{$fg_bold[blue]%} %#%{$reset_color%} ' | |
else | |
PROMPT=$'%{$fg_bold[green]%}%n@%m %{$fg[blue]%}%D{[%X]} %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} $(git_prompt_info)\ | |
%{$fg[blue]%}->%{$fg_bold[blue]%} %%%{$reset_color%} ' | |
fi | |
OlderNewer