Skip to content

Instantly share code, notes, and snippets.

View BlessYAHU's full-sized avatar
💻

A'braham Barakhyahu BlessYAHU

💻
View GitHub Profile
@BlessYAHU
BlessYAHU / AuthoHotKeyList.txt
Created October 22, 2021 11:48 — forked from csharpforevermore/AuthoHotKeyList.txt
AutoHotKey Key List
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;

Keybase proof

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:

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;
@BlessYAHU
BlessYAHU / gist:6644051
Last active December 23, 2015 13:39
Code has been changed to pseudocode, but intent is still there. Original code is using Underscore, fmap from drboolean's typeclasses library and autocurry from wu.js. Original code gets a list of filter commands and a list of products. Filter views are rendered only if products have properties matching filtercommand field names.
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) {
@BlessYAHU
BlessYAHU / index.html
Created September 24, 2012 19:20
[UPDATED!] showing another usage of input:checkbox. for full view: http://codepen.io/ImBobby/full/EdALB inspired from : http://designshack.net/design/notepad-to-do-list-psd
<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">
@BlessYAHU
BlessYAHU / whenyoucantcaptruehover.md
Created September 22, 2012 03:23
When You Can't Capture, Hover

When You Can't Capture, Hover(draft)

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

@BlessYAHU
BlessYAHU / DataController.cs
Created September 19, 2012 16:20
East Orientation in an MVC Action Result
public class DataController : Controller
{
public ActionResult Submit(string status)
{
var resultObject = new SomeViewModel();
_eastClass.PutStatus(status, fillResultObjectAction(resultObject);
return View(resultObject);
@BlessYAHU
BlessYAHU / gist:636915
Created October 20, 2010 17:41
dom_events
<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){