Skip to content

Instantly share code, notes, and snippets.

// === Identifier rewriting for the ES6 module transpiler ===
// Proposal for minifier-friendly ES6 module transpiler output.
// This is for cases where we don't require any existing module
// format (AMD, CommonJS) and just want to emit a blackbox IIFE
// that uses modules internally. Those cases are Ember's normal
// global distribution (ember.min.js), as well as ES5 generated
// by the upcoming ember-cli ES6 stack.
// Do you all think this could work?
(function() {
'use strict'
function add(a, b) { return a + b }
var x = [1, 2]
console.time('apply')
for (let i = 0; i < 100000; i++) {
if (add.apply(null, x) === 4) throw 'dummy'
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=32823540k,nr_inodes=8205885,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=6584460k,mode=755,inode64)
/dev/mapper/ubuntu--vg-ubuntu--lv on / type xfs (rw,noatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755,inode64)
> @architect/sandbox@1.13.0 test /home/ubuntu/src/architect-sandbox
> npm run lint && npm run test:integration && npm run coverage
> @architect/sandbox@1.13.0 lint /home/ubuntu/src/architect-sandbox
> eslint . --fix
> @architect/sandbox@1.13.0 test:integration /home/ubuntu/src/architect-sandbox
update src/http/get-get-normal/node_modules/@architect/shared/package-lock.json
update src/http/get-get-normal/node_modules/@architect/shared/package.json
update src/http/get-get-normal/node_modules/@architect/shared/cache
update src/http/get-get-normal/node_modules/@architect/shared/constants
update src/http/get-get-normal/node_modules/@architect/shared/datetime
update src/http/get-get-normal/node_modules/@architect/shared/utils
update src/http/get-get-normal/node_modules/@architect/shared/node_modules
update src/http/get-get-normal/node_modules/@architect/shared/sources
remove src/http/get-get-normal/node_modules/@architect/shared/shared
update src/http/get-get-normal/node_modules/@architect/shared/cache/_convert-timestamp.js
Andalusia, Spain
Aragon, Spain
Asturias, Spain
Balearic Islands, Spain
Canary Islands, Spain
Cantabria, Spain
Castile-La Mancha, Spain
Castile and León, Spain
Catalonia, Spain
Ceuta, Spain
r = Math.random
for(y = c = ['']; y++ < 40;)
for(c[x = 0] += '\n'; x++ < 60; c[0] += '%c*')
c.push('background:#000;color:#' + (
y < 37 && (x < 30 ? x : 60 - x) + y * .7 - 3 > 30 ?
y < 6 || r() < 0.1 ? 'ffc' : 160 // branches + decoration
:
y > 36 && 27 < x && x < 33 ? // trunk
822
@joliss
joliss / notes.md
Last active May 21, 2018 18:03
Ember Camp travel
#!/bin/bash
mkdir tmp.$$
for i in {0..9999}; do
echo ".x$i{color:green;}"
done > tmp.$$/main.scss
rm -rf .sass-cache
echo Sass:
$ cd ~/.nvm && for commit in `git rev-list --first-parent --reverse v0.26.1..master`; do git checkout --quiet $commit && echo -n "$commit " && bash -c 'time . ~/.nvm/nvm.sh' 2>&1 | grep real; done
f34fef96d8ab3d7e6fba3574d122177de1140a88 real 0m0.062s
0181821b51609fe20ef72f8bf45523fe317be81a real 0m0.064s
0d898b0aa478cf86ea7afb6a733e8d2ff6ae75dd real 0m0.066s
0ef20199dcf6d4a21226a66cb8eccf23c6e16c7a real 0m0.064s
d4caf9fb670435a184a40242e6c215021187b46a real 0m0.065s
1e2a7a8de447c9b872fbf4cbe6c959cfc8d02a55 real 0m0.066s
c92effc6dabe8fc85252909e24ee49cbea89f3e7 real 0m0.068s
c9215a127feae213e9b09ca660f27801b0c52611 real 0m0.063s
014a44e15408ddcd6dc8c2ed9f781b2bfbd084d0 real 0m0.064s