Skip to content

Instantly share code, notes, and snippets.

Peeyush Kushwaha peey

  • India
Block or report user

Report or block peey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hackeve.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Hackeve JS &amp; DOM</title>
<style>
#content-area {
display: -webkit-flex;
display: flex;
View lisp-infix.lisp
(defpackage :com.cxmcmbutterfly.lisp-infix
(:use :common-lisp)
(:export :$
:*operator-precedence-alist*))
(in-package :com.cxmcmbutterfly.lisp-infix)
;; default list of binary operations in the order of precedence, taken in the order that C++ takes it in sans lognor, logeqv and other binary operators unavailable in C++
;; , see http://clhs.lisp.se/Body/f_logand.htm
;; reference used: http://en.cppreference.com/w/cpp/language/operator_precedence
;; this is exported, and may be changed
View keybase.md

Keybase proof

I hereby claim:

  • I am peey on github.
  • I am peey (https://keybase.io/peey) on keybase.
  • I have a public key whose fingerprint is B47E 90B2 4A8A 6E5E E66E F175 755B 1FCE 5E8C C374

To claim this, I am signing this object:

@peey
peey / one-many-hash-interchange
Created Sep 29, 2014
Reverse and re-reverse object key-value maps
View one-many-hash-interchange
var reverseMapFromMap = function(map, callback) {
callback = callback || _.identity;
return _.transform(map, function(reverseMap, one, manyone) {
reverseMap[one] = reversedMap[one] || [];
reverseMap[one].push(callback(manyone));
}, {});
};
var mapFromReverseMap = function(reverseMap, callback) {
callback = callback || _.identity;
You can’t perform that action at this time.