https://docs.google.com/presentation/d/1xiKlCu27FwXCtdfNrutXYtyF-5IkryNSElcxQB9KU94/edit?usp=sharing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> A Counter </title> | |
</head> | |
<body> | |
The counter is <span id="counter-element">0</span> | |
<button>Click To Increment</button> | |
<script> | |
alert("Hey there"); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> A Counter </title> | |
</head> | |
<body> | |
The counter is <span id="counter-element">0</span> | |
<button>Click To Increment</button> | |
<script> | |
alert("Hey there"); | |
</script> |
This is my final submission for GSoC and contains description of my work. I've provided links to the PRs which are well documented, contain reference to all the issues fixed by them, and have descriptions of what the code is doing.
Chronologically --
- I started out by following Babel's official resources on getting started, sending some PRs to fix documentation along the way after trying and testing things out in the beloved ASTExplorer.
- After I got a hold on ASTs, how babel internals and transforms were working, how to use babel-types, I started work on rewrite12 of the parameter inlining logic to use as a vehicle to implement what I'd learnt and to smooth out any problems.
- Then I went after the Object Rest/Spread, [my first big PR](https://github.co
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// input | |
@decorator class Bizz { | |
@dec m1() {}; | |
@bar @foo.bar(baz) m2() {}; | |
@dec static 3 () {}; | |
} | |
// output | |
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | |
var desc = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage instructions (on linux): | |
# 1. put the file in your path (e.g. "/usr/bin") | |
# 2. cd to packages/plugin-you-want-to-see-fixtures-of and run babel-see-fixtures | |
out=`mktemp --suffix=.js` | |
for D in `find test/fixtures -type d` | |
do | |
if [ -f "$D/actual.js" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Hackeve JS & DOM</title> | |
<style> | |
#content-area { | |
display: -webkit-flex; | |
display: flex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
NewerOlder