Skip to content

Instantly share code, notes, and snippets.

María Alejandra Gómez C. oshingc

Block or report user

Report or block oshingc

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
View Angular
Angular 2 'component' is not a known element
These are the 5 steps I perform when I got such an error.
Are you sure the name is correct? (also check the selector defined in the component)
Declare the component in a module?
If it is in another module, export the component?
If it is in another module, import that module?
Restart the cli?
@oshingc
oshingc / app.js
Created Dec 1, 2017
Node running Angular
View app.js
var express = require('express');
var compression = require('compression');
var proxy = require('express-http-proxy');
var session = require('express-session');
var app = express();
var user = {uid: 'user', name: 'user A', role: '[{"portal":"worker","roles":["app_worker]}]'};
var proxySetting = {
View UI Tools
Colorzilla with external picket color.
View table.css
.table
{
display:table;
}
.table-row
{
display:table-row;
}
@oshingc
oshingc / Files
Last active Aug 29, 2015
Is a Java Thing
View Files
[How to load a file that is on the project]
1. Put the file at the path project/src/main/resources/myfolder/myfile.xls
2. Run this code:
import org.springframework.util.ResourceUtils;
File xls = ResourceUtils.getFile("classpath:myfolder/myfile.xls");
View Create Spring Maven Project
1. Clic derecho>New>Spring>Spring Maven Project>Finalizar.
2. Run Maven Update
3. Add Server
4. Clic derecho>Properties>Project Facets>Clic (agregar) Dynamic Web Module
(Para que aparezca run on server en el proyecto)
5. Build path java alternative jre (elige tu java)
6. edita el pom, verifica tipo de packaging y agrega biuld tag
<packaging>war</packaging>
@oshingc
oshingc / Resume
Last active Aug 29, 2015
Hacksummit Conference 2014
View Resume
Topics mentioned:
Crowdcast
The ServerSide.com
Hack.hands (marketplace to get instance codign help)
Hack.pledge
Advices for programming to improve productivity:
3. Pair programming
4. Eliminate distractions
View gist:5c2c7ad77529442e62d1
STRING TO CHAR[]
string tmp = "cat";
char tab2[1024];
strcpy(tab2, tmp.c_str());
ARRAY TO SET
std::set<T> set(begin(array), end(array));
View Controller
Recarga de la página
$scope.reloadState = function() {
$state.go($state.current, {}, {reload: true});
};
@oshingc
oshingc / Run App with Bower
Last active Aug 29, 2015
Correr Proyecto con NodeJS y Bower
View Run App with Bower
//Folder del proyecto
git checkout develop
git fetch
git pull
cd docente/
sudo npm install
//Se instalará npm sino se borra la carpeta .npm y luego se prosigue con sudo npm install
//Actualizar las librerías según bower.json
bower update
You can’t perform that action at this time.