Skip to content

Instantly share code, notes, and snippets.

View gr4b4z's full-sized avatar

Sylwester Grabowski gr4b4z

View GitHub Profile
@gr4b4z
gr4b4z / gist:6b9ea293976de623771027ed62cdc249
Created December 12, 2017 07:30 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
app.directive('myFoot', function () {
return {
restrict: 'E',
replace: true,
template: function(element, attrs)
{
// return '<span title=""><sup>('+attrs.nr+')</sup></span>';
// return '<span popover="qq" data-html="true" popover-trigger="mouseenter"><sup>('+attrs.nr+')</sup></span>';
return '<span popover="{{txt}}" popover-placement="top" popover-append-to-body="true" popover-trigger="mouseenter">('+
@gr4b4z
gr4b4z / YuiCompressorTransform
Created January 10, 2014 09:32
YuiCompressorTransform implementation whitout bug "Method not found: 'System.Collections.Generic.IEnumerable`1<System.IO.FileInfo> System.Web.Optimization.BundleResponse.get_Files()'."
using System;
using System.IO;
using System.Text;
using System.Web.Optimization;
namespace Yahoo.Yui.Compressor.Web.Optimization
{
public class YuiCompressorTransform : IBundleTransform
{
private readonly CompressorConfig _compressorConfig;