I hereby claim:
- I am blessyahu on github.
- I am blessyahu (https://keybase.io/blessyahu) on keybase.
- I have a public key ASChRzs5W0s3mhJSbSppYDPs2V65irh1RjAhU4z6kJdsvgo
To claim this, I am signing this object:
Key Name Resulting Keystroke | |
{F1} - {F24} Function keys. For example: {F12} is the F12 key. | |
{!} ! | |
{#} # | |
{+} + | |
{^} ^ | |
{{} { | |
{}} } | |
{Enter} ENTER key on the main keyboard | |
{Escape} or {Esc} ESCAPE |
((global,Bacon)=> { | |
const pollingInterval = 1000; | |
const getCurrentDateAndTime = ()=> new Bacon.Next(new Date()); | |
const getTime = (currentDate)=> ({ | |
hour: currentDate.getHours ( ), | |
minutes: currentMinutes = currentDate.getMinutes ( ), | |
seconds: currentDate.getSeconds ( ) | |
}); | |
const convertMinutesAndSeconds = (currentTime)=> ({ | |
hour : currentTime.hour, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.83/Bacon.min.js"></script> | |
<style id="jsbin-css"> | |
body { | |
font-size: 200px; |
I hereby claim:
To claim this, I am signing this object:
augmentProduct = function (findEmployee, carrierName, product) { | |
var view = this, | |
augmentedProduct = _.clone(product); | |
var augEmpRates = _.map(augmentedProduct.employeeRates, function (currRate) { | |
var augEmpRate = _.extend(currRate, { employee: {} }); | |
return augEmpRate; | |
} | |
augmentedProduct.employeeRates = augEmpRates; |
var lookupExecute = function( products, processCommands) { | |
this.commandArray = processCommands; | |
this.lookupArray = products; | |
}; | |
// unwrapped values in functor, apply given function over each command object that has lookup items that meet the condition | |
lookupExecute.prototype.fmap = function(fn) { | |
var self = this, | |
mappedResults = map(this.commandArray, function(command) { | |
var matchedItems = self.lookupArray.filter(function(item) { |
<div class="wrap"> | |
<div class="header"><span>Todo List</span></div> | |
<div class="wrap-list"> | |
<ol class="list"> | |
<li> | |
<input type="checkbox" id="check-1" checked="checked"> | |
<label for="check-1">Shop</label> | |
</li> | |
<li> | |
<input type="checkbox" id="check-2"> |
Even though the browser landscape in my line of work has gotten better (as in, projects don't use IE6 or IE7 anymore), I still need to deal with "legacy" browsers. Since IE8 has been around for ?? years and is becoming the [new IE6], the term legacy fits.
I came across an issue where it was taking some time for javascript objects to initialize after a page load on IE8 for an application I was building. I just read about delaying object initialization using event capturing to increase performance[link]. Makes sense, no need to initialize objects until they are about to be used. Of course the rub is that IE8 doesn't do event capturing. I could shake my fist at IE for being behind the times and the bane of web developer existence..but I chose to find another way to implement the concept.
The UI item in question was a an piece of a bigger UI element, and getting to it (to click it) required mousing over the containing UI element. I could use the mouseover event t
public class DataController : Controller | |
{ | |
public ActionResult Submit(string status) | |
{ | |
var resultObject = new SomeViewModel(); | |
_eastClass.PutStatus(status, fillResultObjectAction(resultObject); | |
return View(resultObject); |
<div id="the_div"> | |
<ul id="the_list"> | |
<li id="the_item">Click me!</li> | |
</ul> | |
</div> | |
<p id="log"></p> | |
<script type="text/javascript" charset="utf-8"> | |
function log(string){ |