Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html ng-app='APP'>
<head>
<meta name="description" content="Angular Nested recursive directives" />
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
</head>
<body>
<div ng-controller="IndexCtrl">
<collection collection='tasks'></collection>
</div>
@crissdev
crissdev / .jshintrc.coffee
Created October 8, 2014 09:56 — forked from nkbt/.jshintrc
.jshintrc for node.js written in CoffeeScript
# -----------------
# --------------------------------------------------------------------
# JSHint Configuration, Strict Edition
# --------------------------------------------------------------------
#
# This is a options template for [JSHint][1], using [JSHint example][2]
# and [Ory Band's example][3] as basis and setting config values to
# be most strict:
#
# * set all enforcing options to true
@crissdev
crissdev / index.js
Created November 13, 2014 16:01
4 lines dev web server
var express = require('express');
var app = express();
app.use(express.static(__dirname));
app.listen(3000);
@crissdev
crissdev / .editorconfig
Created March 1, 2015 20:33
.editorconfig - node.js and JavaScript development
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
@crissdev
crissdev / rx-dom.d.ts
Last active September 20, 2017 10:34
Typescript definition file for RxJS-DOM
///<reference path="../rx/rx.d.ts"/>
declare module Rx {
declare module DOM {
export interface AjaxSettings {
async?: boolean;
body?: string;
// This options does not seem to be used in the code yet
// contentType?: string;
crossDomain?: boolean;
<!DOCTYPE html>
<html>
<head>
<title>Test page</title>
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.11/es5-shim.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/json2/20150503/json2.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.3.0/knockout-debug.js" type="text/javascript"></script>
<script src="https://cdn.rawgit.com/crissdev/knockout.mapping/master/dist/knockout.mapping.js" type="text/javascript"></script>
@crissdev
crissdev / meta-tags.md
Last active September 4, 2015 12:08 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@crissdev
crissdev / introrx.md
Last active September 9, 2015 09:25 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
@crissdev
crissdev / proiect-uia.trig
Created May 22, 2018 13:50
Proiect Web Semantic (former UIA)
@prefix : <http://crissdev.com#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
:Ontology {