You can write, compile, run your code online. You can do everything on your browser.
compilr.com - C, C#, C++, Java, JavaScript, Pascal PHP, Python, Ruby, VB
coderun - c#,php, javascript
shiftedit.net - PHP, Ruby, Python, Perl, Java, HTML, CSS and JavaScript
compileonline - wide range of languages
ideone - lots of
cloud-ide - web applications
codeanywhere - HTML, PHP, JavaScript, CSS, and XML
c9.io - cloud9 ide
codepad - wide variety of programming languages
writecodeonline - js php
online-php - php
amyeditor
kodingen
http://spoon.net/eclipse- java
http://ecoder.quintalinda.com
http://ace.ajax.org/ - web
http://edit.orgapage.de - php
http://chpokk.apphb.com/
http://www.landofcode.com/online-code-editor - php
closure-compiler - js (javascript)
HTML, JS, CSS editors
jsfiddle
quackit
htmledit.squarefree
onlinehtmleditor
ckeditor
htmlinstant
timsfreestuff
htmleditor
cssdesk
tryiteditor
jsbin
n2j
of course w3schools - try it yourself editor
SQL Editors
Some of them for to manage your databases (db), others are for trying
dbschemaeditor - db schemaeditor
Execute, try, test your sql queries, your skills.
sqleditor
sqlfiddle
sqlinform
These two are open source. They are at codeplex
sqlwebadmin
sqlwebtools
Demo and trial versions are available
Microsoft SQL Web Data Administrator
cibersql.com
mylittleadmin
sqlwebarchitect
tablesmarteditor
Stirling Prize goes to Sainsbury Lab
Sainsbury Laboratory in University of Cambridge wins Stirling Prize 2012.
The building has been designed by Stanton Williams.
Sainsbury Lab
Stirling Prize
The building has been designed by Stanton Williams.
|
|
Sainsbury Lab
Stirling Prize
Skydiver Felix Baumgartner
Austrian skydiver Felix Baumgartner sets record for highest skydive and fastest freefall speed. After first launch was aborted at 9 October, second try was at 14 October. Baumgartner flew approximately 39 kilometres (24 mi) into the stratosphere over New Mexico, United States in a helium balloon. He reached 833.9mph (1,342km/h) speed and breaked sound barrier. He is the only human to go faster than the speed of sound. The project is called Red Bull Stratos.
Joseph Kittinger is previous world record holder for skydiving from 31.33 km (19.4 mi).
Joseph Kittinger is previous world record holder for skydiving from 31.33 km (19.4 mi).
C# Console - Press Any Key to Exit
If your console program is closing immediately before you see anything then add this code to your program. It doesn't consume any system resources. When you enter something, program will exit.
When a specific key (ex: ESC (ESCAPE)) is pressed, the program below exit.
ReadKey and ReadLine functions block input. If you want to do anything until key pressed, you should use KeyAvailable property.
Example
- string s = Console.ReadLine();
When a specific key (ex: ESC (ESCAPE)) is pressed, the program below exit.
- using System;
- namespace Test
- {
- class Program
- {
- static void Main(string[] args)
- {
- ConsoleKeyInfo k;
- Console.WriteLine("Press ESC to exit...");
- while (true)
- {
- k = Console.ReadKey(true);
- if (k.Key == ConsoleKey.Escape)
- break;
- Console.WriteLine("{0} --- ", k.Key);
- }
- }
- }
- }
ReadKey and ReadLine functions block input. If you want to do anything until key pressed, you should use KeyAvailable property.
- Console.KeyAvailable
Example
- using System;
- namespace Test
- {
- class Program
- {
- static void Main(string[] args)
- {
- ConsoleKeyInfo k;
- bool bln = true;
- Console.WriteLine("Press ESC to exit...");
- while (true)
- {
- while(!Console.KeyAvailable)
- {
- if(!bln)
- Console.WriteLine("{0:s}", "x");
- bln = true;
- }
- bln = false;
- k = Console.ReadKey(true);
- if (k.Key == ConsoleKey.Escape)
- break;
- Console.Write("{0} --- ", k.Key);
- }
- }
- }
- }
C# Object Initializers
Members of an object can be assigned without calling a constructor at creation time.
Example
- MyClass myObject = new MyClass() {MyID = 1, MyName = "John Doe"};
Example
- class Program
- {
- static void Main(string[] args)
- {
- //Object initializer
- MyClass myObject = new MyClass() {MyID = 1, MyName = "John Doe"};
- int id =myObject.GetMyID();
- string name = myObject.GetMyName();
- Console.WriteLine("{0,-3:0}{1:s}",id,name);
- }
- }
- public class MyClass
- {
- private int _myID;
- private string _myName;
- public int MyID { get; set; }
- public string MyName { get; set; }
- public MyClass() { }
- public int GetMyID()
- {
- return MyID;
- }
- public string GetMyName()
- {
- return MyName;
- }
- }
Subscribe to:
Posts (Atom)




