Hi! If you see an error or something is missing (like :focus-within
for few years :P) please let me know ❤️
Element -- selects all h2
elements on the page
h2 {
/* Parse a string function definition and return a function object. Does not use eval. | |
* @param {string} str | |
* @return {function} | |
* | |
* Example: | |
* var f = function (x, y) { return x * y; }; | |
* var g = parseFunction(f.toString()); | |
* g(33, 3); //=> 99 | |
*/ | |
function parseFunction (str) { |
var a = 123, b = 'hello'; | |
function test(x, y) { | |
console.log(this); | |
return a + x + b + y; | |
} | |
// Serialize a function *with its captured environment* | |
var sf = serialize(test, { a: a, b: b }); | |
// Deserialize with captured environment |
An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.
using Org.BouncyCastle.Crypto; | |
using Org.BouncyCastle.Crypto.Parameters; | |
using Org.BouncyCastle.OpenSsl; | |
using Org.BouncyCastle.Security; | |
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
namespace MyProject.Data.Encryption | |
{ |
Authentication means determining who a particular user is. Authorization means applying rules about what they can do. Blazor contains features for handling both aspects of this.
It worth remembering how the overall goals differ between server-side Blazor and client-side Blazor:
This is a simple Tailwind plugin to expose all of Tailwind's colors, including any custom ones, as custom css properties on the :root
element.
There are a couple of main reasons this is helpful:
See the Tailwind Plugins for more info on plugins.
public static class EventUtil | |
{ | |
// The repetition in here is because of the four combinations of handlers (sync/async * with/without arg) | |
public static Action AsNonRenderingEventHandler(Action callback) | |
=> new SyncReceiver(callback).Invoke; | |
public static Action<TValue> AsNonRenderingEventHandler<TValue>(Action<TValue> callback) | |
=> new SyncReceiver<TValue>(callback).Invoke; | |
public static Func<Task> AsNonRenderingEventHandler(Func<Task> callback) | |
=> new AsyncReceiver(callback).Invoke; | |
public static Func<TValue, Task> AsNonRenderingEventHandler<TValue>(Func<TValue, Task> callback) |
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *\command] | |
@="cmd.exe /s /k pushd \"%V\"" | |