Skip to content

Instantly share code, notes, and snippets.

View jfhernandeze's full-sized avatar

FERNANDO HERNANDEZ jfhernandeze

View GitHub Profile
typescript error
Type AlertasPage in /Users/macbook/WebstormProjects/nrcarnosntrol-ionic2/src/pages/alertas/alertas.ts is
part of the declarations of 2 modules: AppModule in
/Users/macbook/WebstormProjects/nrcarnosntrol-ionic2/src/app/app.module.ts and AlertasPageModule in
/Users/macbook/WebstormProjects/nrcarnosntrol-ionic2/src/pages/alertas/alertas.module.ts! Please consider
moving AlertasPage in /Users/macbook/WebstormProjects/nrcarnosntrol-ionic2/src/pages/alertas/alertas.ts to a
higher module that imports AppModule in
/Users/macbook/WebstormProjects/nrcarnosntrol-ionic2/src/app/app.module.ts and AlertasPageModule in
/Users/macbook/WebstormProjects/nrcarnosntrol-ionic2/src/pages/alertas/alertas.module.ts. You can also
create a new NgModule that exports and includes AlertasPage in
MacBook-Pro-de-MacBook:nrcarnosntrol-ionic2 jfhernandeze$ ionic cordova run android
Running app-scripts build: --platform android --target cordova
[15:27:15] build dev started ...
[15:27:15] clean started ...
[15:27:15] clean finished in 21 ms
[15:27:15] copy started ...
[15:27:15] deeplinks started ...
[15:27:16] deeplinks finished in 109 ms
[15:27:16] transpile started ...
[15:27:20] transpile finished in 4.25 s
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class ClearBeanstalkdQueueCommand extends Command {
/**
@jfhernandeze
jfhernandeze / zerfill.js
Created January 15, 2015 06:48
Zerofill for javascript
function zeroFill(number, width) {
width -= number.toString().length;
if (width > 0) {
return new Array(width + (/\./.test(number) ? 2 : 1)).join('0') + number;
}
return number + ""; // always return a string
}
@jfhernandeze
jfhernandeze / navigateDate.js
Last active August 29, 2015 14:13
Change dates in javascript
var date = new Date();
date.setDate(date.getDate() - k);
var dateMsg = date.getFullYear() + "-" + zeroFill(date.getMonth() + 1, 2) + "-" + zeroFill(date.getDate(), 2);
This file has been truncated, but you can view the full file.
0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'cordova',
1 verbose cli 'ionic' ]
2 info using npm@1.4.3
3 info using node@v0.10.26
4 verbose cache add [ 'cordova', null ]