Code

Image

Advertisements

All-In-One Script Framework

Microsoft All-In-One Script Framework is an automation script sample library for IT Professionals.  The key value that All-In-One Script Framework is trying to deliver is Scenario-Focused Script Samples driven by IT Pros’ real-world pains and needs.  The team is monitoring all TechNet forums, IT Pros’ support calls to Microsoft, and will start to monitor the script requests submitted to TechNet Script Repository soon. We collect frequently asked IT scenarios, and create script samples to automate the tasks and save some time for IT Pros. The team of All-In-One Script Framework sincerely hope that these customer-driven automation script samples can help our IT community in this script-centric move.

Find out more on: http://blogs.technet.com/b/onescript/

from 0 to C

Created by Ubi de Feo, “from 0 to C” is a new series of workshops that aim at teaching programming using a more creative and human approach.

Through the use of tangible, hand-made objects, we try to establish a clear understanding of  how a computer works and what a programming language actually is: nothing but an abstraction of what we can do as humans.

Via means of playing with objects we explain the simple mathematics behind a computer way of working and the concepts at the core of every programming languages.

Find out more on http://hellosavants.com/from-0-to-c/

Dictionary of Algorithms and Data Structures

This is a dictionary of algorithms, algorithmic techniques, data structures, archetypal problems, and related definitions. Algorithms include common functions, such as Ackermann’s function. Problems include traveling salesman and Byzantine generals. Some entries have links to implementations and more information. Index pages list entries by area and by type. The two-level index has a total download 1/20 as big as this page.

Check it out on http://xlinux.nist.gov/dads/ 

Indie Game: The Movie (trailer)


(via)

Indie Game: The Movie is a feature documentary about video games, their creators and the craft. The film follows the dramatic journeys of indie game developers as they create their games, and as they release those works, and themselves, to the world.

Indie Game: The Movie is about making video games, but at its core, it’s about the creative process and exposing yourself through your work.

This trailer and the film features: Edmund McMillen & Tommy Refenes (supermeatboy.com) Phil Fish (polytroncorporation.com)  and Jonathan Blow (braid-game.com)

Find out more on www.indiegamethemovie.com or via www.imdb.com/title/tt1942884/

C#: Save a canvas as an image

This C# code saves a Canvas as a *.PNG image:

private void CreateSaveBitmap(Canvas canvas, string filename)
     {
       RenderTargetBitmap renderBitmap = new RenderTargetBitmap(
        (int)canvas.Width, (int)canvas.Height,
        96d, 96d, PixelFormats.Pbgra32);
      // needed otherwise the image output is black
       canvas.Measure(new Size((int)canvas.Width, (int)canvas.Height));
       canvas.Arrange(new Rect(new Size((int)canvas.Width, (int)canvas.Height)));

renderBitmap.Render(canvas);

//JpegBitmapEncoder encoder = new JpegBitmapEncoder();
       PngBitmapEncoder encoder = new PngBitmapEncoder();
       encoder.Frames.Add(BitmapFrame.Create(renderBitmap));

using (FileStream file = File.Create(filename))
       {
         encoder.Save(file);
       }
     }

Use it like this:

CreateSaveBitmap(myCanvas, @"C:\temp\out.png");

140byt.es: Tetris in 140 Bytes

140byt.es is a tweet-sized, fork-to-play, community-curated collection of JavaScript

Play binary tetris or watch the source code:

function(a,b,c,d,e){return d+=c,
     e=a|b<<d,d<0|a&b<<d&&(a=e=
     parseInt((a|b<<c).toString(d=32)
     .replace(/v/,""),d),b=new Date%2?1:3),
     [a,b,d,e]}

[ link ] [ twitter ]