Skip to content

Instantly share code, notes, and snippets.

View Timopheym's full-sized avatar
🎯
Focusing

Timophey Molchanov Timopheym

🎯
Focusing
View GitHub Profile
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
/*
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:
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" ]
@Timopheym
Timopheym / My public key
Created March 13, 2014 22:35
email: timopheym@gmail.com
-----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
@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); });
#! /usr/bin/perl
use strict;
use warnings;
# Getting command line arguments:
use Getopt::Long;
# Documentation:
use Pod::Usage;
# I/O Handler
## English language utilities for text processing
## Check whether the apostrophe placement follows English rules
sub allow_word ($)
{
my $word = shift;
return ($word =~ /^[A-Z][A-Z\'-]+$/) && (index($word,"'") < 0 || allow_apostrophe($word));
/* spec: webgl */
//CBS
//Parallax scrolling fractal galaxy.
//Inspired by JoshP's Simplicity shader: https://www.shadertoy.com/view/lslGWr
// http://www.fractalforums.com/new-theories-and-research/very-simple-formula-for-fractal-patterns/
precision mediump float;
uniform float time;
uniform vec2 resolution;
uniform sampler2D tex[32];
@Timopheym
Timopheym / sync_pins.js
Last active September 9, 2023 17:09
Small script to download your pinterest boards to your machine. Limit 50 pins per board... but you can download all pins from board using instruction inside ;)
var request = require("request");
var fs = require("fs");
var api_root = 'http://widgets.pinterest.com/v3/pidgets/boards/';
var sync_dir = './images', image_url, image_path, current_user_boards, current_user_name, board_dir;
var users = {
timopheym : [
'skatches',
'home',
<div class="actions fl_r">
<a href="write1778303" onclick="return showWriteMessageBox(event, 1778303)" class="friends_act">Send a message</a>
<a href="/friends?id=1778303" class="friends_act">Browse friends</a>
<a onclick="return Friends.deleteFriend(event, 1778303, this)" class="friends_act">Remove from friends </a>
<a class="lists_select frinds_act" onclick="return Friends.ddShow(1778303, this, event)">Edit friend lists</a>
</div>