Skip to content

Instantly share code, notes, and snippets.

🐐
. . ņ̷̢̦̰̲̳̗͗͋̽͛̀ī̶̭͍̰̯͇͔̥̭̃͒̓̚͟͟͠c̨̡͔̟͈̙̜̰͚̑̂͑͐̾ͅe̸̡͈̻͔͇͕̼̳̒̾̉̓͘ . .

Sam Saccone samccone

🐐
. . ņ̷̢̦̰̲̳̗͗͋̽͛̀ī̶̭͍̰̯͇͔̥̭̃͒̓̚͟͟͠c̨̡͔̟͈̙̜̰͚̑̂͑͐̾ͅe̸̡͈̻͔͇͕̼̳̒̾̉̓͘ . .
Block or report user

Report or block samccone

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
@samccone
samccone / README.md
Created Jan 19, 2019
How to export webpack stats.json and debug sourcemaps from create react app
View README.md

goto:

node_modules/react-scripts/config/webpack.config.dev.js

Change:

devtool: 'cheap-module-source-map',

To:

View gist:1fc251093f6e481be72a5b35b359ee1c
{
buildEnd() {
const deps = [];
Array.from(this.moduleIds).forEach(v => {
let m = this.getModuleInfo(v);
if (m != null && !m.isExternal) {
for (const source of m.importedIds) {
deps.push({ target: m.id, source})
}
View index.html
<html>
<style>
.bar {
position: absolute;
border: solid 1px transparent;
}
.bar.total {
border: solid 1px #ccc;
}
View gist:a4169d206f731c3ac3434686e6dd04b0
_='b=[85,1,-1],d=Array(1,0,4, onpoimov(>{dd=>d%2),90+e.x= e-12}),setIval(()=>{a 1])%,f* 2])*f+a,(<=a||!a 1!f 2|<f !(=||( 0einnerText(d,e)=>e%?d:"\\n"+d))},;10 0] e].fill(=d.map(]*=-1)|( (||3,c. d[ b[ )&&/|0,0)]=e=nter=(+';for(Y in $=' ')with(_.split($[Y]))_=join(pop());eval(_)
@samccone
samccone / .block
Last active Nov 26, 2017 — forked from d3indepth/.block
Force layout (with collision detection)
View .block
license: gpl-3.0
height: 420
border: no
View async_tasks.js
function asyncSomething(server) {
return 'some_calculated_val'
}
taskList = [asyncSomething('a'), asyncSomething('b'), asyncSomething('b')]
taskFutures = tasks.awaitAllDone(taskList);
for (let result of taskFutures) {
View gist:43ca733827470578f81eca17ca7642d3
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preload" href="scripts/script-a.js" as=script>
<link rel="preload" href="scripts/script-b.js" as=script>
<link rel="preload" href="scripts/script-c.js" as=script>
</head>
View gist:c362b9053a1a9e0880b6
<--- Last few GCs --->
101310 ms: Scavenge 1397.8 (1456.4) -> 1397.8 (1456.4) MB, 0.6 / 0 ms (+ 1.4 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
102365 ms: Mark-sweep 1397.8 (1456.4) -> 1395.6 (1456.4) MB, 1054.9 / 0 ms (+ 2.4 ms in 2 steps since start of marking, biggest step 1.4 ms) [last resort gc].
103305 ms: Mark-sweep 1395.6 (1456.4) -> 1397.8 (1456.4) MB, 939.9 / 0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
You can’t perform that action at this time.