Skip to content

Instantly share code, notes, and snippets.

View joma74's full-sized avatar
🛴
Working from home

joma74 joma74

🛴
Working from home
View GitHub Profile
@joma74
joma74 / !Travis
Created July 15, 2018 10:58
!Travis
https://github.com/kristerkari/travis-chrome
An example repo to show how to run tests with Karma runner using Chrome browser (with Xvfb) in Travis CI
@joma74
joma74 / !Ubuntu Common SW
Last active November 16, 2021 15:49
Ubuntu Common SW
Ubuntu Common SW
@nwronski
nwronski / chai.d.ts
Last active November 2, 2018 02:19
TypeScript typings for dirty-chai and sinon-chai
/**
* Typings for dirty-chai
* @note Requires @types/chai to be installed
* @author Nick Wronski <https://github.com/nwronski>
*/
/* tslint:disable:interface-name callable-types */
declare namespace Chai {
export interface LanguageChains {
always: Assertion;
@joma74
joma74 / !VSCode
Last active August 28, 2017 08:56
!VSCode
All about MS VS Code
@joma74
joma74 / !Selenium
Last active April 25, 2017 18:51
!Selenium
All abou Selenium
@joma74
joma74 / !Atom
Last active April 25, 2017 18:47
!Atom
All about Atom
@joma74
joma74 / !Ubuntu Unix Utils
Last active January 30, 2022 13:12
!Ubuntu Unix Utils
All about Ubuntu Unix Utils
http://unix.stackexchange.com/questions/35338/su-vs-sudo-s-vs-sudo-i-vs-sudo-bash
# login shell
# sets HOME to /root
# Prunes the environment
sudo su -
# login shell
# sets HOME to /root
@JacobBennett
JacobBennett / blog.md
Last active October 8, 2025 12:36
Clean up your Vue modules with ES6 Arrow Functions

Recently when refactoring a Vue 1.0 application, I utilized ES6 arrow functions to clean up the code and make things a bit more consistent before updating to Vue 2.0. Along the way I made a few mistakes and wanted to share the lessons I learned as well as offer a few conventions that I will be using in my Vue applications moving forward.

The best way to explain this is with an example so lets start there. I'm going to throw a rather large block of code at you here, but stick with me and we will move through it a piece at a time.

<script>

// require vue-resource...

new Vue({
@joma74
joma74 / !node npm yarn
Last active April 11, 2022 10:12
nodejs
All about node, npm and yarn
@joma74
joma74 / !Ubuntu
Last active November 16, 2021 23:56
Ubuntu
All about Ubuntu