####Replace USER with username and REPO with the name of the repository/application.
git init
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
git add whatever
git commit -a
package ${PACKAGE_NAME}; | |
import org.springframework.hateoas.Link; | |
import org.springframework.hateoas.Resource; | |
public class ${NAME} extends Resource<${ENTITY}> { | |
public ${NAME}(${ENTITY} content, Link... links) { | |
super(content, links); | |
} |
/* | |
* Save a text file locally with a filename by triggering a download | |
*/ | |
var text = "hello world", | |
blob = new Blob([text], { type: 'text/plain' }), | |
anchor = document.createElement('a'); | |
anchor.download = "hello.txt"; | |
anchor.href = (window.webkitURL || window.URL).createObjectURL(blob); |
import javax.crypto.Cipher; | |
import java.security.spec.KeySpec; | |
import javax.crypto.spec.PBEKeySpec; | |
import javax.crypto.SecretKey; | |
import javax.crypto.spec.SecretKeySpec; | |
import javax.crypto.SecretKeyFactory; | |
import java.security.AlgorithmParameters; | |
import javax.crypto.spec.IvParameterSpec; | |
public class Decrypter { |
The MIT License (MIT) | |
Copyright (c) 2015 Justin Perry | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
import java.util.Collection; | |
import java.util.List; | |
import java.util.ListIterator; | |
import org.springframework.data.domain.PageImpl; | |
import org.springframework.data.domain.Pageable; | |
/** | |
* Extension class between spring data commons and java.util.List that is | |
* required to get MyBatis to use it as a return value. |
####Replace USER with username and REPO with the name of the repository/application.
git init
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
git add whatever
git commit -a
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"