Skip to content

Instantly share code, notes, and snippets.

@yevgenko
yevgenko / Gemfile
Last active August 29, 2015 14:20
Parser for Amazon Marketplace Web Service XSD's: Retrieves the list of DataNodes (referenced as Product Category XSDs) and ProductType for the corresponding DataNode
source 'https://rubygems.org'
gem 'mws-rb', git: 'https://github.com/veeqo/mws-rb.git'
require 'savon'
module Foobarservice
class Client
attr_accessor :wsdl, :user_id, :token
def initialize(attrs = {})
attrs.each do |k,v| send("#{k}=", v) end
@client = Savon.client(wsdl: @wsdl) do
@yevgenko
yevgenko / rails-TODO.md
Last active December 18, 2015 16:19
Things TODO for new rails app

Engineering Tasks

  • add .ruby-version file
  • verify secret token are safe
  • install rspec + capybara
  • update README file
@yevgenko
yevgenko / pom.xml
Last active December 15, 2015 01:19
Add Robolectric to AndroidKickstartr generated pom file, see revisions
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.oss</groupId>
@yevgenko
yevgenko / aws-eb-app.config
Created February 25, 2013 23:19
The AWS EB Hook which triggers composer install during deployment (git aws.push) process, e.g. put this into .ebextensions/01run.config
container_commands:
01getcomposer:
command: "composer.phar install"
leader_only: true
@yevgenko
yevgenko / fiddle.html
Last active December 12, 2015 08:48
JavaScript helper function generates html options for days, months and years dropdowns
<div id="container"></div>
@yevgenko
yevgenko / drupal7.make
Created September 16, 2012 04:59
Drupal 7 Only Make File
; Drupal 7 Only Make File
;
; Usage:
; drush make --prepare-install drupal7.make
; Core version
; ------------
; Each makefile should begin by declaring the core version of Drupal that all
; projects should be compatible with.
@yevgenko
yevgenko / composer.json
Created September 11, 2012 08:45
Example of using composer.phar for wordpress plugins/themes dependency management
{
"name": "yevgenko/wordpress-site",
"description": "Some WP powered site",
"repositories": {
"wordpress": {
"type": "package",
"package": [
{
"name": "plugins/db-toolkit",
"type": "wordpress-plugin",
@yevgenko
yevgenko / phpapplication.rb
Created June 9, 2012 21:39
Deploy Hooks used for PHP Apps under AWS ElasticBeanstalk EC2 instances
#############################################################################
# AWS Elastic Beanstalk Host Manager
# Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Amazon Software License (the “License”). You may
# not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/asl/
#
@yevgenko
yevgenko / .classpath
Created April 26, 2012 00:47
eclipse classpath for android project
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" output="bin/classes" path="gen">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/classes" path="src/main/java"/>