Nomis

My personal blog, where i share tips and tricks about frontend, backend developement. Enjoy!


This little helper will create an object based on the params that the url have set. function getQueryParams(qs) { qs = qs.split('+').join(' '); var params = {}, tokens, re = /[?&]?([^=]+)=([^&]*)/g; while…

We have the following ways of saving our users data and match it with the user without a login system Cookie Session LocalStorage LocalStorage is widely supported it goes from IE8 and up. It contains…

I got intrigued to write this article, because I've been in the same company for 8 months now, and seen the code thats been written before my time. And i think that some of the…

Here is some of my linux alias which i use a lot and i always are building on to improve - i also add my ssh addresses and then i just have a private key…

Loaded in an iframe or not - came across this issue while developing a product where we give some partners iframes of our solutions so they can run it, and it thought what about an…

This is just a function that remove null values from a object recursively var removeNulls = function(obj){ var isArray = obj instanceof Array; for (var k in obj){ if (obj[k]===null) { if(isArray) { obj.splice(…

This is a list of nice to know stuff when using digitalocean Wordpress premissions sudo chown www-data:www-data * -R Nginx setup This is a nice way of routing with nginx, when you have multiple node…

A nice service to encode and decode objects - i will share because it feels well done :) (function() { 'use strict'; /** * # xorcipher[module] */ /** * @name Xorcipher[factory] */ angular .module('xorcipher', []) .factory("Xorcipher",[function(){ var b64_table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+…

If you been frontend developing you might have the knowledge of the animate.css library which is a collection of animations which is very useful, i did a sass version of that library back in…

When we're talking about webdesign, its an issue that all developers have to deal with. Especially front-end developers, we work with it every day, backenders does it in another form they design an api which…

Here i got inspired and use the material mixin from another guy that i found on codepen. But i made some projects here which is some nice materialized css See the Pen RNXyGg by Simon…

This is basicly a post that tries to cover all of your FAQ on how to run a server, how to start it up, how to run different srv configs from rcon, and some useful…

It's essential to develop great websites/applications that you modulize your work its faster to update, easy'er to control and very nice if you wanna reuse functionallity. Here is a guide on how to make…

Iv'e been struggling the last 2 hours with using angular material and solving scrolling issues, now i found a solution which solved it 99%, there can still be forced a jank, but i dosn't misbehave…

I found this great article about graceful menus which is really good practice for a css menu See the pen below - its a really good example See the Pen CSS3 Dropdown Menu by John…

Web UI: https://dk.pinterest.com/simonpetersen/ui-web-design/ Mobile: https://dk.pinterest.com/simonpetersen/mobile-design/ Webshops: https://cdp.pl/…

These where some i found on codepen.io and everytime i find new loaders i will put them in here. They have been bound to my account because i fork them so if they change…

I found a json to xml or xml to json converter which is basically just a javascript function: http://goessner.net/download/prj/jsonxml/…

Iv'd started on testing es6 a lot and there are some new stuff that i like, basically this object short hand, which when you use it, it will make your code cleaner and makes a…