This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --Forked from SO: http://stackoverflow.com/questions/5873170/generate-class-from-database-table | |
| declare @TableName sysname = 'TableNameHere' | |
| declare @Result varchar(max) = 'using System; | |
| using System.ComponentModel; | |
| using System.Runtime.CompilerServices; | |
| public class ' + @TableName + ' : INotifyPropertyChanged | |
| { | |
| ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Threading; | |
| using Android.Content; | |
| using Android.Net; | |
| using Android.Telephony; | |
| using Java.IO; | |
| using Java.Net; | |
| namespace YourNamespace { | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .directive('backSpaceNotBackButton', [function(){ | |
| return { | |
| restrict: 'A', | |
| link: function(scope, element, attrs){ | |
| // This will stop backspace from acting like the back button | |
| $(element).keydown(function (e) { | |
| var elid = $(document.activeElement) | |
| .filter( | |
| "input:not([type], [readonly]),"+ | |
| "input[type=text]:not([readonly]), " + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Copyright (c) 2012 Sven "FuzzYspo0N" Bergström | |
| http://underscorediscovery.com | |
| MIT Licensed. See LICENSE for full license. | |
| Usage : node simplest.app.js | |
| */ | |
| var |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE OR REPLACE FUNCTION from_unixtime(integer) RETURNS timestamp AS ' | |
| SELECT to_timestamp($1)::timestamp AS result | |
| ' LANGUAGE 'SQL'; |