Skip to content

Instantly share code, notes, and snippets.

import {toBeInTheDocument, toHaveClass} from '@testing-library/jest-dom'
expect.extend({toBeInTheDocument, toHaveClass});
import {
getByLabelText,
getByText,
getByTestId,
queryByTestId,
wait,
waitForDomChange,
"devDependencies": {
"chai": "^3.5.0",
"classnames": "^2.2.4",
"compression-webpack-plugin": "^0.3.2",
"cross-env": "^3.1.2",
"css-loader": "^0.25.0",
"enzyme": "^2.3.0",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.9.0",
"isomorphic-style-loader": "^1.0.0",
post '/method' do
pars = JSON.parse(request.body.read)
tmp = `rm -rf tmp && mkdir tmp`
output = `cd tmp && git clone #{pars['repo']} && cd * && npm install && npm run lint 2>&1`
exit_code = $?.success?
puts exit_code
puts output
FROM ruby:2.3.3
RUN apt-get update
RUN apt-get install -y nodejs
RUN gem install sinatra --no-rdoc --no-ri
COPY ["Gemfile", "/Gemfile"]
COPY ["lint.sh", "/lint.sh"]
COPY ["lint.rb", "/lint.rb"]
COPY ["unit.rb", "/unit.rb"]
@skayred
skayred / bot.rb
Last active September 26, 2017 08:37
require 'telegram/bot'
require '/Users/sk_/projects/builder_bot/jenkins'
token = 'TELEGRAM_TOKEN'
loop do
begin
Telegram::Bot::Client.run(token) do |bot|
bot.options[:timeout] = 1
bot.listen do |message|
import { expect } from 'chai';
import * as sinon from 'sinon';
import * as News from '../../redux/modules/news/news';
import * as Seo from '../../redux/modules/seo/seo';
import { staticMetaProps } from '../../redux/modules/news/config';
import { IPostServerResponse } from '../../models/posts';
import { mockStore } from '../../helpers/test_helper';
import { IMochaDone } from '../../models/mocha_done';
import {
import * as React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import configureStoreMock from 'redux-mock-store';
import { configureStore } from '../redux/store';
import { client } from '../../client/client';
import { createMakeRequest } from './network_helper';
import { requestMiddleware } from './request_helper';
var path = require('path');
var webpack = require('webpack');
var postcssAssets = require('postcss-assets');
var postcssNext = require('postcss-cssnext');
const conf = {
frameworks: ['mocha', 'karma-typescript', 'es6-shim'],
browsers: ['PhantomJS'],
ERROR in ./src/app/components/subscribe/sub_dialog.tsx
(84,9): error TS2605: JSX element type 'Button' is not a constructor function for JSX elements.
ERROR in ./src/app/components/subscribe/sub_dialog.tsx
(125,9): error TS2605: JSX element type 'Button' is not a constructor function for JSX elements.
Types of property 'setState' are incompatible.
Type '{ <K extends never>(f: (prevState: void, props: IButtonProps) => Pick<void, K>, callback?: (() =>...' is not assignable to type '{ <K extends never>(f: (prevState: {}, props: any) => Pick<{}, K>, callback?: (() => any) | undef...'.
Types of parameters 'f' and 'f' are incompatible.
Type '(prevState: {}, props: any) => Pick<{}, any>' is not assignable to type '(prevState: void, props: IButtonProps) => Pick<void, any>'.
Types of parameters 'prevState' and 'prevState' are incompatible.
# Monit configuration for Puma
# Service name: puma_maintenance-server_production
#
check process puma_maintenance-server_production
with pidfile "/home/rvm/www/maintenance-server/shared/tmp/pids/puma.pid"
start program = "/usr/bin/sudo -iu rvm /bin/bash -c 'cd /home/rvm/www/maintenance-server/current && /usr/local/rvm/bin/rvm 2.3.0 do bundle exec puma -C /home/rvm/www/maintenance-server/shared/puma.rb --daemon'"
stop program = "/usr/bin/sudo -iu rvm /bin/bash -c 'cd /home/rvm/www/maintenance-server/current && /usr/local/rvm/bin/rvm 2.3.0 do bundle exec pumactl -S /home/rvm/www/maintenance-server/shared/tmp/pids/puma.state stop'"