This file contains hidden or 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
| #!/bin/bash | |
| # the same contents file list | |
| # finding using md5sum | |
| #echo $1 | |
| if [ "$1" = "--help" ]; then | |
| echo "here will be some help..." | |
| echo "using: " | |
| echo "mydiff [directory]" |
This file contains hidden or 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
| months="leden | |
| unor | |
| brezen | |
| duben | |
| kveten | |
| cerven | |
| cervenec | |
| srpen | |
| zari | |
| rijen |
This file contains hidden or 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
| const byte ledPin = 13; | |
| const byte interruptPin1 = 2; | |
| const byte interruptPin2 = 3; | |
| volatile byte state = LOW; | |
| void setup() { | |
| pinMode(ledPin, OUTPUT); | |
| pinMode(interruptPin1, INPUT_PULLUP); | |
| pinMode(interruptPin2, INPUT_PULLUP); |
This file contains hidden or 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 machine | |
| #pins = [machine.Pin(i, machine.Pin.IN) for i in (0, 2, 4, 5, 12, 13, 14, 15)] | |
| import time | |
| html = """<!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="shortcut icon" href="about:blank"> | |
| </head> | |
| <body> |
This file contains hidden or 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
| (venv3519)jarda@jarda-ThinkPad-Edge-E430 ~/venv/keylock3519 $ pip install spyderCollecting spyder | |
| Using cached spyder-3.1.0-py3-none-any.whl | |
| Requirement already satisfied: numpydoc in ./venv3519/lib/python3.5/site-packages (from spyder) | |
| Requirement already satisfied: chardet>=2.0.0 in ./venv3519/lib/python3.5/site-packages (from spyder) | |
| Requirement already satisfied: nbconvert in ./venv3519/lib/python3.5/site-packages (from spyder) | |
| Requirement already satisfied: rope-py3k in ./venv3519/lib/python3.5/site-packages (from spyder) | |
| Requirement already satisfied: pylint in ./venv3519/lib/python3.5/site-packages (from spyder) | |
| Requirement already satisfied: pygments>=2.0 in ./venv3519/lib/python3.5/site-packages (from spyder) | |
| Requirement already satisfied: qtawesome>=0.4.1 in ./venv3519/lib/python3.5/site-packages (from spyder) | |
| Requirement already satisfied: pep8 in ./venv3519/lib/python3.5/site-packages (from spyder) |
This file contains hidden or 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
| (rapid-router) jarda@jarda-ThinkPad-Edge-E430 ~/code_for_life/rapid-router $ ./run | |
| Obtaining file:///home/jarda/code_for_life/rapid-router | |
| Requirement already satisfied: django==1.8.2 in /home/jarda/venv/rapid-router/lib/python3.4/site-packages (from rapid-router==1.0.0.post0.dev392) | |
| Requirement already satisfied: django-foundation-icons==3.1 in /home/jarda/venv/rapid-router/lib/python3.4/site-packages (from rapid-router==1.0.0.post0.dev392) | |
| Requirement already satisfied: django-bourbon==3.1.8 in /home/jarda/venv/rapid-router/lib/python3.4/site-packages (from rapid-router==1.0.0.post0.dev392) | |
| Requirement already satisfied: django-autoconfig==0.3.6 in /home/jarda/venv/rapid-router/lib/python3.4/site-packages (from rapid-router==1.0.0.post0.dev392) | |
| Requirement already satisfied: django-jquery==1.9.1 in /home/jarda/venv/rapid-router/lib/python3.4/site-packages (from rapid-router==1.0.0.post0.dev392) | |
| Requirement already satisfied: django-js-reverse==0.6.1 in /home/jarda/venv/rapid-router/lib/python3.4/site-packag |
This file contains hidden or 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
| vysoky@z400-ivt106 ~ $ sudo systemctl status x11vnc.service | |
| [sudo] heslo pro vysoky: | |
| ● x11vnc.service | |
| Loaded: loaded (/etc/systemd/system/x11vnc.service; bad; vendor preset: enabled) | |
| Active: inactive (dead) (Result: exit-code) since Fri 2018-01-12 01:08:01 CET; 1min 4s ago | |
| Process: 1527 ExecStart=/usr/bin/x11vnc -dontdisconnect -auth guess -forever -shared -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -bg -o /var/log/x11v | |
| Jan 12 01:08:01 z400-ivt106 systemd[1]: Failed to start x11vnc.service. | |
| Jan 12 01:08:01 z400-ivt106 systemd[1]: x11vnc.service: Unit entered failed state. | |
| Jan 12 01:08:01 z400-ivt106 systemd[1]: x11vnc.service: Failed with result 'exit-code'. |
This file contains hidden or 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
| def get_knight_moves(row, col): | |
| """chess - knight moves | |
| g is a list of generators | |
| Each generator generates a list of pairs of coordinates. | |
| g[0] - starting position (SP), g[1] - SP, first moves, g[2] - SP, first m., | |
| second m., ... | |
| """ | |
| pos_moves = [[2, 1], [2, -1], [-2, 1], [-2, -1], | |
| [1, 2], [1, -2], [-1, 2], [-1, -2]] |
This file contains hidden or 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
| def get_generators(): | |
| # returns list of generators | |
| # generator with index n generates from generator with index n-1 | |
| g = [([] + [0] for i in range(1))] # initial list | |
| for i in range(10): | |
| index = len(g) - 1 | |
| #g += [(x + [x[-1] + 1] for x in g[-1])] | |
| #g += [(x + [x[-1] + 1] for x in g[len(g) - 1])] | |
| g += [(x + [x[-1] + 1] for x in g[index])] |
This file contains hidden or 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
| mysql> select ECO, count(*) pocet from kingbase group by ECO; | |
| +-----+-------+ | |
| | ECO | pocet | | |
| +-----+-------+ | |
| | A80 | 7286 | | |
| | A81 | 5661 | | |
| | A82 | 238 | | |
| | A83 | 1172 | | |
| | A84 | 1828 | | |
| | A85 | 3170 | |
OlderNewer