This file contains 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
.row-item { | |
-webkit-transition: color 0.6s, background-color 0.3s ease-out 1s; | |
-moz-transition: color 0.6s, background-color 0.3s ease-out 1s; | |
-ms-transition: color 0.6s, background-color 0.3s ease-out 1s; | |
transition: color 0.1s, background-color 0.8s ease-out 1s; | |
} | |
.row-item.ng-enter { | |
background-color: #FFF1CC; | |
-webkit-animation: bounceInRight 1s; |
This file contains 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
jQuery.validator.setDefaults({ | |
validClass: "success", | |
errorElement: "span", | |
errorPlacement: function(error, element){ | |
$(error).addClass('help-block').insertAfter(element); | |
}, | |
highlight: function(element, errorClass, validClass) { | |
$(element).parents('div.control-group').addClass(errorClass).removeClass(validClass); | |
}, | |
unhighlight: function(element, errorClass, validClass) { |
This file contains 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'); | |
var browserSync = require('browser-sync').create(); | |
// Static server | |
gulp.task('default', ['browser-sync']); | |
gulp.task('browser-sync', function() { | |
browserSync.init({ | |
server: { |
This file contains 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
angular | |
.module('common') | |
.filter('age', ageFilter); | |
function ageFilter () { | |
return function (input, params) { | |
if (input) { |
This file contains 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
{ | |
"caret_extra_bottom": 0, | |
"caret_extra_top": 0, | |
"caret_extra_width": 1, | |
"color_scheme": "Packages/Seti_UI/Scheme/Seti.tmTheme", | |
"default_line_ending": "unix", | |
"folder_exclude_patterns": | |
[ | |
".idea", | |
"node_modules", |
This file contains 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
<?xml version="1.0"?> | |
<configuration> | |
<system.webServer> | |
<staticContent> | |
<clientCache cacheControlMode="UseExpires" | |
httpExpires="Tue, 19 Jan 2038 03:14:07 GMT" /> | |
</staticContent> | |
<rewrite> | |
<rules> | |
<rule name="HTTP to HTTPS redirect" stopProcessing="true"> |
This file contains 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
//Put this code in the main controller | |
$scope.$on('$viewContentLoaded', function(event) { | |
$window._gaq.push(['_trackPageview', $location.path()]); | |
}); |
This file contains 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 DbConfig | |
{ | |
public readonly string ConnectionString = ConfigurationManager.ConnectionStrings["TestDb"].ConnectionString; | |
public readonly OrmLiteConnectionFactory DbFactory; | |
public DbConfig() | |
{ | |
DbFactory = new OrmLiteConnectionFactory(ConnectionString, PostgreSqlDialect.Provider); | |
} |
This file contains 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 app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope, $timeout) { | |
$scope.save = function(){ | |
$scope.loading = true; | |
$timeout(function(){ | |
$scope.loading = false; | |
}, 3000); | |
}; |
This file contains 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 generateGuid = function(){ | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
var r = Math.random()*16|0,v=c=='x' ? r : r & 0x3 | 0x8; | |
return v.toString(16); | |
}); | |
} | |
console.log(generateGuid()); |
OlderNewer