This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.fontSize": 18, | |
"workbench.colorTheme": "City Lights", | |
"editor.fontFamily": "FiraFlott, Consolas, 'Courier New', monospace", | |
"editor.tokenColorCustomizations": { | |
"textMateRules": [ | |
{ | |
"scope": [ | |
//following will be in italic (=FlottFlott) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The following code is a series of test that were written in the order you'll read them. After | |
// each test was written it was run against the HashMap and the implementation was updated if it | |
// failed. The HashMap code is the final implementation that was built naively to pass each test. | |
// The Tests: | |
public class HashMapTest { | |
private HashMap map; | |
// Set up an empty map before each test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Semantic Versioning | |
# Given a version number MAJOR.MINOR.PATCH, increment the: | |
# MAJOR version when you {make backwards-incompatible changes} | |
# MINOR version when you {add functionality in a backwards-compatible manner} | |
# PATCH version when you make backwards-compatible bug fixes. | |
--------------------------------------------------------------------------------------- | |
"Como se llama este operador en ruby?" ~> | |
- - - - - - - - - - - - - - - - - - - - - | |
pessimistic operator | |
--------------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fessmodule = angular.module('myModule', []); | |
fessmodule.controller('ctrlRead', function ($scope, $filter) { | |
// init | |
$scope.sort = { | |
sortingOrder : 'id', | |
reverse : false | |
}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************** Complex form *****************************************/ | |
.row { | |
background-color: lightblue; | |
border: 1px solid red; | |
} | |
<div class="row"> | |
<div class="col-md-8"> | |
<div class="row"> | |
<div class="col-md-3"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************Back button*********************************/ | |
<g:link uri="${request.getHeader('referer')}"> | |
<button type="button" class="btn btn-warning"><i class="ionicons ion-arrow-return-left"></i> </button> | |
</g:link> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Imprimir bonito en consola*/ | |
Gson gson = new GsonBuilder().setPrettyPrinting().create(); | |
String prettyJson = gson.toJson(params); | |
println(prettyJson); | |
/**************en el datasource expresion de una tabla en ireports ********************************/ | |
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{checadas}) | |
new net.sf.jasperreports.engine.JREmptyDataSource(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**********************************************/ | |
$.ajax({ | |
type: 'POST', | |
url: url, | |
data: {name: 'colbert'}, | |
success: function (data) { | |
console.log(data); | |
} | |
}); | |
/**********************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP SCHEMA public CASCADE; | |
CREATE SCHEMA public; | |
GRANT ALL ON SCHEMA public TO postgres; | |
GRANT ALL ON SCHEMA public TO public; | |
COMMENT ON SCHEMA public IS 'standard public schema'; | |
/*Borrar un constraint*/ | |
alter table empleado drop constraint empleado_nombre_key// la clave 'empleado_nombre_key' es el identificador |