Skip to content

Instantly share code, notes, and snippets.

@douglasduteil
douglasduteil / angularloader.js
Created September 11, 2012 01:20
Missing « controller » in the angular.Module interface of the angularloader.js (see https://github.com/angular/angular-seed/blob/master/app/index-async.html)
// include angular loader, which allows the files to load in any order
/*
AngularJS v1.0.0rc1
(c) 2010-2012 AngularJS http://angularjs.org
License: MIT
*/
'use strict';(function(i){function d(c,a,e){return c[a]||(c[a]=e())}return d(d(i,"angular",Object),"module",function(){var c={};return function(a,e,f){e&&c.hasOwnProperty(a)&&(c[a]=null);return d(c,a,function(){function b(a,b,d){return function(){c[d||"push"]([a,b,arguments]);return g}}if(!e)throw Error("No module: "+a);var c=[],d=[],h=b("$injector","invoke"),g={_invokeQueue:c,_runBlocks:d,requires:e,name:a,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),
value:b("$provide","value"),constant:b("$provide","constant","unshift"),filter:b("$filterProvider","register"),controller:b('$controllerProvider', 'register'),directive:b("$compileProvider","directive"),config:h,run:function(a){d.push(a);return this}};f&&h(f);return g})}})})(window);
@douglasduteil
douglasduteil / codemirror-mode-regex.css
Last active June 13, 2021 00:43
Here is a start of a regex mode for CodeMirror inspired by [Regex Colorizer](http://stevenlevithan.com/regex/colorizer/)
.cm-s-default span.cm-a{background: #aad1f7;}
.cm-s-default span.cm-b{background: #f9ca69;}
.cm-s-default span.cm-c{color: #007a09;}
.cm-s-default span.cm-g1{background: #d2f854;}
.cm-s-default span.cm-g2{background: #9ec70c;}
.cm-s-default span.cm-g3{background: #ecc9f7;}
.cm-s-default span.cm-g4{background: #54b70b;}
.cm-s-default span.cm-g5{background: #b688cf;}
@douglasduteil
douglasduteil / README.md
Last active December 16, 2015 12:29
Guide de démarrage pour la création de parsers sous ParserCliff v0.0.3 !

ParserCliff version 0.0.3

ParserCliff est une plateforme d'exécution de parsers. Elle permet l'intégration de vos propres parsers, leurs exécutions sur un texte de votre choix, et l'exportation du résultat obtenu (sous XML).

Utilisation

ParserCliff peut être lancé à partir d'un serveur ou localement grâce à Node WebKit

Sur serveur local sous linux

@douglasduteil
douglasduteil / .travis.yml
Last active February 22, 2021 13:27 — forked from lukewpatterson/gist:4242707
Here is how I allow Git SSH authentication in Travis CI. I'm using it to connect Travis to my repo organization AngularUI. This trick is a fork. The goal is to encode the RSA private deploy key in the .travis.yml as "-secure: xxxxx.....".
---
language: node_js
node_js:
- '0.10'
branches:
only:
- master
before_script: .travis/before_script.sh
script: echo -e " >>> Do something... \"grunt\" for example\n"
after_success: .travis/after_success.sh
@douglasduteil
douglasduteil / Markdown.sublime-settings
Last active December 27, 2015 11:19
Etienne Sublime User config ;) (install TrailingSpaces, Nexus Theme, etc...)
{
"extensions":
[
"md",
"mdown",
"mdwn",
"mmd",
"txt"
],
# core {{{
[core]
editor = subl -n -w
excludesfile = /home/x/.gitignore_global
pager=less -x4
#}}}
# user {{{
[user]
email = [email protected]
@douglasduteil
douglasduteil / karma-json-reporter-output.json
Created December 19, 2013 14:12
Here is a example of the karma json reporter output
{
"browsers": {
"J5RIN6sK-_Hhjeq6MetI": {
"id": "J5RIN6sK-_Hhjeq6MetI",
"fullName": "Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.2 Safari/534.34",
"name": "PhantomJS 1.9.2 (Linux)",
"state": 1,
"lastResult": {
"success": 0,
"failed": 1,
@douglasduteil
douglasduteil / web-animations.min.js
Created July 29, 2014 07:58
A web-animations/web-animations-next build version (247654e00c2371eede3eea53240e06049cae8de5)
// Copyright 2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,

function

angular.lowercase

@douglasduteil
douglasduteil / data.json
Created August 19, 2014 21:20
AngularMovie datas
[
{
"id":1,
"title":"Avatar",
"releaseYear":"2010",
"poster":"img/avatar.jpg",
"directors":"James Cameron",
"actors":"Sam Worthington, Zoe Saldana, Sigourney Weaver, Stephen Lang, Michelle Rodriguez",
"synopsis":"Sur la lointaine planète de Pandora, Jake Sully, un héros malgré lui, se lance dans une quête de rédemption, de découverte, d'amour inattendu, dont l'issue sera un combat héroïque pour sauver toute une civilisation.",
"rate":"3"