Skip to content

Instantly share code, notes, and snippets.

@douglasduteil
douglasduteil / angularloader.js
Created Sep 11, 2012
Missing « controller » in the angular.Module interface of the angularloader.js (see https://github.com/angular/angular-seed/blob/master/app/index-async.html)
View angularloader.js
// 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 Mar 21, 2019
Here is a start of a regex mode for CodeMirror inspired by [Regex Colorizer](http://stevenlevithan.com/regex/colorizer/)
View codemirror-mode-regex.css
.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 Dec 16, 2015
Guide de démarrage pour la création de parsers sous ParserCliff v0.0.3 !
View README.md

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 May 11, 2019 — 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.....".
View .travis.yml
---
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 Dec 27, 2015
Etienne Sublime User config ;) (install TrailingSpaces, Nexus Theme, etc...)
View Markdown.sublime-settings
{
"extensions":
[
"md",
"mdown",
"mdwn",
"mmd",
"txt"
],
View .gitconfig
# core {{{
[core]
editor = subl -n -w
excludesfile = /home/x/.gitignore_global
pager=less -x4
#}}}
# user {{{
[user]
email = douglasduteil@gmail.com
@douglasduteil
douglasduteil / karma-json-reporter-output.json
Created Dec 19, 2013
Here is a example of the karma json reporter output
View karma-json-reporter-output.json
{
"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 Jul 29, 2014
A web-animations/web-animations-next build version (247654e00c2371eede3eea53240e06049cae8de5)
View web-animations.min.js
// 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,
@douglasduteil
douglasduteil / data.json
Created Aug 19, 2014
AngularMovie datas
View data.json
[
{
"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"
You can’t perform that action at this time.