Skip to content

Instantly share code, notes, and snippets.

View oshingc's full-sized avatar

María Alejandra Gómez C. oshingc

  • Verizon Peru
  • Lima, Perú
View GitHub Profile
@oshingc
oshingc / debug
Created March 23, 2024 16:28
debug oshingc
<html>
<head>
<script>
var numero1 = "3";
var numero2 = "4";
console.log("suma", suma(numero1, numero2));
function suma(a, b){
return a + b;
}
@oshingc
oshingc / app.js
Created December 1, 2017 21:28
Node running Angular
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 = {
@oshingc
oshingc / UI Tools
Created March 20, 2017 22:42
UI Tools
Colorzilla with external picket color.
@oshingc
oshingc / table.css
Created March 20, 2017 21:57
Templates
.table
{
display:table;
}
.table-row
{
display:table-row;
}
@oshingc
oshingc / Files
Last active August 29, 2015 14:19
Is a Java Thing
[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");
@oshingc
oshingc / Create Spring Maven Project
Created December 8, 2014 16:13
Create Project STS
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 August 29, 2015 14:10
Hacksummit Conference 2014
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
@oshingc
oshingc / gist:5c2c7ad77529442e62d1
Created November 21, 2014 13:29
C++ Functions
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));
@oshingc
oshingc / Controller
Created October 23, 2014 17:28
AngularJS
Recarga de la página
$scope.reloadState = function() {
$state.go($state.current, {}, {reload: true});
};
@oshingc
oshingc / Run App with Bower
Last active August 29, 2015 13:57
Correr Proyecto con NodeJS y 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