##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
| # 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/" |
| 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() |
| license: gpl-3.0 | |
| height: 950 | |
| border: no |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="js/JQuery.js"> | |
| </script> | |
| <script> | |
| $(document).ready(function() | |
| { | |
| $("#btn1").click(function(){ | |
| $("#box").animate({height:"300px"}); |
##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
| <!--Pattern HTML--> | |
| <div id="pattern" class="pattern"> | |
| <!--Begin Pattern HTML--> | |
| <button class="menu-link">Menu <span>▼</span></button> | |
| <nav id="menu" class="menu" role="navigation"> | |
| <ul class="level-1"> | |
| <!--Parent #1--> | |
| <li class="has-subnav"> | |
| <a href="#">Parent #1</a> | |
| <ul class="level-2"> |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-12 pt-4 pb-1 text-center"> | |
| <h2 class="text-primary">svg icon collection</h2> | |
| </div> | |
| <div class="col-12 pb-3"> | |
| <div class="form-control text-center"> | |
| <input id="search-icon" class="col-12" type="text" value=""> | |
| </div> |
The following document is intended to be a quick guide to getting you setup for doing local development with Chef. This guide was created on my MacBook, but should work fine with Linux, and Windows workstations as well.
This is an example of a collapsible drag and drop tree implementing slightly modified code from https://gist.github.com/robschmuecker/7880033
This is posted in order to demonstrate a viable answer for a Stack Overflow question http://stackoverflow.com/questions/20539922/has-anyone-produced-a-virtualised-javascript-tree-for-thousands-of-nodes
The only difference between this gist and the one referenced above is that the JSON file has changed. Each node contains 15 children and the depth is 4. Hence over 50,000 nodes.
The performance is fine if not too many of the nodes are present at once in the DOM. The JSON was contructed at http://www.json-generator.com/ with the following markup
There are four Kubernetes certifications: