Skip to content

Instantly share code, notes, and snippets.

David Pich davidpich

Block or report user

Report or block davidpich

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
@annalee
annalee / sample-slack-coc.md
Last active Oct 8, 2019
A sample code of conduct for social slack teams.
View sample-slack-coc.md

[SLACKNAME] Code of Conduct

Welcome!

[BRIEF DESCRIPTION OF THE SLACK AND ITS PURPOSE]

The current admins are:

  • [NAMES]
@cheynewallace
cheynewallace / nginx-ssl-wordpress-letsencrypt
Last active Jun 28, 2018
Nginx Site Running WordPress SSL Config Using LetsEncrypt Cert
View nginx-ssl-wordpress-letsencrypt
server {
listen 80;
server_name yoursite.com www.yoursite.com;
return 301 https://www.yoursite.com$request_uri;
}
# HTTPS server
server {
listen 443;
server_name www.yoursite.com yoursite.com;
@andreruffert
andreruffert / README.md
Last active Mar 14, 2016
JS/front-end Conferences in 2016 around Europe
View README.md
@aaronksaunders
aaronksaunders / Flickr-Search-Example:-Using-Controller-As-syntax-and-ui-router-resolve.markdown
Last active May 10, 2017
Flickr Search Example: Using Controller As syntax and ui-router resolve
View Flickr-Search-Example:-Using-Controller-As-syntax-and-ui-router-resolve.markdown

Flickr Search Example: Using Controller As syntax and ui-router resolve

Demo of loading images using the Flickr API with IonicFramework

showing ui-router functionality of controller as for cleaner looking code.

A Pen by aaron k saunders on CodePen.

License.

View essential-javascript-links.md
@staltz
staltz / introrx.md
Last active Oct 17, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@demisx
demisx / angularjs-providers-explained.md
Last active Aug 21, 2019
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
View angularjs-providers-explained.md
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@sgimeno
sgimeno / Gruntfile.js
Last active Jan 3, 2016
A Gruntfile for Apache Cordova app development. Mimics Cordova CLI commands. Usage: ''grunt exec:<command>[:platform]".
View Gruntfile.js
module.exports = function ( grunt ) {
/**
* Load required Grunt tasks. These are installed based on the versions listed
* in `package.json` when you do `npm install` in this directory.
*/
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-exec');
@idosela
idosela / http-response-interceptor.js
Last active Jul 18, 2018
Sample code for ng-conf 2014
View http-response-interceptor.js
angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) {
$httpProvider.responseInterceptors.push([
'$q', '$templateCache', 'activeProfile',
function($q, $templateCache, activeProfile) {
// Keep track which HTML templates have already been modified.
var modifiedTemplates = {};
// Tests if there are any keep/omit attributes.
var HAS_FLAGS_EXP = /data-(keep|omit)/;
@jelbourn
jelbourn / api-provider.js
Last active Apr 29, 2019
Example of using an angular provider to build an api service. Subject of August 20th 2013 talk at the NYC AngularJS Meetup. http://www.meetup.com/AngularJS-NYC/events/134578452/See in jsbin: http://jsbin.com/iWUlANe/5/editSlides: https://docs.google.com/presentation/d/1RMbddKB7warqbPOlluC7kP0y16kbWqGzcAAP6TYchdw
View api-provider.js
/**
* Example of using an angular provider to build an api service.
* @author Jeremy Elbourn (@jelbourn)
*/
/** Namespace for the application. */
var app = {};
/******************************************************************************/
You can’t perform that action at this time.