Skip to content

Instantly share code, notes, and snippets.

View jezzarax's full-sized avatar

Alexey Kuntsevich jezzarax

View GitHub Profile
> Could you create an SVG drawing of a dog?
=== Thought process ===
Okay, the user is asking me to create an SVG drawing of a dog. Let me think about how to approach this. I need to recall how SVG works. SVG stands for Scalable Vector Graphics, which uses XML-based text to describe 2D images. So, I need to come up with a simple dog shape using paths and shapes in SVG.
First, I should consider the basic elements of a dog: the body, head, legs, tail, ears, eyes, and maybe a mouth. To make it simple, maybe a cartoon-style dog would be easier. I'll start with the body. A rectangle or ellipse for the body? Maybe a rounded rectangle. Then the head, perhaps an ellipse connected to the body. The ears could be triangles or small ellipses. The legs would be rectangles or cylinders. The tail is a curved shape, maybe a path.
I need to structure this in SVG elements. The SVG will have a viewbox to set the coordinate system. Let me choose a viewbox like 0 0 200 200 so it's centered. Then, I'll start drawing each part s
@jezzarax
jezzarax / Vagrantfile
Last active January 28, 2016 22:58
IPython-tensorflow Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
sudo apt-get update
sudo apt-get install -y python-pip python-dev python-psycopg2
sudo apt-get install -y build-essential python-dev
sudo apt-get install -y python-matplotlib
sudo apt-get install -y libssl1.0.0
sudo pip install --upgrade ipython-sql jupyter
@jezzarax
jezzarax / pedantically_commented_playbook.yml
Created January 19, 2016 10:18 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@jezzarax
jezzarax / OpenWithSublimeText3.bat
Created January 19, 2016 09:00 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f