This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Converted JS from http://mgcrea.github.io/angular-strap | |
angular.module('ngAnimate', []) | |
.factory('$$animateReflow', ['$window', '$timeout', ($window, $timeout) -> | |
requestAnimationFrame = $window.requestAnimationFrame || | |
$window.webkitRequestAnimationFrame || | |
(fn) -> | |
$timeout(fn, 10, false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
angular.module('vc.messages') | |
.factory "logger", ['$log', '$location', '$timeout', 'NwService', 'stackTrace', ($log, $location, $timeout, NwService, stackTrace) -> | |
log4js = require('log4js') | |
airbrake = require('airbrake').createClient('SOMEKEY') | |
airbrake.protocol = 'http' | |
airbrake.serviceHost = 'api.airbrake.io' | |
airbrake.env = 'production' if NwService.isProduction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
angular.module('vc.messages') | |
.factory "stackTrace", () -> | |
stackTrace = require('stack-trace') | |
getStack: (level) -> | |
stack = stackTrace.get() | |
for i in [0..level-1] | |
stack.shift() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A sample Gemfile | |
source "https://rubygems.org" | |
gem 'sqlite3' | |
gem 'pony' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Alexander Merkulov sasha@merqlove.ru | |
# Contributors : @merqlove | |
# App Version : 6.x | |
# chkconfig: 2345 82 55 | |
# processname: sidekiq_some_service | |
# description: Runs sidekiq for some_service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dropList = []; | |
for(var i in Droplr.DropList.models) { | |
// Find the drop ID in the list | |
var dropID = Droplr.DropList.models[i].id, | |
dropTitle = Droplr.DropList.models[i].attributes.title; | |
if(dropList.indexOf(dropID) == -1) { // If ID is not on the list, add it to the list | |
dropList.push({id: dropID, title: dropTitle}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- encoding : utf-8 -*- | |
Signal.trap('INT') { exit 1 } | |
# resolve bin path, ignoring symlinks | |
require 'pathname' | |
bin_file = Pathname.new(__FILE__).realpath | |
# add self to libpath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.2.1 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
ENV RAILS_ENV production | |
ENV REFILE_CACHE_DIR /var/tmp/uploads | |
RUN curl -sL https://deb.nodesource.com/setup | bash - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template name: Для яндекс маркета | |
*/ | |
header('Content-Type: text/xml; charset=utf-8'); | |
preg_match('|http://(.*)|', get_option('siteurl'), $m); | |
$shop_name = $m[1]; |