Sunday, December 30, 2012
Saturday, December 29, 2012
Wednesday, December 26, 2012
simpl.info
simpl.info is a website for simplest-possible code examples, nothing more.
BADASS JAVASCRIPT
http://badassjs.com
Tuesday, December 25, 2012
Monday, December 24, 2012
Sunday, December 23, 2012
Nook and Emscripten: A technical look at C++ GameDev in the Browser
Wednesday, December 19, 2012
Sunday, December 16, 2012
Saturday, December 15, 2012
Thursday, December 13, 2012
Sunday, December 9, 2012
spyne
Spyne is a Python RPC toolkit that makes it easy to expose online services that have a well-defined API using multiple protocols and transports.
Saturday, December 8, 2012
Friday, December 7, 2012
Flask Rest
http://publish.luisrei.com/articles/flaskrest.html
Wednesday, November 21, 2012
Netcat
http://www.lestutosdenico.com/tutos-de-nico/netcat
Monday, November 12, 2012
Canvas library : canvas.js
<em>The canvas.js module is a simple and robust JavaScript API for the HTML5 <canvas> element, which can be used to generate interactive 2D graphics in a web browser, using lines, shapes, paths, images and text.</em>
A Simple Web Bot with Requests and BeautifulSoup
stefan.sofa-rockers.org » A Simple Web Bot with Requests and BeautifulSoup
A Simple Web Bot with Requests and BeautifulSoup
How to Build a Python Bot That Can Play Web Games | Activetuts+
How to Build a Python Bot That Can Play Web Games | Activetuts+
How to Build a Python Bot That Can Play Web Games
Sunday, November 11, 2012
Saturday, November 10, 2012
Python : web mining
Thursday, September 6, 2012
Monday, September 3, 2012
Sunday, July 15, 2012
Knockout loading views
<!DOCTYPE html"> <html> <head> <title></title> <script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script> <script src="Scripts/knockout-2.1.0.js" type="text/javascript"></script> <script> var counter = 0; var model1 = function () { this.name = ko.observable("model1"); }; var model2 = function () { this.name = ko.observable("model2"); }; var model3 = function () { this.name = ko.observable("model3"); }; function fetchView(view, model, divDest) { var def = new $.Deferred(); $.ajax({ url: "./" + view, success: function (viewContent) { $("<div id=" + divDest + "></div>").appendTo("#container").html(viewContent); def.resolve(); } }); def.done(function (pageContent) { counter += 1; $("#counter").html(counter); ko.applyBindings(model, document.getElementById(divDest)); }); } function init() { fetchView("view1.htm", new model1(), "main1"); fetchView("view2.htm", new model2(), "main2"); fetchView("view3.htm", new model3(), "main3"); } </script> <script> $(function () { $("#container").html("Main Application"); $("#counter").html(counter); init(); }); </script> </head> <body> <div id="counter"> </div> <div id="container"> </div> </body> </html>
Saturday, June 30, 2012
Wednesday, June 13, 2012
Wednesday, May 30, 2012
Tuesday, May 29, 2012
Introduction aux Web Workers d’HTML5 : le multithreading version JavaScript
Programmation d'un morpion utilisant C++/SDL (7 parties et série achevée)
fearyoursef.developpez.com :: Page d'index
Programmation d'un morpion utilisant C++/SDL (7 parties et série achevée)
Friday, May 25, 2012
Simple python based WSGI compatible jsonrpc
Wednesday, May 23, 2012
Sunday, May 20, 2012
Friday, May 18, 2012
Dive into Neural Networks
Test Run - Dive into Neural Networks
Test RunDive into Neural Networks |
Thursday, May 17, 2012
Wednesday, May 16, 2012
How to fix orphaned SQL Server users
Tuesday, May 15, 2012
Monday, May 14, 2012
The Marvels of Monads - Yet Another Language Geek - Site Home - MSDN Blogs
The Marvels of Monads
Sunday, May 13, 2012
Tuesday, May 8, 2012
Monday, May 7, 2012
Sunday, May 6, 2012
Friday, May 4, 2012
Thursday, May 3, 2012
Wednesday, May 2, 2012
Lucid is an uber simple and easy to use event emitter library
Lucid is an uber simple and easy to use event emitter library. Lucid allows you to create your own event system and even pipe in events from any number of DOM elements.
— Read more
Thursday, April 26, 2012
Getting started with Facebook application development with ASP.NET C#
Tuesday, April 24, 2012
Monday, April 23, 2012
Hyde in a nutshell
Static web site geneator in Python
Sunday, April 22, 2012
Friday, April 20, 2012
csonv.js
A tiny library to fetch relational CSV data at client-side just like JSON
Thursday, April 19, 2012
Wednesday, April 18, 2012
Rapid and responsive UI development with Knockout.js
Rapid and responsive UI development with Knockout.js | Tutorial | .net magazine
Rapid and responsive UI
development with Knockout.js
Knockout-Backbone
Using Knockout with Backbone
http://www.geekdave.com/?p=79
Tuesday, April 17, 2012
7 Tips for Loading JavaScript Rich Web 2.0-like Sites Significantly Faster
Monday, April 16, 2012
Friday, March 30, 2012
Archive for the ‘Computer Grpahics’ Category
Graphics algorithms for Javascript
Wednesday, March 28, 2012
Sunday, March 25, 2012
Thursday, March 22, 2012
JavaScript SOAP Client
Wednesday, March 21, 2012
JSONP with the framework Bottle
# Author: Samat Jain <http://samat.org/> # License: MIT (same as Bottle) import bottle from bottle import request, response, route from bottle import install, uninstall from json import dumps as json_dumps class JSONAPIPlugin(object): name = 'jsonapi' api = 1 def __init__(self, json_dumps=json_dumps): uninstall('json') self.json_dumps = json_dumps def apply(self, callback, context): dumps = self.json_dumps if not dumps: return callback def wrapper(*a, **ka): r = callback(*a, **ka) # Attempt to serialize, raises exception on failure json_response = dumps(r) # Set content type only if serialization succesful response.content_type = 'application/json' # Wrap in callback function for JSONP callback_function = request.GET.get('callback') if callback_function: json_response = ''.join([callback_function, '(', json_response, ')']) return json_response return wrapper install(JSONAPIPlugin()) @route('/') def hello(): r = [{'hello': 'world'}] r.append({1: 2}) return r if __name__ == '__main__': from bottle import run run(reloader=True)
JSONP with jQuery, MooTools, and Dojo
http://davidwalsh.name/jsonp
Tuesday, March 20, 2012
Monday, March 19, 2012
Webservice + WSDL in Python with web.py
(...)Optio's soaplib makes it really straightforward to write SOAP web service views by using a decorator to specify types. Plus it's the only Python library, as of today, which is able to generate WSDL documents for your web service.(...)
http://webpy.org/cookbook/webservice
import web from soaplib.wsgi_soap import SimpleWSGISoapApp from soaplib.service import soapmethod from soaplib.serializers import primitive as soap_types urls = ("/hello", "HelloService", "/hello.wsdl", "HelloService", ) render = web.template.Template("$def with (var)\n$:var") class SoapService(SimpleWSGISoapApp): """Class for webservice """ #__tns__ = 'http://test.com' @soapmethod(soap_types.String,_returns=soap_types.String) def hello(self,message): """ Method for webservice""" return "Hello world "+message class HelloService(SoapService): """Class for web.py """ def start_response(self,status, headers): web.ctx.status = status for header, value in headers: web.header(header, value) def GET(self): response = super(SimpleWSGISoapApp, self).__call__(web.ctx.environ, self.start_response) return render("\n".join(response)) def POST(self): response = super(SimpleWSGISoapApp, self).__call__(web.ctx.environ, self.start_response) return render("\n".join(response)) app=web.application(urls, globals()) if __name__ == "__main__": app.run()
Friday, March 16, 2012
Using SignalR To Push StreamInsight Events to Client Browsers
(...)SignalR to push business events through StreamInsight and into a Tweetdeck-like browser client.(...)
http://seroter.wordpress.com/2012/02/29/using-signalr-to-push-streaminsight-events-to-client-browsers/
Annother nice tut:
http://blog.maartenballiauw.be/post/2011/12/06/Using-SignalR-to-broadcast-a-slide-deck.aspx
A Better Way To Program
Saturday, 10 March 2012 11:04
Sunday, March 11, 2012
Saturday, March 10, 2012
Friday, March 9, 2012
How To Create Web Animations With Paper.js | Smashing Coding
How To Create Web Animations With Paper.js | Smashing Coding
How To Create Web Animations With Paper.js
Thursday, March 8, 2012
JavaScript queues
JavaScript queues
Detachable navigation using JavaScript
Detachable navigation using JavaScript
Detachable navigation using JavaScript
Smooth movement in JavaScript
Smooth movement in JavaScript
Scheduling tasks to run on load in JavaScript
Scheduling tasks to run on load in JavaScript
Scheduling tasks to run on load in JavaScript
Colour handling and processing in JavaScript
Colour handling and processing in JavaScript
Colour handling and processing in JavaScript
Javascript color conversion
Javascript color conversion
HSL to RGB converter
convert HSL to RGB using JS? - CodingForums.com
convert HSL to RGB using JS?
jCanvaScript
jCanvaScript is a javasript library that provides you methods to manage
with the content of a HTML5 canvas element easily. It runs on any platform
(including iPhone, iPad, Android) that supports canvas and JavaScript.
To add support for canvas in Internet Explorer you can use ExCanvas.
Tuesday, March 6, 2012
Sunday, February 19, 2012
http://visualstudiomagazine.com/articles/2012/02/01/2-great-javascript-data-binding-libraries.aspx
JavaScript libraries help you build powerful, data-driven HTML5 apps.
Toggle element JQuery
(I also know there is the toggle function from JQuery)
Togger = function (e) { // Show the paragraph if it's hidden. var $paragraph = $(e.data); var $link = $(this); if ($paragraph.is(':hidden')) { $paragraph.show(); $link.text('Click to hide'); } // Hide the paragraph if it's visible. else { $paragraph.hide(); $link.text(' Click to show'); } }; $('#toggle-link-1').bind('click','#paragraph-1', Togger); $('#toggle-link-2').bind('click','#paragraph-2', Togger);
Writing JavaScript without anonymous functions
Nice post on...
Javascript Encryption Decryption
JavaScript Encryption and Decryption
JavaScript Encryption and Decryption 2.0
Friday, February 17, 2012
Creating Checkboxes that Behave Like Radio Buttons with jQuery
http://imar.spaanjaars.com/562/creating-checkboxes-that-behave-like-radio-buttons-with-jquery
Wednesday, February 15, 2012
Knockout : Remove an item of an observable array
Tuesday, February 14, 2012
Calculate an age given birthdate in Javascript
Thursday, February 2, 2012
KendoUI : Hiding Columns
function HideColumn(gridId,numColumn) { $("#" + gridId + " th:eq(" + numColumn + ")").hide(); $("#" + gridId + " td:nth-child(" + (numColumn+1) + ")").hide(); } $(document).ready(function () { $("#grid").kendoGrid({ dataBound : function(e) { //RegisterGrid($("#grid").data("kendoGrid")); HideColumn("grid",0); }, (…)
KendoUI : Row Selection
a grid instance after creation.
Notice that we register the grid in 'dataBound' event, otherwise
we register an empty grid !!!
var grid; function RegisterGrid(g) { grid = g; grid.select(grid.tbody.find(">tr").eq(3)); } $(document).ready(function () { var grid = $("#grid").kendoGrid({ dataBound : function(e) { RegisterGrid($("#grid").data("kendoGrid")); }, columns: [{ field: "id", title: "" }, { field: "Email", title: "Email" }], dataSource: { transport: { read: { type: "POST", url: "http://localhost/WebService.asmx/GetAdmin?name=Paul&age=12", data: [], contentType: "application/json; charset=utf-8", dataType: "json", async: true } }, schema: { data: "d", model: { fields: { id: { type: "number" }, Email: { type: "string" } } }, total : function (r) { } }, }, selectable: "row", navigatable: true, sortable: true, pageable: true, change: function (arg) { var selected = $.map(this.select(), function (item) { alert(item.cells[0].innerHTML); }); }, }); })
Tuesday, January 31, 2012
Object Oriented JavaScript Class Library in C#/.NET Style
http://www.codeproject.com/Articles/22073/Object-Oriented-JavaScript-Class-Library-in-C-NET
Stanford Javascript Crypto Library
http://crypto.stanford.edu/sjcl/
KendoUI Grid and WebServices
$(document).ready(function () { $("#grid").kendoGrid({ columns: [ { field: "id", title: "ID" }, { field: "Email", title: "Email" }], dataSource: { transport: { read: { type : "POST", url : "http://localhost/WebService.asmx/GetAdmin", data : null, contentType : "application/json; charset=utf-8", dataType: "json", async: true } }, schema : { data: "d" } } }); });
Thursday, January 19, 2012
Ironpython hosting in SilverLight
The only issue i encoutered was adding a reference to 'Microsoft.CSharp'
using System; using System.Windows; using System.Windows.Controls; using Microsoft.Scripting.Silverlight; /// /// script.py => def Adder (x, y) : return x + y /// namespace DLRSilverlight { public partial class MainPage : UserControl { dynamic runtime = DynamicEngine.CreateRuntime().UseFile("script.py"); public MainPage() { InitializeComponent(); } private void button1_Click(object sender, RoutedEventArgs e) { dynamic result = runtime.Adder(Convert.ToDouble(this.N1.Text), Convert.ToDouble(this.N2.Text)); MessageBox.Show(String.Format("{0}", result)); } } }
Active Directory with IronPython
import clr clr.AddReference("System.DirectoryServices") from System.DirectoryServices import DirectorySearcher class ADHelper(object): def __init__(self, strLDAP = "LDAP://******"): self.searcher = DirectorySearcher(strLDAP) def searchUserByLogin(self,user,*prop): """ searchUserByLogin("alogin","cn","sn",'SAMAccountName') """ str = "" self.searcher.Filter = "(sAMAccountName=%s)"%user self.searcher.PropertiesToLoad.Add("cn") self.searcher.PropertiesToLoad.Add("SAMAccountName") self.searcher.PropertiesToLoad.Add("givenName") self.searcher.PropertiesToLoad.Add("sn") result = self.searcher.FindOne() for option in prop: str += (option + " : " + result.Properties[option][0] + " ") return str ad = ADHelper() print ad.searchUserByLogin("alogin","cn","sn",'SAMAccountName')
Wednesday, January 18, 2012
Using dynamic in the real world with IronPython
http://blog.filipekberg.se/2011/10/04/using-dynamic-in-the-real-world-with-ironpython/
Tuesday, January 17, 2012
IronPyhon - SilverLight Deployment
the following MIME-TYPES must be configured
.py -> text/plain .slvx -> octet/stream
Scripting C# Silverlight apps with IronPython
http://blog.jimmy.schementi.com/2009/03/scripting-c-silverlight-apps-with.html
DLR in C# - Scripting language
http://www.abhisheksur.com/2011/05/dlr-in-c-using-scripting-language.html
Javascript: self invoked functions
Immediately-Invoked Function Expression (IIFE)
Ben Alman » Immediately-Invoked Function Expression (IIFE)
Monday, January 16, 2012
Extending a C# Application Through a Scripted DLR Language
Hosting IronPython in WinForms
It shows how it ispossible to call method from IronPython in C#
http://www.mono-software.com/blog/post/Mono/134/Hosting-IronPython-in-WinForms/
Friday, January 13, 2012
Top Four Questions from the WCF RIA Services Forum
WCF Data Services Custom Framework
http://blogs.planetsoftware.com.au/felix/archive/2010/06/13/why-wcf-data-services-is-better-than-ria.aspx
Another nice tutorials with Silverlight
http://hssow.wordpress.com/2011/07/15/partie-1-creer-et-consommer-un-service-de-donnees-open-data-avec-wcf-data-services/
Sunday, January 8, 2012
Secure transaction with Javascript
Here is a wonderful implementation using Javascript and C#
http://www.codeproject.com/KB/tips/JocysComJavaScriptClasses.aspx
Wednesday, January 4, 2012
Data and Command Bindings for Silverlight MVVM Applications
(...)This article summarizes two utility classes used for data and command bindings in Silverlight MVVM applications and demonstrates how to use the two classes with a running example. (...)
http://www.codeproject.com/KB/silverlight/MVVMUtility.aspx