Skip to content

Instantly share code, notes, and snippets.

View artemdevel's full-sized avatar
😎
Coding

Artem artemdevel

😎
Coding
View GitHub Profile
@artemdevel
artemdevel / main.go
Created March 26, 2016 21:41
Simple golang "OOP" example
/* Output
{{} Something 1} true
Something 1 <nil>
Not implemented
Doing something
Something 1 <nil>
Not implemented
Not implemented
*/
package main
@artemdevel
artemdevel / brackated_paste_mode.md
Last active August 29, 2015 14:27
Brackated paste mode

This little nice feature is bugging me a lot in all Ubuntu 14.04 I use.. bracketed paste mode.

printf "\e[?2004l"

@artemdevel
artemdevel / swagger_tools.md
Last active August 29, 2015 14:27
Swagger tools

Install Swagger Editor, Swagger UI and Swagger validation badge locally in Docker containers.

  1. Clone all the repos

git clone https://github.com/swagger-api/swagger-editor.git
git clone https://github.com/swagger-api/swagger-ui.git
git clone https://github.com/swagger-api/validator-badge.git
@artemdevel
artemdevel / get_product.py
Last active April 29, 2016 10:30
Get product
#!/usr/bin/env python
""" Get Amazon product by ID via Amazon API
"""
import sys
import hmac
import hashlib
import urllib
import urlparse
import argparse
from datetime import datetime
@artemdevel
artemdevel / test5.py
Created February 20, 2013 16:10
SignalManager tests
from scrapy import signals
from scrapy.http import Request
from scrapy.spider import BaseSpider
from scrapy.signalmanager import SignalManager
class Test5(BaseSpider):
""" New SignalManager API test, doesn't work
"""
name = "test5"
start_urls = ["http://httpbin.org/status/200"]