Snippets of the day – Saturday, May 3, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Typescript + underscore: serializing objects This little example runs on node.js and assumes you have the typescript type-definition file in the types subdirectory. The example defines two classes one representing a undergrad course in computer science and another one representing possible students for the course. Few […]

Snippets of the day – Tuesday, February 11, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Connecting to MySQL database using JAVA Works only after you add java mysql driver jar into your library Open the snippet Author:    Mk47 Sending multiple email using Java ( Using Gmail SMTP ) Open the snippet Author:    Mk47 Dalekjs – Simple automated web test […]

Snippets of the day – Monday, February 3, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Define arrays using templates in Typescript You can now define an array using the template feature in Typescript. Be aware this way to build array is just a compile time ‘type annotation’ used to check type validity when using the array. Open the snippet Author:    […]

Snippets of the day – Monday, January 20, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Old Old autoSetFrameHeight Old Old autoSetFrameHeight: autoSetFrameHeight.js Open the snippet Author:    yicone http://www.tracefact.net/csharp-programming/immutable-atomic-value-types.aspx 1、当创建类型的目的是为了存储一组相关的数据,且数据量不是很大的时候,将它声明为Struct比Class会获得更高的效率;2、将类型声明为具有原子性和常量性,可以避免可能出现的数据不一致问题;3、通过在构造函数和Get访问器中,对对象的字段进行深度复制,可以避免在类型的外部修改类型内部数据的问题。 http://www.tracefact.net/csharp-programming/immutable-atomic-value-types.aspx 1、当创建类型的目的是为了存储一组相关的数据,且数据量不是很大的时候,将它声明为Struct比Class会获得更高的效率;2、将类型声明为具有原子性和常量性,可以避免可能出现的数据不一致问题;3、通过在构造函数和Get访问器中,对对象的字段进行深度复制,可以避免在类型的外部修改类型内部数据的问题。: immutable-atomic-value-types.cs Open the snippet Author:    yicone

Snippets of the day – Friday, December 27, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! QueryString in Javascript This function allow to access a parameter in the url of a page. The original post in StackOverflow: http://stackoverflow.com/questions/3788125/jquery-querystring The solution is by Guffa http://stackoverflow.com/users/69083/guffa Open the snippet Author:    micurs JQuery typescript interface for $.ajax() callbacks To use JQuery $.ajax() you must […]

Snippets of the day – Monday, December 16, 2013

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Communication with UTF-8 for MySQL use in Java This is the way to use UTF-8 for the communiocation of a Java application towards a MySQL database Open the snippet Author:    cghersi JQuery DataPicker and TimePicker example JQuery DataPicker and TimePicker example Open the snippet Author: […]