The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
ko.bindingHandlers.dialog = { | |
init: function(element, valueAccessor, allBindingsAccessor) { | |
var options = ko.utils.unwrapObservable(valueAccessor()) || {}; | |
options.close = function() { | |
allBindingsAccessor().dialogVisible(false); | |
}; | |
$(element).dialog(options); |
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
namespace AbpWebSite.Templates | |
{ | |
/// <summary> | |
/// Used to rename a solution | |
/// </summary> |
.bootstrap-wrapper {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%} | |
/*.bootstrap-wrapper body{margin:0}*/ | |
.bootstrap-wrapper article, .bootstrap-wrapper aside, .bootstrap-wrapper details, .bootstrap-wrapper figcaption, .bootstrap-wrapper figure, .bootstrap-wrapper footer, .bootstrap-wrapper header, .bootstrap-wrapper hgroup, .bootstrap-wrapper main, .bootstrap-wrapper menu, .bootstrap-wrapper nav, .bootstrap-wrapper section, .bootstrap-wrapper summary{display:block} | |
.bootstrap-wrapper audio, .bootstrap-wrapper canvas, .bootstrap-wrapper progress, .bootstrap-wrapper video{display:inline-block;vertical-align:baseline} | |
.bootstrap-wrapper audio:not([controls]){display:none;height:0} | |
.bootstrap-wrapper [hidden], .bootstrap-wrapper template{display:none} | |
.bootstrap-wrapper a{background-color:transparent} | |
.bootstrap-wrapper a:active, .bootstrap-wrapper a:hover{outline:0} | |
.bootstrap-wrapper abbr[title]{border-bottom:1px dotted} | |
.bootstrap-wrapper b, .bootstrap-wrapper strong{font-weigh |
using System; | |
using System.Diagnostics; | |
using System.Text; | |
using System.Threading.Tasks; | |
public static class ProcessAsyncHelper | |
{ | |
public static async Task<ProcessResult> ExecuteShellCommand(string command, string arguments, int timeout) | |
{ | |
var result = new ProcessResult(); |
/* eslint-disable no-console */ | |
/*** | |
* This is a little server that emulates the protocol used by cloudflare's browser rendering API. In | |
* local development, you can run this server, and connect to it instead of cloudflare's (strictly | |
* limited) API. e.g. in your worker you might use a function like this: | |
* | |
* ```ts | |
* import { Browser, launch as launchPuppeteer } from '@cloudflare/puppeteer' | |
* function launchBrowser(env: Environment) { | |
* if (env.LOCAL_BROWSER_ORIGIN) { |