Skip to content

Instantly share code, notes, and snippets.

Jeff French jeff-french

Block or report user

Report or block jeff-french

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jeff-french
jeff-french / README.md
Last active Jan 10, 2018
Update all outdated npm packages
View README.md

To update all packages that are returned by the npm outdated command to their latest version:

$ npm outdated | tail -n +2 | tr -s ' ' | cut -d ' ' -f1 | xargs -I {} npm up {}

Explaination

npm outdated: Lists all packages installed that are not at their latest version.

@jeff-french
jeff-french / build-spec.js
Created Apr 14, 2017
Swagger with merges
View build-spec.js
var resolve = require('json-refs').resolveRefs;
var YAML = require('yaml-js');
var fs = require('fs');
var root = YAML.load(fs.readFileSync('index.yml').toString());
var options = {
filter : ['relative', 'remote'],
loaderOptions : {
processContent : function (res, callback) {
callback(null, YAML.load(res.text));
View keybase.md

Keybase proof

I hereby claim:

  • I am jeff-french on github.
  • I am jfrench (https://keybase.io/jfrench) on keybase.
  • I have a public key ASDeIDr2W-uhvt6FtfYkhKZ4o4TXhgwOfrIU0Usfal6-oQo

To claim this, I am signing this object:

View gruntfile.js.md
grunt.initConfig({ 
  ripple: { 
    options: { 
      path: 'www', 
      keepAlive: true 
    }
  }
});
View gulpfile.js.md
var gulp    = require('gulp');  
var replace = require('gulp-replace-task');  
var args    = require('yargs').argv;  
var fs      = require('fs');

gulp.task('replace', function () {  
  // Get the environment from the command line
  var env = args.env || 'localdev';
View config files.md
// localdev.json 
{
  "apiUrl":"https://dev.coolapp.com/api"
} 

// production.json 
{
  "apiUrl":"https://www.coolapp.com/api"
}
View coolapp-service.js.md
angular.module('coolapp', ['coolapp-constants'])
  .service('backendService', function($http, apiUrl){ 
    //Use the apiUrl variable to make API calls 
  });
View coolapp.js.md
angular.module('coolapp', ['coolapp-constants']);
@jeff-french
jeff-french / constants.js.md
Last active Nov 23, 2015
Environment Variables in AngularJS and Ionic - 1
View constants.js.md
angular.module('coolapp-constants',[])
  .constant('apiUrl', '@@apiUrl');
@jeff-french
jeff-french / css_resources.md
Last active Aug 29, 2015 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.
View css_resources.md

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

You can’t perform that action at this time.