This file contains 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
// The classic AJAX call - dispatch before the request, and after it comes back | |
function myThunkActionCreator(someValue) { | |
return (dispatch, getState) => { | |
dispatch({type : "REQUEST_STARTED"}); | |
myAjaxLib.post("/someEndpoint", {data : someValue}) | |
.then( | |
response => dispatch({type : "REQUEST_SUCCEEDED", payload : response}), | |
error => dispatch({type : "REQUEST_FAILED", error : error}) | |
); |
This file contains 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
% | |
% Tema: Codificación RLE/VLC y análisis de compresión espacial | |
% Catedra: Sistemas Avanzados de Televisión y Técnicas Audiovisuales | |
% Profesor: Miguel Seoane | |
% Alumno: Tomás Agustín González | |
% Referencias: | |
% - Apuntes de cátedra | |
% - http://www.digicamsoft.com/itu/itu-t81-1.html | |
% - http://www.stanford.edu/class/ee398a/handouts/lectures/08-JPEG.pdf | |
% - http://www.mathworks.com/matlabcentral/newsreader |
This file contains 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
http://xdebug.org/install.php#configure-php | |
http://blog.jetbrains.com/phpstorm/2013/08/debugger-configuration-validation-with-phpstorm/ | |
on CentOS: | |
1. You need to install PHP’s devel package for PHP commands execution | |
yum install php-devel | |
yum install php-pear | |
2. Next install GCC and GCC C++ compilers to compile Xdebug extension yourself. | |
yum install gcc gcc-c++ autoconf automake |
This file contains 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
if (!document.querySelectorAll) { | |
document.querySelectorAll = function(selector) { | |
var doc = document, | |
head = doc.documentElement.firstChild, | |
styleTag = doc.createElement('STYLE'); | |
head.appendChild(styleTag); | |
doc.__qsaels = []; | |
styleTag.styleSheet.cssText = selector + "{x:expression(document.__qsaels.push(this))}"; | |
window.scrollBy(0, 0); |
This file contains 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
var fs = require('fs'), | |
sys = require('sys'), | |
http = require('http'); | |
http.createServer(function (req, res) { | |
checkBalanceFile(req, res); | |
}).listen(8000); | |
function checkBalanceFile(req, res) { | |
fs.stat("balance", function(err) { |