Skip to content

Instantly share code, notes, and snippets.

View imrvelj's full-sized avatar
Undefined is not a function

Ivan Mrvelj imrvelj

Undefined is not a function
View GitHub Profile
@imrvelj
imrvelj / TestComponent.test.js
Created January 31, 2020 13:25 — forked from PMK/TestComponent.test.js
Mocha-webpack with Vue
import { mount } from '@vue/test-utils'
import { assert } from 'chai'
import Component from '../../../../src/components/TestComponent.vue'
describe('TestComponent.vue', () => {
it('renders', () => {
const wrapper = mount(Component)
assert.isTrue(
wrapper.is(true)
@imrvelj
imrvelj / Knex-Migrations-Seeding.md
Created June 29, 2019 01:21 — forked from NigelEarle/Knex-Migrations-Seeding.md
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

Flat Button
---
Height: 36dp
Minimum width: 88dp
Touch target height: 48dp
Corner radius: 2dp
Horizontal margin: 8dp
Horizontal padding: 8dp
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce
sudo usermod -aG docker ${USER}
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
{
"rulesDirectory": [
"dist/src"
],
"rules": {
"array-type": [true, "array"],
"arrow-return-shorthand": false,
"await-promise": false,
"adjacent-overload-signatures": false,
"align": [
{
"Message": "An error has occurred.",
"ExceptionMessage": "An error occurred while updating the entries. See the inner exception for details.",
"ExceptionType": "System.Data.Entity.Infrastructure.DbUpdateException",
"StackTrace": " at System.Data.Entity.Internal.InternalContext.SaveChanges()\r\n at System.Data.Entity.Internal.LazyInternalContext.SaveChanges()\r\n at System.Data.Entity.DbContext.SaveChanges()\r\n at KODAKAPI.Controllers.KEX_ImagesController.DeleteKEX_Images(Int32 id)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellatio
@imrvelj
imrvelj / install_intelr_graphic_linux_firmware.sh
Created October 20, 2017 11:40 — forked from zas/install_intelr_graphic_linux_firmware.sh
Fix "W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1.bin for module i915_bpo" (Ubuntu 16.04, kernel 4.4)
#!/bin/bash
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2 && \
tar xvjf sklgucver61.tar.bz2 && cd skl_guc_ver6_1/ && sudo ./install.sh
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/kbldmcver101.tar.bz2 && \
# Variables
set $mod Mod4
set $ws1 "1: "
set $ws2 "2: "
set $ws3 "3: "
set $ws4 "4: "
set $ws5 "5: "
set $ws6 "6: "
set $ws7 "7: "