Skip to content

Instantly share code, notes, and snippets.

🐢
Chilling

Clement Hoang clemmy

🐢
Chilling
Block or report user

Report or block clemmy

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 babel-standalone-with-general-gexp.js
This file has been truncated, but you can view the full file.
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Babel"] = factory();
else
root["Babel"] = factory();
@clemmy
clemmy / babel-standalone.js
Last active Dec 8, 2017
v6.18 with JSX fragment support and explicit generator expressions
View babel-standalone.js
This file has been truncated, but you can view the full file.
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Babel"] = factory();
else
root["Babel"] = factory();
@clemmy
clemmy / babel-standalone.js
Last active Dec 5, 2017
v6.18 with JSX fragment support, implicit do expressions, and explicit generator expressions
View babel-standalone.js
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Babel"] = factory();
else
root["Babel"] = factory();
})(this, function() {
View output.js
/******/ (function(modules) {
// webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {}; // The require function
/******/
/******/ /******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if (installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
View jsx_explicit_gexp_cases.md
*{{ a: 1 }} // { a: 1 }
*{
  ({ a: 1 })
} // { a: 1 }
View react_state_preservation_behavior.md
Render 1 Render 2 State Preserved?
<>...</> <>{[...]}</> yes (in any level)
<><>...</></> <>...</> no
[...] [[...]] no
[<>...</>]* [...] no
[<>...</>]* <>...</> no
[<>...</>]* <>[...]</> no
[<>...</>]* [[...]] yes
[<>...</>]* <><>...</></> yes
@clemmy
clemmy / Vagrantfile
Created Nov 17, 2014
The Vagrant configuration file for my MEAN stack box.
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@clemmy
clemmy / brackets.js
Created Nov 10, 2014
Outputting all balanced bracket expressions
View brackets.js
outputBalancedBracket(3);
function outputBalancedBracket(n) {
for (var i=1; i<=n; ++i) {
var outputs = [];
brackets("",0,0,i,outputs);
console.log("N="+i+" "+outputs.join(','));
}
}
You can’t perform that action at this time.