Skip to content

Instantly share code, notes, and snippets.

View Timopheym's full-sized avatar
🎯
Focusing

Timophey Molchanov Timopheym

🎯
Focusing
View GitHub Profile
#! /usr/bin/perl
use strict;
use warnings;
# Getting command line arguments:
use Getopt::Long;
# Documentation:
use Pod::Usage;
# I/O Handler
@Timopheym
Timopheym / README.md
Last active August 29, 2015 14:02 — forked from mbostock/.block

D3 2.10 allows you to implement custom interpolators for d3.svg.line and d3.svg.area. This contrived example shows how to draw arcs between data points using SVG’s elliptical arc path segments.

var line = d3.svg.line()
    .interpolate(function(points) { return 0; })
    .x(function(d) { return x(d.x); })
    .y(function(d) { return y(d.y); });
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
mQENBFMedkEBCACuSUuKb2J2nzBVg/H0OT5Fcnz8oUPGOrRwcFxTRldgoTyABOwU
FvgBGnAF5MkozErnwQjSyCfrup+tpLYd9PmRkThDThHRakHqbxcGZeaymxslPQlb
PfyUfqHapyyaZhpcuEEYzfzLTcrDCjX+L4cZpdtDPz6oVjSzDpwwYthQ+I4ZBkHY
wMVdntT8X8qECdw5U22sNLfzaheYNADXo1L/YnFJouJpPNNp6FcBRwGAtkuJOBQi
26E759LEEzXouJCuTNhbC6PJM3unK2Xs8HU8sdZaPE8/MaHLYUNgTeAZrZGP9yNd
PBIxq497euXpmMbKHwRi4XkasSnRmIRvAwljABEBAAG0H1RpbW9waGV5bSA8dGlt
namespace :spree do
desc "Export Products to CSV File"
task :export_products_csv => :environment do
require 'fastercsv'
products = Product.find(:all)
puts "Exporting to #{RAILS_ROOT}/products.csv"
FasterCSV.open("#{RAILS_ROOT}/products.csv", "w") do |csv|
csv << ["id", "name", "description","sku", "master_price" ]
/*
Copyright (C) 2011 by Yehuda Katz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Fripple::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
# Do not eager load code on boot.
config.eager_load = false