Skip to content

Instantly share code, notes, and snippets.

Tim Masliuchenko timsly

Block or report user

Report or block timsly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
timsly / url_generation_with_benchmark_test.rb
Last active Apr 12, 2018
url_generation_test.rb with benchmark
View url_generation_with_benchmark_test.rb
# frozen_string_literal: true
require "abstract_unit"
module TestUrlGeneration
class WithMountPoint < ActionDispatch::IntegrationTest
Routes =
include Routes.url_helpers
class ::MyRouteGeneratingController < ActionController::Base
View index.html
<html ng-app="Demo">
<head metang-head>
<title metang="prefix">My Site</title>
<meta name="description" content="Desc of my website" metang>
<body ng-controller="TestCtrl">
timsly / facebook-connect-plugin.js
Last active Aug 29, 2015
facebook-connect-plugin for ionic
View facebook-connect-plugin.js
"use strict";
* @author Ally Ogilvie
* @copyright Wizcorp Inc. [ Incorporated Wizards ] 2014
* @file - facebookConnectPlugin.js
* @about - JavaScript interface for PhoneGap bridge to Facebook Connect SDK
View gist:8458673
def total_by(obj, date)
if obj.is_a? String
group_by = obj
filter_by = false
filter_by = obj.class.model_name
group_by = opposite_association(name).to_s
query = scoped.where(date:
View gist:4018540
module HelperMacros
extend ActiveSupport::Concern
module ClassMethods
# Use before test block 'it'
# create global object user and sign in
def sign_in(who=:user)
timsly / br.js
Created Oct 31, 2012 — forked from anonymous/br.js
Basecamp report
View br.js
var result = {}; $$('.entry').each(function(item) { var key = item.down('.date a').innerHTML; value = parseFloat(item.down('.hours').innerHTML); if (result[key]) { result[key]+= value; } else { result[key] = value; } }); console.log(result);
timsly / .zshrc
Created Oct 14, 2012
zsh configufation
View .zshrc
# Path to your oh-my-zsh configuration.
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# Set to this to use case-sensitive completion
timsly / mybeautystore.user.js
Created Oct 7, 2012
Mybeautystore Photo Grabber
View mybeautystore.user.js
// ==UserScript==
// @name Mybeautystore Photo Grabber
// @namespace MybeautystorePhotoGrabber
// @author Tima Maslychenko
// @description Script that show big picture on product page
// @match*/*.html
// @version 0.1
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
You can’t perform that action at this time.