Skip to content

Instantly share code, notes, and snippets.

View lazyfox81's full-sized avatar

Mikhail Kolontay lazyfox81

View GitHub Profile
#!/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
@agnoster
agnoster / README.md
Last active September 25, 2024 09:27
My ZSH Theme

agnoster.zsh-theme

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

(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
@efa2000
efa2000 / README.md
Last active February 6, 2016 19:29
Яндекс Погода

Собственно получить погоду для своего города в формате xml можно по этой ссылке:

http://export.yandex.ru/weather-ng/forecasts/{id_city}.xml

где {id_city} - ID города, полный список городов с ID можно посмотреть здесь http://weather.yandex.ru/static/cities.xml

схема очень проста: дергаем xml, преобразуем в объект, вытаскиваем необходимые нам параметры

@mariozig
mariozig / migrate_repo.sh
Last active September 16, 2024 18:48
Migrate repo from GitLab to GitHub Full blog post @ http://ruby.zigzo.com/2015/03/23/moving-from-gitlab-to-github/
# 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.
@justbuchanan
justbuchanan / readme.md
Last active March 1, 2021 17:21
Show icons for open programs in i3's status bar. See a demo here: http://gfycat.com/AfraidAmusingCoyote
@mekhanme
mekhanme / profiles.json
Created December 26, 2019 10:23
Windows Terminal config
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"copyOnSelect": false,
"wordDelimiters": " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?│",
"defaultProfile": "{24e4b58f-d9bd-476e-9a95-bda3c133f5b4}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [