View _signup_flow_header.html.haml
1 2 3 4 5 6 7 8 9 10
#signupFlowHeader
- signup_flow_step 1 do
%h3 1. Register Store
- signup_flow_step 2 do
%h3 2. Integrate Curebit
- signup_flow_step 3, 4 do
%h3 3. Setup Campaign
.alert.alert-warning{:class => "step#{current_signup_flow_step}"}
- case current_signup_flow_step
- when 1:
View digest.java
1 2 3 4 5 6 7 8 9 10
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.io.UnsupportedEncodingException;
import java.security.*;
 
 
public class HelloWorld {
 
public static void main(String []args)
throws UnsupportedEncodingException, NoSuchAlgorithmException {
View sha256.java
1 2 3 4 5 6 7 8 9 10
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.io.UnsupportedEncodingException;
import java.security.*;
 
public class HelloWorld{
 
public static void main(String []args)
throws UnsupportedEncodingException, NoSuchAlgorithmException {
String digest = hash256("ef591fbbc527d77402d9a10dba92c195|approve-developer|developer@example.com|developer@example.com|2014-01-01T00:00:00+00:00");
View bogdan_default_id_name_generation.rb
1 2 3 4 5 6 7 8 9 10
require "diffbench"
require "bundler"
Bundler.setup
$:.unshift "./lib"
require "action_view/test_case"
 
 
# Running benchmark with current working tree
# Checkout HEAD^
# Running benchmark with HEAD^
View dc_0_subtotal_2.html
1 2 3 4 5 6 7 8 9 10
<html>
 
<head>
 
 
</head>
<body>
 
<script style="text/javascript">
var member = {
View gist:d50d2e9682abf18cb026
1 2 3 4 5 6 7 8 9 10
development >> puts Campaign.group("length(name)").count.sb {first}.mp {join("-")}.to_yaml
(5.6ms) SELECT COUNT(*) AS count_all, length(name) AS length_name FROM `campaigns` GROUP BY length(name)
---
- 1-4
- 2-15
- 3-28
- 4-68
- 5-46
- 6-55
- 7-78
View opportunities.md

Необходимые навыки

  • Strong OOP/OOD
  • Опыт программирования от 5 лет
  • Опыт Ruby/Rails от 2 лет
  • TDD/BDD
  • RDBMS (желательно MySQL)
  • HTML/CSS на базовом уровне
  • Be Smart, Be Quick, Be responsible
View gist:1a27b13471c9b54ef49a
1 2 3 4 5 6 7 8 9 10
<%- elements.group_by{|value, _, _| form.object.column_by_name(value).options[:group]}.each do |group, options| -%>
<%= group.humanize %>
<% options.each do |value, label, checked| %>
<%- id = [form.object_name, filter.name, value].join('_').underscore -%>
<%= form.label filter.name, options.merge(:for => id) do -%>
<%= form.check_box(filter.name, form.datagrid_extra_checkbox_options.merge(:multiple => true, :id => id, :checked => checked), value.to_s, nil) -%>
<%= text -%>
<%- end -%>
<%- end -%>
<%- end -%>
View gist:f5b588f52cee0f3986ff
1 2 3 4 5 6 7 8 9 10
 
SITE NAME - USED ASSETS - TOTAL ASSETS
shutterfly - 142 - 526
linio-mx-testing - 142 - 373
toms-testing - 107 - 137
bonobos - 105 - 168
pavel - 85 - 625
diamond-candles - 65 - 117
blivakker-no - 55 - 92
zozi - 54 - 85
View css_spec.rb
1 2 3 4 5 6 7 8 9 10
require 'spec_helper'
 
# Ensure css files are authored properly and use image_url instead of url()
# We need this so the assets have hashes in the url for cache-busting
describe "CssTest" do
 
Dir.glob(File.join(Rails.root, 'app/stylesheets/*.s?ss')) do |css_file|
context "scss/sass file #{css_file}" do
it "should not use 'url'(should use image_url/absolute_image_url/absolute_server_url)" do
File.open(css_file).each_with_index do |line, i|
Something went wrong with that request. Please try again.