Skip to content

Instantly share code, notes, and snippets.

View jonathansolorzn's full-sized avatar

Jonathan Solorzano jonathansolorzn

  • El Salvador
View GitHub Profile
@jonathansolorzn
jonathansolorzn / read-product.controller.js
Last active November 7, 2015 05:37
Angular Controller that needs improvements. Here's the ReadProductFactory -> https://goo.gl/etvuqq
(function () {
'use strict';
angular
.module( 'app.purchases.products' )
.controller( 'ReadProductController', ReadProductController );
//Check out the description to go to ReadProductFactory
ReadProductController.$inject = [ '$scope', 'ReadProductFactory' ];
@jonathansolorzn
jonathansolorzn / read-product.factory.js
Created November 7, 2015 05:31
Factory for READ products data.
(function () {
'use strict';
angular
.module( 'app.purchases.products' )
.factory( 'ReadProductFactory', ReadProductFactory );
ReadProductFactory.$inject = [ 'Restangular' ];
@jonathansolorzn
jonathansolorzn / purchases-dashboard.controller.js
Created November 14, 2015 19:19
Example controller where contentService is called and used
(function () {
'use strict';
angular
.module( 'app.purchases' )
.controller( 'PurchasesDashboardController', PurchasesDashboardController );
PurchasesDashboardController.$inject = [ '$scope', 'contentService' ];
@jonathansolorzn
jonathansolorzn / content.service.js
Created November 14, 2015 19:20
This is a service to get the json file that contains the static data of a website, it's used in this controller: https://gist.github.com/feniixx/1b170ed39a557329372e
(function () {
'use strict';
angular
.module( 'app.core' )
.service( 'contentService', contentService );
contentService.$inject = [ '$http' ];
using System;
using System.Numerics;
namespace Guia3Ej15
{
public class Program
{
public static void Main()
{
double a, b;//Variables para numero complejo1