Skip to content

Instantly share code, notes, and snippets.

@avilaj
avilaj / server-validation.component.js
Last active February 16, 2017 17:19
AngularJS Server-side validation directive
/*
* Let’s assume that the server returns validation errors using
* the following format:
*
* [{
* "field": "code",
* "type": "unique",
* "value": 123,
* "message": "this field is unique"
* }]
@avilaj
avilaj / index.html
Last active July 13, 2017 00:12 — forked from robschmuecker/README.md
Trying to do some cell
<!DOCTYPE html>
<style type="text/css">
</style>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<body>
<script src="https://rawgit.com/intercellular/cell/plan/cell.js"></script>
<script async src="zapp.js"></script>
@avilaj
avilaj / 0_reuse_code.js
Created July 12, 2017 23:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console