Original snippet by maridlcrmn Converted to Less, and given a dark theme.
A Pen by Jay Holtslander on CodePen.
| public class CustomerController : Controller | |
| { | |
| public ViewResult Index() | |
| { | |
| return View(); | |
| } | |
| public ViewResult Edit() | |
| { | |
| var existingCustomer = new Customer(); |
| /* | |
| Copy this into the console of any web page that is interactive and doesn't | |
| do hard reloads. You will hear your DOM changes as different pitches of | |
| audio. | |
| I have found this interesting for debugging, but also fun to hear web pages | |
| render like UIs do in movies. | |
| */ | |
| const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
| // By @coderitual | |
| // https://twitter.com/coderitual/status/1112297299307384833 | |
| // Remove any duplicates from an array of primitives. | |
| const unique = [...new Set(arr)] | |
| // Sleep in async functions. Use: await sleep(2000). | |
| const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms))); | |
| // Type this in your code to break chrome debugger in that line. |
| SearchRequest request = new SearchRequest("DC=xx,DC=xxx,DC=com", | |
| "(|(objectClass=organizationalUnit)(isDeleted=TRUE)(objectCategory=Person))", | |
| SearchScope.Subtree, attribs); |
| Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force | |
| npm install -g npm-windows-upgrade | |
| npm-windows-upgrade | |
| npm cache clean | |
| npm update -g |
| // Queue class for serializing AJAX calls. | |
| // | |
| // Inspired by Raynos http://stackoverflow.com/a/4797596/1194060 | |
| // | |
| // Queue has a public append method that expects some kind of task. | |
| // A task is a generic function passed as callback. | |
| // Constructor expects a handler which is a method that takes a ajax task | |
| // and a callback. Queue expects the handler to deal with the ajax and run | |
| // the callback when it's finished |
| /* | |
| * jQuery.ajaxQueue - A queue for ajax requests | |
| * | |
| * (c) 2011 Corey Frang | |
| * Dual licensed under the MIT and GPL licenses. | |
| * | |
| * Requires jQuery 1.5+ | |
| */ | |
| (function(a){var b=a({});a.ajaxQueue=function(c){function g(b){d=a.ajax(c).done(e.resolve).fail(e.reject).then(b,b)}var d,e=a.Deferred(),f=e.promise();b.queue(g),f.abort=function(h){if(d)return d.abort(h);var i=b.queue(),j=a.inArray(g,i);j>-1&&i.splice(j,1),e.rejectWith(c.context||c,[f,h,""]);return f};return f}})(jQuery) |
| /* .modal-fullscreen */ | |
| .modal-fullscreen { | |
| background: transparent; | |
| } | |
| .modal-fullscreen .modal-content { | |
| background: transparent; | |
| border: 0; | |
| -webkit-box-shadow: none; | |
| box-shadow: none; | |
| } |
| wmic /namespace:\\root\cimv2 path win32_product where "name like '%%.NET%%'" get version |