Friday, December 20, 2013
Friday, November 15, 2013
Saturday, November 9, 2013
Friday, November 8, 2013
Sunday, November 3, 2013
Saturday, November 2, 2013
Sunday, October 27, 2013
Saturday, October 19, 2013
Friday, October 18, 2013
HTML5 Canvas: Beautiful fractals with the chaos game.
Thursday, October 17, 2013
Sunday, October 6, 2013
Thursday, September 26, 2013
Lobster programming language
Lobster is a game programming language
Thursday, September 12, 2013
Fun with GLSL
I am very fascinated by WebGL shaders
Here is a nice modified sample from PixelShader editor
Here is a nice modified sample from PixelShader editor
Wednesday, September 4, 2013
RapydScript ShowCases
All samples of RapydScript are online here : http://salvatore.pythonanywhere.com/RapydScript
Enjoy:-)
Enjoy:-)
Sunday, September 1, 2013
Rotating a two-dimensional array in Python
Simple and concise way in Python : rotated = zip(*original[::-1])
Rotating a two-dimensional array in Python - Stack Overflow
Friday, July 5, 2013
Tools : PDF -> HTML
This tool is very impressive, look the demos and you will be convinced
https://github.com/coolwanglu/pdf2htmlEX
https://github.com/coolwanglu/pdf2htmlEX
Wednesday, June 19, 2013
Tuesday, June 18, 2013
Thursday, June 6, 2013
RapydScript : RPC Call
import stdlib JQuery = $ listDiv = ['raph','fam','baby'] pathTemplates = "/Gallerie/static/templates/" def rpcCall(meth, params): d = $.Deferred() _url = '/Gallerie/default/call/jsonrpc' _data = JSON.stringify ({jsonrpc:'2.0',method:meth, params:[params],id:"jsonrpc"} ) _type = "POST" _dataType: "json" _success = def (result): d.resolve(result) _error = def (err, status, thrown): alert("Error") _complete = def (xhr, status): data = JQuery.parseJSON(xhr.responseText) param = { url : _url, data : _data, type : _type, success : _success, error : _error, complete:_complete } JQuery.ajax(param) return d.promise() def getPhotos(arg, theme = "Hyeddd...;"): hideAllDivs() if (window.sessionStorage[arg] == 'loaded') : showDiv(arg) return alert("loading " + arg) request = rpcCall('getPhotos',{nom : arg}) request.done( def (r): #alert(r.result) showDiv(arg,r.result) window.sessionStorage[arg] = "loaded" ) def hideAllDivs(): for div in listDiv: $("#" + div).hide() def showDiv(div,result): data = {title : "ALBUM", theme : result} html = new EJS({url: pathTemplates + 'displayphoto.ejs'}).render(data) elt = "#" + div $(elt).html(html) $(elt).show() alert("main") #Exported functions window.getPhotos = getPhotos-->
Wednesday, March 27, 2013
Thursday, January 3, 2013
Wednesday, January 2, 2013
Subscribe to:
Posts (Atom)