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
| var re = /^[ABCEGHJKLMNPRSTVXY][0-9][ABCEGHJKLMNPRSTVWXYZ][0-9][ABCEGHJKLMNPRSTVWXYZ][0-9]$|^\d{5}(?:[-\s]\d{4})?$/i; | |
| var str = 'm5v3e6'; | |
| var m; | |
| if ((m = re.exec(str)) !== null) { | |
| if (m.index === re.lastIndex) { | |
| re.lastIndex++; | |
| } | |
| // View your result using the m-variable. | |
| // eg m[0] etc. |
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
| var re = /^[a-z ,.'-]{2}+$/i; | |
| var str = ' '; | |
| var m; | |
| if ((m = re.exec(str)) !== null) { | |
| if (m.index === re.lastIndex) { | |
| re.lastIndex++; | |
| } | |
| // View your result using the m-variable. | |
| // eg m[0] etc. |
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
| ## Ignore Visual Studio temporary files, build results, and | |
| ## files generated by popular Visual Studio add-ons. | |
| # User-specific files | |
| *.suo | |
| *.user | |
| *.sln.docstates | |
| # Build results |
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 SCHEMA [Geo] | |
| GO | |
| CREATE TABLE [Geo].[Continent]( | |
| [Code] [char](2) NOT NULL PRIMARY KEY, | |
| [Name] [nvarchar](25) NULL | |
| ) | |
| GO | |
| ------------------------------ |
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
| USE master | |
| GO | |
| IF OBJECT_ID('dbo.calendar') IS NOT NULL | |
| DROP TABLE dbo.calendar; | |
| IF OBJECT_ID('dbo.fn_generate_calendar') IS NOT NULL | |
| DROP FUNCTION dbo.fn_generate_calendar; | |
| GO |
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
| public class LinkHeader | |
| { | |
| public string FirstLink { get; set; } | |
| public string PrevLink { get; set; } | |
| public string NextLink { get; set; } | |
| public string LastLink { get; set; } | |
| public static LinkHeader LinksFromHeader(string linkHeaderStr) | |
| { | |
| LinkHeader linkHeader = null; |
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
| module.exports = new Ajax(); | |
| function Ajax() { }; | |
| Ajax.prototype.get = function (url, callback, error) { | |
| var req = this.makeRequest('GET', url, callback, error); | |
| req.send(); | |
| }; | |
| Ajax.prototype.post = function (url, data, callback, error) { |
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
| html, body, div, span, | |
| h1,h2,h3,h4,h5,h6,hgroup, | |
| ul,ol,dd, | |
| p,figure, | |
| pre,table,fieldset,hr, | |
| article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| font-size: 100%; |
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; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| namespace Project.Repo | |
| { | |
| public interface IMapper<TEntity> where TEntity : class | |
| { | |
| IEnumerable<PropertyInfo> Properties { get; } | |
| Type Type { get; } |
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 Cinch.Sequel; | |
| using Dapper; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| namespace DapperSequelRepo | |
| { |
OlderNewer