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
@jripault
jripault / JacksonDeserializationTest.java
Last active December 17, 2015 16:59
Verify that Jackson can de/serialize an object
@Test
public void testMapper(){
List<Note> notes= new ArrayList<Note>();
HibernateAwareObjectMapper mapper = new HibernateAwareObjectMapper();
String jsonInput =
"{\n" +
" \"type\" : \"org.samil.catalog.model.event.RecordEvent\",\n" +
" \"id\" : null,\n" +
" \"userId\" : null,\n" +
" \"structureId\" : null,\n" +
@oshingc
oshingc / Git Commands
Last active May 6, 2024 09:57
Git Commands - Saving changes to a new Branch
//Get the project
git clone git@github.com:username/repositoryname.git
//Make changes to the project
//Problem! You made changes to the project beeing on master branch, how do you save those changes to a new branch?
//Save a stack
git stash
//Check actual file mode