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

Problem

In Arch Linux mkinitcpio -p linux

shows

Possibly missing firmware for module: aic94xx
 Possibly missing firmware for module: wd719x
@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

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}
Flat Button
---
Height: 36dp
Minimum width: 88dp
Touch target height: 48dp
Corner radius: 2dp
Horizontal margin: 8dp
Horizontal padding: 8dp
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