To use ES6 code in your AngularJS project along with gulp you’re going to need to transpile the ES6 code into ES5 code using babel. First, install the necessary packages: npm install babel-core babel-preset-env gulp-babel In your package.json, after dependencies and devDependencies, add "babel”…Andreas Halldén
Will & Skill Developers
Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.
Sometimes when You are developing locally You might want to connect to a remote server without opening up a lot of ports on the server. This is a simple trick to easily access services on a remote server without exposing the actual ports on the server. $ ssh -N -L 1234:localhost:1234 mickeymouse@exa…Faisal M
I just encountered a really annoying problem while trying to order a list alphabetically in Django. The items with the Swedish letters 'ÅÄÖ' was encoded to 'AAO' and therefore showed up incorrectly ordered. After some serious investigation it all came down to PostgreSQL. Apparently we need to tell o…Mohammed H
To create a custom action in django admin is pretty straight forward. You must define a function which is then referenced from the models admin definition. This function will accept three arguments: The modeladmin A HTTP request A queryset of the selected models An example of a Ordermodel with a cus…Erik S