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
Error: ENOENT, open '/Volumes/Data/.../src/InternalWeb/app/aurelia-framework.js' | |
at Error (native) |
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 static class StringExtensions | |
{ | |
public static string StripHtml(this string value) | |
{ | |
return Regex.Replace(value, @"<[^>]+>| ", "").Trim(); | |
} | |
} |
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
<button id="favicon-change" class="btn btn-default">Change Header</button> | |
<button id="notification" class="btn btn-default">Notification</button> |
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
-# /opt/gitlab/embedded/service/gitlab-rails/app/views/dashboard/show.html.haml | |
- if @projects.any? | |
= render 'sidebar' | |
= link_to '#aside', class: 'show-aside' do | |
%i.fa.fa-angle-left | |
- else | |
= render "zero_authorized_projects" |
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 static class EmailAddressValidator | |
{ | |
public const string EmailAddressRegex = "^[^@]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"; | |
private static readonly Regex Validator = new Regex(EmailAddressRegex); | |
public static bool IsValid(string email) | |
{ | |
return email != null && !email.Contains("\n") && Validator.Match(email).Success; | |
} | |
} |
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
UPDATE GeoLite2CityBlocks | |
SET network_start = (CAST(LEFT(Network, CHARINDEX('.', Network) - 1) AS bigint) * 16777216) | | |
(CAST(SUBSTRING(Network, CHARINDEX('.', Network) + 1, CHARINDEX('.', Network, CHARINDEX('.', Network) + 1) - | |
CHARINDEX('.', Network) - 1) AS bigint) * 65536) | | |
(CAST(SUBSTRING(Network, CHARINDEX('.', Network, CHARINDEX('.', Network) + 1) + 1, | |
CHARINDEX('.', Network, CHARINDEX('.', Network, CHARINDEX('.', Network) + 1) + 1) - | |
CHARINDEX('.', Network, CHARINDEX('.', Network) + 1) - 1) AS bigint) * 256) | | |
CAST(SUBSTRING(Network,CHARINDEX('.', Network, CHARINDEX('.', Network, CHARINDEX('.', Network) + 1) + 1) + 1, | |
CHARINDEX('/', Network) - CHARINDEX('.', Network, CHARINDEX('.', Network, | |
CHARINDEX('.', Network) + 1) + 1) - 1) AS bigint) |
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 gulp = require('gulp'), | |
jshint = require('gulp-jshint'), | |
mocha = require('gulp-mocha'), | |
process = require('child_process'); | |
gulp.task('default', ['test', 'lint']); | |
gulp.task('lint', function() { | |
return gulp.src(['**/*.js', '!node_modules/**/*']) | |
.pipe(jshint({ node: true })) |
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 string Name { get; set; } | |
public string Comments { get; set; } | |
public string TypeName { get; set; } | |
public string DefaultValue { get; set; } | |
public bool IsOpening { get; set; } | |
public bool IsClosing { get; set; } | |
public bool IsClosed { get; set; } | |
public bool IsMember { get; set; } |
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 express = require('express'); | |
var app = express(); | |
app.get('/', function(req, res){ | |
res.send('<html><body>oh hai</body></html>'); | |
}).listen(3091); |
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
<title> - Home</title> | |
<meta property="og:title" content=" - Home" /> | |
Should be: | |
<title>Ambri - Home</title> | |
<meta property="og:title" content="Ambri - Home" /> |