Skip to content

Instantly share code, notes, and snippets.

View Tabares's full-sized avatar

Jose Tabares Tabares

View GitHub Profile
@Tabares
Tabares / README.md
Created August 7, 2017 18:53
angular 2 basic counter

angular 2 basic counter

Basic counter in Angular 2.

@Tabares
Tabares / README.md
Created August 7, 2017 18:53 — forked from btroncone/README.md
angular 2 basic counter

angular 2 basic counter

Basic counter in Angular 2.

@Tabares
Tabares / index.js
Created July 25, 2016 20:50
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
var $ = require('jquery');
$('#click').click(function(){
console.log('click');
$('.hide').css('display', 'none');
});
@Tabares
Tabares / html.index
Created April 21, 2016 21:36
Collections in Backbone
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script src="//jashkenas.github.io/underscore/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
@Tabares
Tabares / html.index
Created April 21, 2016 21:35
Models in Backbone
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script src="//jashkenas.github.io/underscore/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
@Tabares
Tabares / gist:b310f4fa67ea7816306e
Created January 21, 2016 21:14 — forked from Mithrandir0x/gist:3639232
Difference between Service, Factory and Provider in AngularJS
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"