Skip to content

Instantly share code, notes, and snippets.

Undefined is not a function

Ivan Mrvelj imrvelj

Undefined is not a function
View GitHub Profile
NigelEarle /
Last active Aug 8, 2022
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


A Beginner's Hip Hop Playlist

Edit: After some constructive feedback on hacker news, I think that it's worth mentioning that this playlist is very skewed towards recent material, although I've included some essentials from the past.

I think that hip hop is one of the most, if not the most, misunderstood genres of music. In this playlist, rather than focusing on one artist or one type of hip hop, I tried to give examples of a bunch of different artists with songs ranging from the early 90's all the way up until 2017. The songs are in no particular order and the sounds cover a very broad spectrum. Some of them are pretty damn explicit, so I wouldn't necessarily throw this playlist on if there are kids around. I provided the lyrics to each song, the sub-genre that I'd put the artist in (very rough), and a brief description. This playlist is not by any means meant to be comprehensive and in many cases doesn't necessarily represent the artist's "best" song, but instead aims at exposing you to some of my fa

marshallswain /
Created Apr 17, 2017
FeathersJS: Better permissions

Better Permissions Control

We have introduced 3 new hooks and 2 new middleware as part of feathers-permissions that give you much more flexibility and control over access permissions than was previously possible. Permissions are stored in the database on the entity record that needs to have access permissions checked (typically a user). They look like this:

    '*', // all services, all methods, all docs
    'users:*', // all methods on users service
    'users:remove:*', // can remove any user
    '*:remove', // can remove on any service
JamieMason / .babelrc
Created Dec 5, 2016
Tree-Shaking with Babel 6, Webpack 2, and React.
View .babelrc
"presets": [
["es2015", {
"es2015": {
"loose": true,
"modules": false
}], "react"
zhenkyle / Arch Linux mkinitcpio: Possibly missing firmware for
Created May 6, 2016
Arch Linux mkinitcpio: Possibly missing firmware for module
View Arch Linux mkinitcpio: Possibly missing firmware for


In Arch Linux mkinitcpio -p linux


Possibly missing firmware for module: aic94xx
 Possibly missing firmware for module: wd719x
btroncone /
Last active Jul 21, 2022
A Comprehensive Introduction to @ngrx/store - Companion to Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents