Skip to content

Instantly share code, notes, and snippets.

View pablocorezzola's full-sized avatar

Pablo Corezzola pablocorezzola

  • @serviciosdirectorio
  • Buenos Aires, Argentina
View GitHub Profile
setTimeout(function() {
function getAllModules() {
return new Promise((resolve) => {
const id = _.uniqueId("fakeModule_");
window["webpackJsonp"](
[],
{
[id]: function(module, exports, __webpack_require__) {
resolve(__webpack_require__.c);
}
@irazasyed
irazasyed / get-img-raw-data.php
Created April 14, 2013 13:05
PHP: Get image raw data (cURL & file_get_contents support)
/*-------------------------------------------------+
| Gets Image Raw Data,
| Used with GD Lib (imagecreatefromstring)
+-------------------------------------------------*/
function getImageRawData($image_url) {
if (function_exists('curl_init')) {
$opts = array();
$http_headers = array();
$http_headers[] = 'Expect:';