PageSourceSearch

https://zerotomastery.io/component---src-templates-cheat-sheet-template-js-607ad9443d4137960d99.js

js zerotomastery.io collected 2026-10-02 03:08:33 UTC 13,202 bytes, 2 lines download raw bytes

1(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[900],{13499:function(e,t,o){var a=o(96540);function r(e){return a.createElement("svg",e,[a.createElement("path",{d:"M0.707108 9.66L6.36396 4.00319",stroke:"#636363",strokeLinecap:"round",strokeLinejoin:"round",key:0}),a.createElement("path",{d:"M12.0215 9.66L6.36462 4.00316",stroke:"#636363",strokeLinecap:"round",strokeLinejoin:"round",key:1})])}r.defaultProps={width:"13",height:"14",viewBox:"0 0 13 14",fill:"none"},e.exports=r,r.default=r},40218:function(e,t,o){"use strict";o.d(t,{s:function(){return r},u:function(){return n}});var a=o(92568);const r=a.default.div.withConfig({displayName:"cheat-sheetsstyles__BackToTop",componentId:"sc-15sn584-0"})(["display:",";position:fixed;bottom:30px;right:30px;z-index:99;background:#f51767;color:#fff;cursor:pointer;padding:13px 15px;border-radius:3px;font-size:18px;box-shadow:rgba(19,15,235,0.31) 1px 2px 20px;& path{stroke:#fff;}"],({pageScrolled:e})=>e?"block":"none"),n=a.default.div.withConfig({displayName:"cheat-sheetsstyles__CheatsheetContainer",componentId:"sc-15sn584-1"})(["grid-column:3/11;.gatsby-highlight{max-width:none;}.scroll-table{overflow-x:auto;}table{margin-bottom:25px;}.custom-container{margin-bottom:25px;position:relative;width:100%;padding-bottom:56.25%;height:0;iframe{position:absolute;top:0;left:0;width:100%;height:100%;}}video{display:block;margin:0 auto;width:90%;height:auto;::-webkit-media-controls-enclosure{border:1px solid #fff;}}a{color:",";}h2 > a,h3 > a,h4 > a{color:",";}img{width:100%;max-width:fit-content;height:auto;margin:55px 0;@media screen and (max-width:760px){margin:35px 0;}}h2,h3,h4,a{scroll-margin-top:90px;}p{margin:4px 0 20px 0;font-size:20px;}h1{",";text-align:left;margin-bottom:20px;}h2{",";border-bottom:0.5px solid #f51767;padding-bottom:30px;margin:60px 0 30px;}h3{",";margin:40px 0 25px;}h4{",";margin:40px 0 25px;}li{line-height:1.8em;margin-bottom:5px;&::marker{color:",";font-weight:700;}}ol,ul{padding-left:25px;font-size:20px;}ol > li,ul > li{padding-left:5px;}&.toc-container{li{list-style-type:none;}li > a{color:",";}ul{margin-top:0;}h3{margin-bottom:15px;font-size:20px;line-height:30px;color:",";}h3 > a{color:",";}}blockquote{border-left:3px solid ",";margin-left:3px;p{color:",";}}pre{background:rgba(19,15,235,0.03);color:#2e2e2e;font-family:Courier New,Courier,monospace;padding:15px 30px;border-radius:5px;overflow-x:scroll;}pre code{font-family:Courier New,Courier,monospace;}@media screen and (max-width:1000px){grid-column:2/6;}@media screen and (max-width:760px){grid-column:1/-1;h1{",";}h2{",";margin:40px 0 15px;}h3{",";margin:25px 0;}h4{",";}h1,h2,h3,h4{margin-bottom:15px;}p,li{font-size:18px;}}"],({theme:{colors:e}})=>e.hyperLinkPink,({theme:{colors:e}})=>e.black,({theme:{typography:e}})=>e.desktop.h1,({theme:{typography:e}})=>e.desktop.h2,({theme:{typography:e}})=>e.desktop.h3,({theme:{typography:e}})=>e.desktop.h4,({theme:{colors:e}})=>e.hyperLinkPink,({theme:{colors:e}})=>e.darkGrey,({theme:{colors:e}})=>e.darkGrey,({theme:{colors:e}})=>e.darkGrey,({theme:{colors:e}})=>e.accentPink,({theme:{colors:e}})=>e.accentPink,({theme:{typography:e}})=>e.mobile.h1,({theme:{typography:e}})=>e.mobile.h2,({theme:{typography:e}})=>e.mobile.h3,({theme:{typography:e}})=>e.mobile.h4)},48860:function(e,t,o){"use strict";o.d(t,{a:function(){return n}});var a=o(92568),r=o(43169);const n=(0,a.default)(r.A).withConfig({displayName:"base-cardstyles__BaseCard",componentId:"sc-1eokxla-0"})(["box-shadow:1px 2px 20px rgba(19,15,235,0.1);background-color:",";border-radius:3px;"],({theme:{colors:e}})=>e.white)},55869:function(e,t,o){"use strict";o.r(t),o.d(t,{Head:function(){return B},default:function(){return z}});var a=o(96540),r=o(58156),n=o.n(r),i=o(13499),l=o.n(i),s=o(70979),c=o(40218),h=o(77387),d=o(9612),p=o(29529),m=o(92568),u=o(43169);const g=(0,m.default)(u.A).withConfig({displayName:"cheat-sheetstyles__CheatSheetContainer",componentId:"sc-a69sjo-0"})(["display:grid;grid-template-columns:1fr min(1340px,calc(100% - 100px)) 1fr;grid-column-gap:50px;& > *{grid-column:2;}.full-bleed{width:100%;grid-column:1 / -1;}@media screen and (max-width:1000px){grid-template-columns:1fr calc(100% - 40px) 1fr;grid-column-gap:20px;}"]);g.displayName="CheatSheetContainer";let x=function(e){function t(){return e.apply(this,arguments)||this}return(0,h.A)(t,e),t.prototype.render=function(){const{children:e}=this.props;return a.createElement(a.Fragment,null,a.createElement(d.A,null),a.createElement(g,this.props,e),a.createElement(p.A,null))},t}(a.Component);var f=x,y=o(35873),w=o(60967),b=o(36763),k=o(48860),v=o(29371);const C=({theme:{colors:e}})=>e.white,E=(0,m.default)(k.a).withConfig({displayName:"cheatsheet-CTAstyles__CheatsheetCTAC
1ontainer",componentId:"sc-934r7-0"})(["grid-column:3/11;display:grid;grid-template-columns:repeat(8,1fr);padding:60px;border-radius:25px;background-color:",";color:",";.content-container > h4{",";margin:0 0 15px;color:inherit;}@media only screen and (max-width:1000px){grid-column:2/6;}@media only screen and (max-width:760px){grid-column:1/-1;padding:30px 20px;.content-container > h4{margin-bottom:10px;}position:relative;width:106%;margin-left:-3%;margin-right:-3%;}@media only screen and (max-width:480px){position:relative;width:113%;margin-left:-6.5%;margin-right:-6.5%;}",""],({theme:{colors:e}})=>e.accentBlue,({theme:{colors:e}})=>e.white,({theme:{typography:e}})=>e.desktop.h4,v.xe),_=m.default.div.withConfig({displayName:"cheatsheet-CTAstyles__ContentContainer",componentId:"sc-934r7-1"})(["grid-column:1/8;div > p{margin:0 0 50px;",";font-weight:",";color:",";}p{margin:10px 0 0;}@media only screen and (max-width:1250px){grid-column:1/-1;}@media only screen and (max-width:760px){div > p{margin-bottom:25px;",";font-weight:",";}}"],({theme:{typography:e}})=>e.desktop.body,({theme:{fontWeight:e}})=>e.regular,({theme:{colors:e}})=>e.white,({theme:{typography:e}})=>e.mobile.body,({theme:{fontWeight:e}})=>e.regular),S=m.default.p.withConfig({displayName:"cheatsheet-CTAstyles__CheatsheetCTASubTitle",componentId:"sc-934r7-2"})(["",";color:",";@media only screen and (max-width:760px){font-size:13px;line-height:18px;}"],({theme:{typography:e}})=>e.desktop.metadata,({theme:{colors:e}})=>e.white),T=m.default.div.withConfig({displayName:"cheatsheet-CTAstyles__CheatsheetCTAFormContainer",componentId:"sc-934r7-3"})(["display:flex;position:relative;width:95%;button{height:46px;background-color:",";color:",";border-color:transparent;margin:0;margin-left:10px;font-size:15px;}button:hover{background-color:",';border-color:transparent;}button:focus-visible{box-shadow:"0 0 0 2px #fff";border-color:',";}@media only screen and (max-width:870px){display:block;width:100%;button{width:100%;margin:10px 0;}}"],({theme:{colors:e}})=>e.white,({theme:{colors:e}})=>e.accentBlue,({theme:{colors:e}})=>e.accentSkyBlue,({theme:{colors:e}})=>e.accentBlue),A=m.default.h5.withConfig({displayName:"cheatsheet-CTAstyles__EmailSubscribeStatus",componentId:"sc-934r7-4"})(["position:relative;top:-10px;",";color:",";font-weight:bold;margin:0;@media only screen and (max-width:760px){top:0;margin-bottom:10px;font-size:13px;line-height:18px;}"],({theme:{typography:e}})=>e.desktop.metadata,C),I=m.default.input.withConfig({displayName:"cheatsheet-CTAstyles__CheatsheetCTAInput",componentId:"sc-934r7-5"})(["position:relative;padding:10px 20px;height:46px;width:100%;border-radius:999px;border:1px solid ",";color:",";background-color:",";font-size:16px;::placeholder{color:",";}"],C,({theme:{colors:e}})=>e.white,({theme:{colors:e}})=>e.accentBlue,({theme:{colors:e}})=>e.white),N=m.default.div.withConfig({displayName:"cheatsheet-CTAstyles__StatusIcon",componentId:"sc-934r7-6"})(["position:absolute;right:190px;top:11px;svg > circle{stroke:#fff;}@media only screen and (max-width:870px){right:10px;top:9px;}"]);var L=o(32709);const M=o(86425);var P=({group:e,slug:t,name:o})=>{const r=e=>{(0,w.A)({event:"emailSubscriber",location:`Cheat-Sheet: ${t}`,status:e,cta_identifier:"CheatsheetCTA"})},n=async o=>{if(["python-cheat-sheet","linux-commands-cheat-sheet","data-structures-and-algorithms-cheat-sheet","big-o-cheat-sheet","node-js-cheat-sheet","javascript-cheatsheet-the-advanced-concepts","react-cheat-sheet","angular-cheat-sheet","rust-cheat-sheet","terraform-cheat-sheet","typescript-cheat-sheet","golang-cheat-sheet","ui-ux-design-cheat-sheet","react-native-cheat-sheet","ai-cheat-sheet"].includes(t))try{if(!(0,b.D)(o))return c("Please provide a valid email address to stay up to date!"),void d("error");const e=await(async({email:e,cheatsheet:t})=>{try{return await M.post("https://ciobackend.zerotomastery.io/api/v1/website-signups/cheatsheets",{email:e,cheatsheet:t})}catch(r){var o,a;return{status:(null==r||null===(o=r.response)||void 0===o?void 0:o.status)||500,message:(null==r||null===(a=r.response)||void 0===a?void 0:a.statusText)||"An error occurred"}}})({email:o,cheatsheet:t});200===e.status?(r("Subscribe Success"),c("Great decision, check your email for your PDF!"),d("success"),l("")):(c("An error occured, please try again later!"),d("error"))}catch(a){c("An error occured, please try again later!"),d("error")}else if((0,b.D)(o))try{200===(await fetch("/.netlify/functions/newsletter-mailerlite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,group:e,slug:t})})).status?(r("Subscribe Success"),c("Great decision, check your email for your PDF!"),d("success"),l("")):(c("An error occured, please try again later!"),d("error"))}catch(a){c("An error occured, please try again later!"),d("error")}else c("Please provide a valid email address to get the PDF of this cheatsheet!"),d("error")},{0:i,1:l}=(0,a.useState)(""),{0:s,1:c}=(0,a.useState)(""),{0:h,1:d}=(0,a.useState)("default");return a.createElement(E,{mt:40,mb:50},a.createElement(_,{className:"content-container"},a.createElement("h4",null,"Want to download a PDF version of this ",o,"?"),a.createElement("div",{dangerouslySetInnerHTML:{__html:"<p>Enter your email below and we'll send it to you 👇</p>"}}),"default"!==(p=h)?a.createElement(A,{statusStyle:p},s):null,a.createElement(T,null,a.createElement(I,{statusStyle:h,placeholder:"Enter Your Email Address",onKeyDown:e=>"Enter"===e.key?n(i):null,onChange:e=>{l(e.target.value.trim())},type:"email",autoComplete:"email"}),a.createElement(L.A,{isButton:!0,onClick:()=>n(i),style:{minWidth:"160px",padding:0}},"Send Me The PDF"),(e=>{switch(e){case"success":return a.createElement(N,{statusStyle:e},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25",width:"25",height:"25"},a.createElement("circle",{fill:"#1c8000",cx:"11.9",cy:"11.9",r:"11.5"}),a.createElement("path",{stroke:"white",d:"M 17.3789 6.78271 L 8.33081 15.8308 L 4.65625 12.1562"})));case"error":return a.createElement(N,{statusStyle:e},a.createElement("svg",{viewBox:"0 0 25 25",width:"25",height:"25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("circle",{fill:"#EB000E",cx:"11.9",cy:"11.9",r:"11.5"}),a.createElement("line",{x1:"16.3809",y1:"6.78275",x2:"6.78421",y2:"16.3794",stroke:"white"}),a.createElement("line",{x1:"16.4121",y1:"16.3794",x2:"6.81539",y2:"6.78275",stroke:"white"})));default:return null}})(h)),a.createElement(S,null,"Unsubscribe anytime.")));var p};const B=({location:e,data:t})=>{var o;const r=t.contentfulCheatsheet,n={pageTitle:r.seoPageTitle||r.name,pageDescription:r.seoPageDesc||r.excerpt,pageRobots:"index,follow"};return a.createElement(y.G,{metaData:n,uri:e.pathname,embedOverride:`https:${r.thumbnail.file.url}`,headScripts:null===(o=r.jsonLdScripts)||void 0===o?void 0:o.childMarkdownRemark.html})};var z=e=>{const t=n()(e,"data.contentfulCheatsheet"),o=JSON.parse(n()(e,"data.contentfulGeneralSettingsMailerliteGroupIdMapJsonNode.internal.content")),{0:r,1:i}=(0,a.useState)(!1),h=(0,a.useCallback)(()=>{const e=document.getElementById("cheatsheet-content").offsetTop;window.scrollY>e?i(!0):i(!1)},[]);(0,a.useEffect)(()=>(window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)),[e.path,o]);const d=t.shortIntro.childMarkdownRemark.html,p=t.intro.childMarkdownRemark.html,m=t.contents.childMarkdownRemark.html,u=t.pageOne.childMarkdownRemark.html+(t.pageTwo?t.pageTwo.childMarkdownRemark.html:"")+(t.pageThree?t.pageThree.childMarkdownRemark.html:""),g=(0,a.useCallback)(()=>{const e=document.getElementById("cheatsheet-toc").offsetTop;window.scrollTo({top:e-80,behavior:"smooth"})},[]);return a.createElement(f,{mt:[60,60,80,80],mb:[50,50,90,90]},a.createElement(s.A,null,a.createElement(c.u,{className:"intro-container",dangerouslySetInnerHTML:{__html:d}}),a.createElement(P,{slug:t.slug,group:o[t.mlOption],name:t.name}),a.createElement(c.u,{className:"intro-container",dangerouslySetInnerHTML:{__html:p}}),a.createElement(c.u,{id:"cheatsheet-toc",className:"toc-container",dangerouslySetInnerHTML:{__html:m}}),a.createElement(c.u,{id:"cheatsheet-content",dangerouslySetInnerHTML:{__html:u}})),a.createElement(c.s,{pageScrolled:r,onClick:g},a.createElement(l(),null)))}}}]);
2//# sourceMappingURL=component---src-templates-cheat-sheet-template-js-607ad9443d4137960d99.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.