Github
Book information
Description
You use GitHub all day long as a developer. Now learn how to use GitHub as a power user. Learn the ins and outs of the GitHub API using many of the most popular programming languages. Supercharge your development with command line shortcuts. Each chapter digs deep into an important technology from the GitHub ecosystem with examples to accelerate your usage of those features and programmatically automate your developer tools. Along the way, align yourself with the famed GitHub culture to streamline your developer workflow. Cover Copyright Table of Contents Preface Why APIs and Why the GitHub API? Structure of This Book Who You Are What You Will Learn GitHub “First Class” Languages Operating System Prerequisites Who This Book Is Not For Conventions Used in This Book Using Code Examples O’Reilly Safari How to Contact Us Acknowledgments Chapter 1. The Unclad GitHub API cURL Breadcrumbs to Successive API Paths The JavaScript Object Notation (JSON) Format Parsing JSON from the Command Line Debugging Switches for cURL Important Headers Following a Hypermedia API Authentication Username and Password Authentication OAuth Status Codes Success (200 or 201) Naughty JSON (400) Improper JSON (422) Successful Creation (201) Nothing Has Changed (304) GitHub API Rate Limits Reading Your Rate Limits Conditional Requests to Avoid Rate Limitations Accessing Content from the Web JSON-P CORS Support Specifying Response Content Format Summary Chapter 2. Gists and the Gist API Easy Code Sharing Gists Are Repositories Embedding Gists Inside HTML Embedding Inside Jekyll Blogs Gist from the Command Line Gists as Fully Functioning Apps Gists that Render Gists Going Deeper into the Gist API Using Hypermedia Data from Octokit Summary Chapter 3. GitHub Wikis with Gollum “The Story of Smeagol…” Repository Linked Wikis Markup and Structure Hacking Gollum The Starting Point of a Gollum Editor Programmatically Handling Images Using the Rugged Library Adding Images to a Review File Optimizing for Image Storage Reviewing on GitHub Improving Revision Navigation Fixing Linking Between Comp Pages Summary Chapter 4. Python and the Search API Search API General Principles Authentication Result Format Search Operators and Qualifiers Sorting Search APIs in Detail Repository Search Code Search Issue Search User Search Our Example Application User Flow Python AGitHub WxPython PyInstaller The Code Git Credential Helper Windowing and Interface GitHub Login GitHub Search Displaying Results Packaging Summary Chapter 5. .NET and the Commit Status API The API Raw Statuses Combined Status Creating a Status Let’s Write an App Libraries Development Environment Sending the Request OAuth Flow Status Handler Summary Chapter 6. Ruby and Jekyll Learning and Building with Jekyll What Is Jekyll? Operating Jekyll Locally Jekyll Blog Quick Start YFM: YAML Front Matter Jekyll Markup Using the Jekyll Command Privacy Levels with Jekyll Themes Publishing on GitHub Hosting On Your Own Domain Importing from Other Blogs From Wordpress Exporting from Wordpress Alternatives Scraping Sites into Jekyll Jekyll Scraping Tactics Setting Up Scraping Titles Refinining with Interactive Ruby Writing Tests and Caching Writing Jekyll Posts Using the Jekyll Command-Line Tool Master Index File with Liquid Markup Scraping Body and Author Adding Images to Jekyll Customizing Styling (CSS) Inviting Contributions with GitHub “Fork” Publishing Our Blog to GitHub Summary Chapter 7. Android and the Git Data API Setting Up Creating a Jekyll Blog Android Development Tools Creating a New Project Editing the Gradle Build File Default Android Main Android Automated Testing Unit Tests for Our GitHub Client Android UI Tests Application Implementation Code to Log In to GitHub Code to Talk to GitHub Writing the Blog Content GitHub Services The Base SHA from the Repository and Branch Creating the Blob Generating a Tree Creating the Commit Updating the Master Resource Passing All Our Tests Summary Chapter 8. CoffeeScript, Hubot, and the Activity API The Activity API Planning for PR Satisfaction Guaranteed Considerations and Limitations Creating a Vanilla Hubot Creating a Slack Account Running Hubot Locally Installation on Heroku Setting Up Heroku Activity API Overview Writing a Hubot Extension Code Reviews via Pull Requests Using the OAuth Token to Register for Events Triggering Real Pull Requests Handling PR Notifications as Post Requests over HTTP Summary Chapter 9. JavaScript and the Git Data API Building a Coffee Shop Database on GitHub Set Up Mapping Hostnames Adding the Support Libraries An AngularJS Application Using GitHub.js Visualize Application Data Structure Making Our App Testable Test Data CoffeeTech.js Geocoding Support City Data Adding Login Errors Already? Displaying (Soon-to-Be) User-Reported Data User-Contributed Data Accepting Pull Requests Toward a Safe Login Implementation Authentication Requires a Server Fixing Authentication with Firebase Testing Firebase Implementing Firebase Login Summary Appendix A. GitHub Enterprise Installation Administration Endpoints Full Hostnames Versus Mount Points Command-Line Client Tools: cURL Example Request Using a Client Library Ruby Client Configuration Java JavaScript Python C# Management API Documentation Appendix B. Ruby, NodeJS, (and the Shell) at GitHub GitHub and Ruby Installing Ruby Important Ruby and RVM Concepts Potential Problems Installing Ruby GitHub Is Excited about NodeJS NodeJS Installation Node Version Manager package.json Command-Line Basics and the Shell Shell Comments Providing Variables to Commands Splitting Commands into Multiple Lines Piping Output to Successive Commands Redirection Index About the Authors
Similar books
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF
Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix
2008 · PDF