A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
#!/usr/bin/env python | |
""" Script that prints out tomorrow's weather forecast, using the Yahoo Weather API. | |
You'll need to get your location's WOEID, which you can get from entering your | |
location in the form on http://weather.yahoo.com/ - currently where it says | |
'Enter city of zip code'. | |
The WOEID numerical id will be in the URL of the page you get redirected to | |
after submitting the form e.g. in the URL | |
http://weather.yahoo.com/united-kingdom/england/newcastle-upon-tyne-30079/ the |
(setq show-paren-style 'expression) | |
(show-paren-mode 2) | |
(menu-bar-mode -1) | |
(tool-bar-mode -1) | |
(setq make-backup-files nil) ; Don't want any backup files | |
(setq auto-save-list-file-name nil) ; Don't want any .saves files | |
(setq auto-save-default nil) ; Don't want any auto saving |
Собственно получить погоду для своего города в формате xml можно по этой ссылке:
http://export.yandex.ru/weather-ng/forecasts/{id_city}.xml
где {id_city} - ID города, полный список городов с ID можно посмотреть здесь http://weather.yandex.ru/static/cities.xml
схема очень проста: дергаем xml, преобразуем в объект, вытаскиваем необходимые нам параметры
# Assume we are in your home directory | |
cd ~/ | |
# Clone the repo from GitLab using the `--mirror` option | |
$ git clone --mirror [email protected]:mario/my-repo.git | |
# Change into newly created repo directory | |
$ cd ~/my-repo.git | |
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks. |
This project has moved to https://github.com/justbuchanan/i3scripts
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"globals": { | |
"alwaysShowTabs": true, | |
"copyOnSelect": false, | |
"wordDelimiters": " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?│", | |
"defaultProfile": "{24e4b58f-d9bd-476e-9a95-bda3c133f5b4}", | |
"initialCols": 120, | |
"initialRows": 30, | |
"keybindings": [ |