Skip to content

Instantly share code, notes, and snippets.

View paulhhowells's full-sized avatar

Paul H Howells paulhhowells

  • Shepperton, U.K.
View GitHub Profile
module.exports = {
"extends": ["eslint:recommended"],
"env": {
"browser": true,
"es6": false,
"node": true
},
"globals": {
"jQuery": true,
"$": true,
@paulhhowells
paulhhowells / gulpfile.js
Last active May 12, 2016 10:46
Gulp file for an Angular 1.x project
/*
A typical project directory structure would be similar to:
project/
- app/ # all the source angular files in here
- dist/ # compiled files saved here
--- app.js
--- app.min.js
- doc/ # generated documentation saved here
- node_modules/ # generated by npm install
- test/
@paulhhowells
paulhhowells / karma.phantomjs.conf.js
Last active May 4, 2016 18:07
A karma configuration file that uses PhantomJS and Jasmine
/* Karma configuration
* http://karma-runner.github.io/0.10/config/configuration-file.html
*/
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
[Tt]humbs.db
.Trashes
.DS_Store
.DS_Store?
__*
.idea
.tmp
tmp
node_modules
npm-debug.log

What is dgeni?

dgeni is a documentation generator developed by the Angular team. Ironically it lacks documentation right now, so we try to develop a very simple step-by-step-guide here, until a better documentation is available. Please share and fork this Gist.

dgeni is currently used in these project

Why should I use dgeni?

Vocabulaire
Useful words for a richer vocabulary.
abductive / a form of logical inference which starts with an observation or set of observations then seeks to find the simplest and most likely explanation for the observations. Yields plausible conclusion, but does not prove it.
abeyance / let their talents slide into abeyance
abstruse / adjective: difficult to understand
accreted / grow by accumulation or coalescence
acerbic /
acquiesce /
// A better (Drupal friendly) float fix that does not hide overflow.
// Read more at: http://nicolasgallagher.com/micro-clearfix-hack/
@mixin float-fix () {
// IE 6 & 7
*zoom: 1;
&:before,
&:after {
// Space content avoids an Opera bug when contenteditable attribute is used elsewhere in the document.
.float-fix {
*zoom: 1;
}
.float-fix:before,
.float-fix:after {
content: " ";
display: table;
visibility: hidden;
}
.float-fix:after {
.adjust {
*zoom: 1;
}
.adjust:before,
.adjust:after {
content: " ";
display: table;
visibility: hidden;
}
.adjust:after {
.adjust {
@include: float-fix();
}
.adjust__fix {
float: left;
}
.adjust__fix--10 {
// Rather than include this example class, it’s expected a sibling class would determine width.
width: 10em;
}