##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:alexpchin/.git
##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:alexpchin/.git
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="js/JQuery.js"> | |
| </script> | |
| <script> | |
| $(document).ready(function() | |
| { | |
| $("#btn1").click(function(){ | |
| $("#box").animate({height:"300px"}); |
| license: gpl-3.0 | |
| height: 950 | |
| border: no |
| import groovy.io.* | |
| def listfiles(dir) { | |
| dlist = [] | |
| flist = [] | |
| new File(dir).eachDir {dlist << it.name } | |
| dlist.sort() | |
| new File(dir).eachFile(FileType.FILES, {flist << it.name }) | |
| flist.sort() | |
| return (dlist << flist).flatten() |
| # This works | |
| curl -u USER:PASS https://api.github.com/repos/USER/REPO/contents/a.txt --request PUT --data-ascii $'{"path": "a.txt", "content": "bXkgbmV3IGZpbGUgY29udGVudHM=", "message": "hello"}' | |
| # Does not work | |
| curl -u USER:PASS https://api.github.com/repos/USER/REPO/contents/a.txt --request PUT --data-ascii $'{"path": "a.txt", "content": "", "message": "hello"}' | |
| # HTTP status 422. Body: | |
| # { | |
| # "message": "content is not valid Base64", | |
| # "documentation_url": "http://developer.github.com/v3/repos/contents/" |