Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Serhii Matrunchyk matrunchyk

🎯
Focusing
Block or report user

Report or block matrunchyk

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
View keybase.md

Keybase proof

I hereby claim:

  • I am matrunchyk on github.
  • I am matrunchyk (https://keybase.io/matrunchyk) on keybase.
  • I have a public key whose fingerprint is 82BA 18FC 9341 45DC 350D F5B0 2534 5C28 5B6B 4A61

To claim this, I am signing this object:

@matrunchyk
matrunchyk / gist:9faccda5f24a86ee3dbc6c4337951030
Last active Mar 12, 2019
Working example of `vue.config.js` for vue-cli-3 with electron-plugin support (https://github.com/nklayman/vue-cli-plugin-electron-builder), GraphQL and Stylus
View gist:9faccda5f24a86ee3dbc6c4337951030
const path = require('path');
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = {
pluginOptions: {
graphqlMock: true,
apolloEngine: true,
View beanstalkd.config
sources:
/tmp: https://github.com/kr/beanstalkd/archive/v1.10.tar.gz
commands:
01_make_beanstalkd:
cwd: /tmp/beanstalkd-1.10
command: make
02_install_beanstalkd:
cwd: /tmp/beanstalkd-1.10
View .eslintrc.js
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
},
env: {
browser: true,
@matrunchyk
matrunchyk / index.js
Created Mar 27, 2017
Laravel + VueJS + Karma
View index.js
// This file is specified to load ing karma.conf.js (Files section)
// @see https://gist.github.com/matrunchyk/a79accea739f586074e005e0542200ea
//
// Polyfill fn.bind() for PhantomJS
/* eslint-disable no-extend-native */
// Function.prototype.bind = require('function-bind');
require('babel-polyfill');
// require all test files (files that ends with .spec.js)
const testsContext = require.context('./specs', true, /\.spec$/);
@matrunchyk
matrunchyk / karma.conf.js
Last active Mar 27, 2017
Laravel + VueJS + Karma
View karma.conf.js
const webpackConfig = require('../../../../../node_modules/laravel-mix/setup/webpack.config');
// const path = require('path');
// safari >=4
// no need for app entry during tests
delete webpackConfig.entry;
module.exports = (config) => {
// noinspection ES6ConvertVarToLetConst
View laravel_localization.php
Route::get('/js/lang.js', function () {
$lang = config('app.locale');
$files = glob(resource_path('lang/' . $lang . '/*.php'));
$strings = [];
foreach ($files as $file) {
$name = basename($file, '.php');
$strings[$name] = require $file;
}
@matrunchyk
matrunchyk / # php70 - 2016-09-12_13-54-43.txt
Created Sep 12, 2016
php70 (homebrew/php/php70) on Mac OS X 10.12 - Homebrew build logs
View # php70 - 2016-09-12_13-54-43.txt
Homebrew build logs for homebrew/php/php70 on Mac OS X 10.12
Build date: 2016-09-12 13:54:43
View ThemeViewExample.php
<?php
public function renderSamplePage($data) {
$view = new \ThemeView('sample_page', $data);
$view->render();
}
@matrunchyk
matrunchyk / ThemeView.php
Last active May 18, 2016
ThemeView Decorator
View ThemeView.php
<?php
class ThemeView
{
private $args;
private $file;
public function __get($name)
{
return $this->args[$name];
You can’t perform that action at this time.