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
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch |
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 | |
/* | |
* @fuente: http://stackoverflow.com/a/16251849 | |
*/ | |
function generateFile($datos, $filename = "export.csv", $delimiter=";") { | |
$f = fopen("/tmp/$filename", 'w'); | |
// loop over the input array | |
foreach ($datos as $line) { | |
// generate csv lines from the inner arrays |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 3 in line 2.
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
function httpGet(theUrl){ | |
var xmlHttp = new XMLHttpRequest(); | |
xmlHttp.open( 'GET', theUrl, false ); // false for synchronous request | |
//xmlHttp.setRequestHeader() debe ir después de xmlHttp.open() | |
xmlHttp.setRequestHeader('nombreHeader', 'valor'); | |
//pero antes de xmlHttp.send() | |
xmlHttp.send( null ); | |
return xmlHttp.responseText; | |
} |