-2000 Lines of Code
folklore.orgIn early 1982, the Lisa software team was trying to buckle down for the big push to ship the software within the next six months. Some of the managers decided that it would be a good idea to track the … Read more
In early 1982, the Lisa software team was trying to buckle down for the big push to ship the software within the next six months. Some of the managers decided that it would be a good idea to track the … Read more
Translations: Russian This year, the talk of the town was AI and how it can do everything for you. I like it when someone or something does everything for me. To this end, I decided to ask ChatGPT to write … Read more
“));var m=_[n.size_id].split(“x”).map(function(e){return Number(e)}),v=(0,i.Z)(m,2);p.width=v[0],p.height=v[1]}p.rubiconTargeting=(Array.isArray(n.targeting)?n.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:f.adUnitCode}),t.push(p)}else(0,g.H)(“Rubicon: bidRequest undefined at index position:”.concat(r),u,e);return t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,n,r){if(!k&&e.iframeEnabled){var i={};return n&&(“boolean”==typeof n.gdprApplies&&(i.gdpr=Number(n.gdprApplies)),”string”==typeof n.consentString&&(i.gdpr_consent=n.consentString)),r&&(i.us_privacy=encodeURIComponent(r)),i=Object.keys(i).length?”?”.concat((0,g.Yp)(i)):””,k=!0,{type:”iframe”,url:”https://”.concat(y.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,t){return(0,g.uh)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,t){var n;return n=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?n.replace(/^http:/i,”https:”):n}function E(e){var t,n=document.getElementById(e.adUnitCode);(t=n.querySelector(“div[id^=’google_ads’]”))&&t.style.setProperty(“display”,”none”),function(e){var t=e.querySelector(“script[id^=’sas_script’]”),n=t&&t.nextSibling;n&&”iframe”===n.localName&&n.style.setProperty(“display”,”none”)}(n);var r=e.renderer.getConfig();e.renderer.push(function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:n,align:r.align||”center”,position:r.position||”append”},closeButton:r.closeButton||!1,label:r.label||void 0,collapse:r.collapse||!0})})}function T(e,t){var n=e.params;if(t===l.pX){var r=[];return n.video&&n.video.playerWidth&&n.video.playerHeight?r=[n.video.playerWidth,n.video.playerHeight]:Array.isArray((0,v.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?r=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(r=e.sizes[0]),r}var i=[];return Array.isArray(n.sizes)?i=n.sizes:void 0!==(0,v.Z)(e,”mediaTypes.banner.sizes”)?i=C(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=C(e.sizes):(0,g.yN)(“Rubicon: no sizes are setup or found”),function(e){var t=[15,2,9];return i.sort(function(e,n){var r=t.indexOf(e),i=t.indexOf(n);return r>-1||i>-1?-1===r?1:-1===i?-1:r-i:e-n})}()}function C(e){return(0,g.sF)(e).reduce(function(e,t){var … Read more
In this post, we’ll implement a GPT from scratch in just 60 lines of numpy. We’ll then load the trained GPT-2 model weights released by OpenAI into our implementation and generate some text. This post assumes familiarity with Python, NumPy, … Read more
It took a few hours to fall in love with SwiftUI. So much so that we instantly decided to abandon a cross-platform codebase and go fully native on iOS. timing.is shipped this month on the App Store. It was built … Read more
Beyond textbook Bresenham Introduction Every now and then (don’t ask) I have to yet again write a subpixel-accurate but NOT antialiased line drawer. In many ways AA lines are much simpler – because every pixel is a different shade, you … Read more
The era spawning from the 1950s throughout the 1980s can be considered the golden era of telecommunication. While computers were expanding from items consuming entire rooms to something that could fit on a person’s desk, so was the way we communicate. … Read more
We’re sharing lessons learned from shifting our Android development from Java to Kotlin. Kotlin is a popular language for Android development and offers some key advantages over Java. As of today, our Android codebase contains over 10 million lines of … Read more
tinylisp/tinylisp.pdf at main · Robert-van-Engelen/tinylisp · GitHub {{ message }} Permalink This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. 1 contributor Sorry, something went wrong. Reload? Sorry, … Read more
I have worked at 5 different software companies with a mixture of game development, mobile development, and web development. Across all of these, one topic stands out that does not get the attention it deserves: time to iterate. Originally I … Read more