This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Wasted half my evening trying to get this done. | |
* Those seems to be the only settings that works for | |
* downloading large repositories as zip/tarball | |
* from GitHub with PHP and cURL. | |
* | |
* If you don't have to use PHP, then use cURL direcly: | |
* curl -L -v -H "Authorization: token PERSONAL_ACCESS_TOKEN" https://api.github.com/repos/SOME_USER/SOME_REPO/zipball > dooone.zip | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Throttles execution of given function | |
* @param {function} func - function to execute | |
* @param {number} delay - delay in milisecionds | |
* @param {object} scope - optional scope in which function will be executed | |
*/ | |
var throttle = function(func, delay, scope) { | |
var delay = delay || 500; | |
var scope = scope || this; | |
var busy = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--source--> | |
<script type="text/javascript"> | |
(function(){ | |
if (!( | |
"Promise" in window && | |
"fetch" in window && | |
"assign" in Object && | |
"keys" in Object | |
)) { | |
var polyfill = document.createElement("script"); |