Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

> 🎵 don't be a javascript hipster, add semi-colons 2012 Classic, Douglas Crockford vs Fat / Bootstrap

95,986 Aufrufe • vor 2 Monaten •via X (Twitter)

0 Kommentare

Keine Kommentare verfügbar

Kommentare vom Original-Post werden hier angezeigt

Ähnliche Videos

Create a digital watch using HTML, CSS, and JavaScript. Check✅ my breakdown of its functionality⬇️ •Features: 1. HTML Structure: - A `div` with `id="watch"` acts as the display area for the digital clock. 2. CSS Styling: - Centering: The `body` uses `flexbox` to center the watch both vertically and horizontally. - Aesthetic Design: The watch has a rounded border, a specific background color, and text styling for a modern look. 3. JavaScript Functionality: - The `updateWatch` function gets the current time using the `Date` object, formats the hours, minutes, and seconds with leading zeros (using `padStart`), and updates the `#watch` div's content. - The `setInterval` method ensures the time updates every second. - An initial call to `updateWatch()` ensures the clock doesn't show `00:00:00` for the first second. • How It Works: - When the page loads, the time is immediately displayed and updates every second. This results in a real-time clock that's accurate and visually appealing. • Potential Enhancements: 1. Add a toggle between 12-hour and 24-hour format. 2. Include the date along with the time. 3. Animate or style the time updates for a smoother experience. Remember to repost this💪 to educate others on your timeline. Don't be selfish, share. Follow me Dhanian 🗯️ and turn on notifications🤛 for more tech updates For more tech projects, check link on my profile. Remember to bookmark💪 Here's the full code snippets for the sample ⌚watch ⬇️

Dhanian 🗯️

11,136 Aufrufe • vor 1 Jahr

Xavier Leroy (creator of OCaml) is an expert in compilers, formal verification of software and functional programming. This interview should be an approachable resource if you're curious about formal verification of software since I was learning that on the fly during it. In this episode: • OCaml compared with Rust and JavaScript • What is formal verification and how does it work • How languages call each other across boundaries • How to address "almost-correct" LLM code • How type inference works in programming languages Where to watch: • YouTube - • Spotify - • Apple Podcasts - • Transcript - Thank you to the sponsor of this episode for supporting my work: • WorkOS: makes your app Enterprise Ready with easy to use APIs to add SSO, SCIM, RBAC, and more in just a few lines of code, check them out at Chapters: 00:00 - Intro 00:43 - What sets OCaml apart 04:39 - OCaml vs Rust 07:57 - Why is manual memory management more performant 11:21 - Javascript vs OCaml 14:00 - Famous Rob Pike quote 16:05 - Type inference and how it works 22:12 - What is formal verification and how does it work 40:07 - What made multicore support difficult for OCaml 50:17 - How programming languages interface and call each other 57:41 - The danger of almost-correct LLM code 01:05:39 - How LLMs will change programming languages 01:10:26 - Industry vs academia 01:15:05 - Most interesting unsolved problems 01:18:30 - Top book recommendations for engineers 01:21:17 - Advice for his younger self 01:23:31 - Outro

Ryan Peterman

23,082 Aufrufe • vor 8 Tagen

Back home after a vacation broken early because of flights cancelled due to bad weather, the first evening settles in gently - a golden winter light spilling onto the balcony, the air cool, familiar, and comforting. We are happy to be back to what home does best - simple, honest fulfillment. Warm rotis fresh off the tawa, a spicy gingery chana dal with squash, aloo-pyaz mixed veg bhuna cooked down slow, tangy mint raita on the side, and the true jewel of winter - moist, fragrant, jewel-toned gajar ka halwa. Improvised from my Mom’s recipe. Just blissful food that brings you back to yourself. #SavitriCooks Here is the Recipe for Gajar Halwa. It takes anywhere from 1.5 to 2 hours because the milk must be simmered at low heat. Be patient - the results are so worth it. Ingredients: Carrots – 1 kg (grated or coarsely chopped in food processor) Milk (boiled) – 1.5 - 1.75 liters full fat milk (If you like your halwa crunchy use less milk, if you like it moist use more- I used 1.75 liters) Organic Sugar – 2/3 cup (or to taste) Khoya/Milk Mawa powder –1/4 cup Ghee (desi) – 8 tbsps (or as required - I make mine at home with organic butter) Cardamom seed powder – 1/2 tsp Dry fruits/nuts (I put raisins fried in ghee and chopped pistachios)– as per taste Directions: 1. Rinse, peel, and grate/chop the carrots. 2. Add grated carrots to a heavy bottomed kadhai/pot/pan and cook on high flame for 2–3 minutes. 3. Add boiled milk, bring to a simmering boil, and mix well. We add boiled milk to ensure it doesn’t split. 4. Cook uncovered on medium-low flame until carrots are cooked and milk reduces. Keep stirring to prevent milk from burning on bottom. 5. Increase to medium flame and stir frequently as the milk evaporates. When all milk has evaporated, add sugar and mix well. The carrots will lose more water after adding sugar. 6. Continue cooking on medium flame, stirring continuously till semi dry again. 7. Add khoya and ghee, mix well. Add cardamom powder. Mix thoroughly.Keep stirring on medium-high flame till the Ghee starts oozing on sides. 8. Now thoroughly bhuno(roast) the mixture in ghee for 5 minutes till you get the roasted fragrance. Do not let the mix become over dry - the mix should still be glistening with ghee 9. Add your chopped nuts and raisins. Cover and simmer on low for 2–3 minutes. Your Gajar Halwa is ready. Sit back and enjoy the heavenly taste of tradition.

Savitri Mumukshu - सावित्री मुमुक्षु

18,788 Aufrufe • vor 7 Monaten

Here's a copy/paste prompt recipe and vid showing exactly how to ask an LLM for an interactive map with satellite/map layers + a georeferencer that lets you see how old maps correspond with modern geography. Today the computer can’t make good print maps (that's your hill to climb ) but it can, with five bucks and twenty minutes, make good interactive maps. No software/GIS knowledge necessary, you just need a few nouns and an LLM. Scroll to the bottom for the repo/live map if you want those. I'm using Claude Code as an extension in VS Code but you can use the Claude CLI, Cursor, whatever. 1) Let's grab an old cadastral map and see who owned big tracts of a city; I found this an 1854 map of Niagara Falls, NY I found in the Library of Congress: , grabbed the .jp2, saved as a jpg from photoshop. 2) Let's ask Claude Code for a map. You can see exactly what I did in the video but my prompt, sans simple "hey it's busted" debugging, is written out in the following paragraphs. I explain the map-specific nouns in brackets. You can likely dump this whole thing in your LLM window and it'll work; I'd try plan mode + skip permissions. THE PROMPT Make an interactive map with MapLibre GL JS [maplibre is a javascript mapping library, a FOSS version of Mapbox GL JS. This lets us display tiled map data and arbitrary images on the map] Add basemap toggles with Esri satellite, Carto Positron, and OSM [these map layers require no API keys for light usage; Carto Positron is a nice road map layer and OSM is ugly but comprehensive] Add a globe/mercator projection toggle [I think the globe looks better at low zooms] Add a layer panel on the left with visibility checkboxes and delete buttons. Add a search box on the map that flies to results, with deletable pin markers [Makes this easy to get to your area of interest] Include an interactive local georeferencer: drop a JPG, pick ground control points on a zoomable/pannable image viewer, place them on the map, watch it warp with a progress bar centered on the map. [The georeferencer uses math ("affine transform"??) to match points on the old map to points on the new map; generally you click road intersections on the old map, match them on the new map, repeat a dozen times and everything aligns] The georeferenced map overlay defaults to 25% opacity with a slider above the control point list. [I want it easy to see the underlying modern geography] Add Export/import control point buttons [this saves the control points as a JSON so you can save and reimport your work] Add a button to export the warped image as a GeoTIFF with a .prj [In case you want to add the georeferenced image to a real GIS program like QGIS] Look up all relevant docs before starting [Claude sometimes uses outdated stuff] Split everything into separate HTML/CSS/JS files [Claude tends to pile everything in index.html, which is hard to read] Use Optima font, base color #FEFAF6 [I just like this style] Let me test with a local server [it serves it on a simple server so you can nav your host to localhost:8000 and try it out] Log all errors [so you don't have to play telephone with the LLM describing what's busted] 3) Once your LLM finishes, test it out in your browser; if it doesn't work, ask the LLM to check logs. Repeat 'til functional. 4) After this works on your computer, you can show it to everyone by hosting it on GitHub: prompt with "write a README explaining what everything does, add it to a new GitHub repo, deploy using GitHub pages, gimme the live URL" Here's what Claude made for me, try it yourself: • Upload the JPG in the repo, which is linked below • "Add GCP" • Click somewhere recognizable on the old map, like the tip of an island or a road intersection • Click the matching point on the new map • Repeat til you have least 3x points • Hit "georeference" • You'll see the old map atop the new map; if you want a better fit, delete bad points or add a dozen new ones, hit georeference again, repeat Repo: Is this map robust? Human-maintainable? Elegant? Performant? Secure? No, but *your* personal web map need not be. It just needs to work for *your* narrow use case, because it’s *your* map.

Evan Applegate

15,772 Aufrufe • vor 4 Monaten

Nationalism + Antisemitism = "Perfect Synergy" For Gentiles. Allow me to explain. 🔖this. 1. My Nationalism Strategy: Nationalism is a fundamental "organizing principle" of a Nation for its own benefit. I'm an American, so I promote & advocate the restoration of classic [White + Christian] American Nationalism, because it's OUR country founded for US by OUR ancestors, and built by them and their posterity with a unique mix of predilections, talents, skills, customs, culture, genius, worldview and genetic heritage—all filtered & molded first over millennia in Europe, then refined further over centuries in America. I believe this is the right organizing principle for America. Other nations of the world will have their own Nationalist organizing principles. Listen to Douglas Rushkoff below, jewish power is diametrically opposed to Nationalism and thrives by destroying it—which means Nationalism is therefore the solution to jewish supremacy. 2. My Antisemitism Strategy: I fight jewish supremacy because it's antagonistic to both Whites and Christianity. It was a critical & essential factor in the overthrow of the White Christian foundations of America in favor of this current multicultural dystopian wasteland we find ourselves in. As such, it's the main obstacle to restoring classic America & American heritage. It also happens to be a problem for the entire world. Most Nations of the world are occupied to some degree by jewish supremacy, which often pits these nations against each other, making it more difficult for all of us to thrive. Jewish supremacy seeks to make all nations subservient to its global jewish trans-nation for its own ends. Note the famous tweet from Cursed Salad below. 3. Perfect Synergy For Gentiles: That's why I say antisemitism without nationalism is pointless; and nationalism without antisemitism is feckless. Without each other, both are a dead end: What's the purpose of Noticing if there's not a destination to row toward on the other side? Are we just noticing for noticing's sake? And what's the point of discussing our heritage and trying to restore it if we don't identify & address the major root-cause problem standing in the way of it? How can we overcome obstacles if we don't even recognize & acknowledge them? Jews don't fear antisemitism if it doesn't come with solutions to their supremacy. And they don't fear solutions that don't specifically address their supremacy. It's time for both, my friends. jews have their "perfect synergy," it's time for our own Perfect Synergy: Nationalism + antisemitism.

Sam Parker 🇺🇸🧯

50,557 Aufrufe • vor 10 Monaten

Option analysis and tooling is now improved on OpenMarket First: the GEX heatmap is now more accurate, and you can pick how it computes. Two modes: Dealer flow (new, the default): dealer positioning measured from the tape. Open interest (classic): the standard convention, dealers long calls, short puts. How the measured mode works: Every options trade has an aggressor and a quoter. Whoever crossed the spread is the customer. Whoever was quoting and got hit is the dealer. So every trade tells us what a dealer just took on: you buy a call, some dealer is now short that call. We add that up, trade by trade, contract by contract, and keep a running picture of what dealers are actually holding. Giant prints don't fool it. A block 25x the normal size is almost always two institutions moving a position between themselves, not a customer trading against a dealer, so it barely counts. The totals get sanity-checked against open interest every day (our estimate can't hold more contracts than actually exist), and when a contract expires, its position leaves the books, same as real life. And when we can't see enough, we say so. If our tape covers less than 60% of a contract's open interest, we don't pretend: that contract uses the classic assumption instead, and the chip on the chart shows exactly how much of the board is measured vs assumed. The two are never mixed inside one contract. In classic mode, a "wall" is just the strike with the most contracts outstanding. In dealer flow it's the strike where dealers actually have the most to hedge. Usually the same. When they differ, the measured one is the one that moves price. The rest of the update: Double-click any options panel and it takes over the chart. The IV smile expands to show every expiry with its date, the GEX curve gets a live readout of flip, walls, and totals. Drag the sensitivity slider and the heatmap re-colors under your cursor. No reload, no flash. The blocky look is gone: the surface now blends smoothly between strikes. Six new themes for every options panel, new heatmap palettes, and a little legend on the chart that always tells you what the colors mean. Live now.

OpenMarket

20,066 Aufrufe • vor 9 Tagen

If the Bible of Nigerian politics were to be written today, this speech right here could be the greatest political, tactical and positive speech. It was intended to canvass delegates for support. That's seen at the end of the speech with the statement “ Eyin delegates here, may your own not become delicate o. The place, reading the room, the homeletics, the details of the speech, the chronology of events in the speech and the ending with a plea and “idobale”, is classic omoluabi. I can understand the speech being misconstrued by non-Yoruba speakers. But, to understand the language, watching this speech and deducing negativity from it needs to be diagnosed for mental stability. Well, some humans are irrational and easily irritable when others exhibit brilliance and intentionality. Kudos to the current governor of Ogun State alias “eleyi”, for taking in the jabs in the speech, turning it into lemonade. The truth hits hard, but before the speech, it was conspicuous that he “padipo” with the vagabonds of the party at the time to collude to unsit the Jagaban’s own person as governor of Osun State. His role in that manoeuvring called for the jabs. But, after the speech, you could notice a realignment with the master. Even the mouth movement and the head gesture from him in the video connotes total agreement with the jabs. Kudos to the ọmọ ọkọ for not being obstinate. Many would take further offence and dig themselves into a bigger hole. Abiodun did not. He adopted the Ambode Principle of realignment. There is a lot to learn in politics, and the best attitude for learning is to pay attention to history. Pay attention to details, to events, to the quotas people play. But, more importantly, if you want to play a role in politics. Build solid relationships and add great value to the people you meet on the way. Be a blessing to their causes, don't be a curse. It is working…

Dr Abraham Great

20,953 Aufrufe • vor 9 Monaten

Let me tell you how I got into Sharks hockey: When I started watching the San Jose Sharks, they were in a playoff matchup vs the Colorado Avalanche back in 2010. I was really bored at home and flipping through channels when I discovered hockey. The 1st Sharks goal I had witnessed was Joe Pavelski tying the game with less than a minute to go in game 2. Man, was the Tank loud that night. I was excited. Of course, I didn't know who he was at the time, but I really liked him, so I started watching them more and more just because of Pavs. Not because I cared who won the game. Eventually, I started printing out their schedule and kept reading about who Joe Thornton was. Who Patrick Marleau was. Rob Blake. Devin Setoguchi. Douglas Murray. Danny Heatley. Raffi Torres 😈 Etc... Now, I can't go a day without mentioning the Sharks. They are literally part of my life. I cannot live without them. Overdramatic? Maybe, but I don't care. I keep seeing how the newer fans are flocking over to our fanbase because of Celebrini and Smith, and it just got me thinking about how I became a Sharks fan. I used to be just like them. Who am I to sit here and judge how or what they thinl when I used to be the same way? I know I haven't been 100% welcoming, and for that, I truly apologize if I had ever made any of you new Sharks fans unhappy. I can't speak for everybody, but we "old heads" need to be better when it comes to the new generation of fans. I just hope that the new fans, at some point, take the time to learn the history of the franchise we hold dear to our Teal Hearts.

SmithBriniGrafLund

26,949 Aufrufe • vor 5 Monaten

CSS Tip! 🐳 You can add little details like this scale down on scroll effect with scroll-driven animations and some sticky positioning 🤙 section { animation: scale-down; animation-timeline: view(); animation-range: exit; } @​keyframes scale-down { to { scale 0.8; } ] In this smaller example, you can lean into using the position to drive an animation that scales itself down as it leaves the viewport (Seen on the Apple Vision Pro site 🍏) The nice thing here is that if you don't have scroll-driven animations, the user still gets a good experience ✨ So how do you do it? There isn't much to it header { transform-origin: 50% 0%; animation: scale-down both ease-in; animation-timeline: view(); animation-range: exit; view-timeline: --header; } @​keyframes scale-down { to { scale: 0.8 0.8; } } That's it. The layout makes use of position: sticky so that the element stays in the shot whilst you scroll the page. As it leaves the page, it scales down inside the 🫶 The other smol animation here is fading the overlay on the video out 😎 Real easy. You may notice the view-timeline you defined above for the 👀 header { view-timeline: --header; } You have a pseudoelement on the text content of the header that lives inside a header > section::before { background: hsl(0 0% 0% / 0.75); opacity: 1; animation: fade both linear; animation-timeline: --header; animation-range: exit-crossing 0% exit 0%; } @​keyframes fade { to { opacity: 0; } } You use a slightly smaller range on this with exit-crossing to fade it out before you start the scale down animation 🤏 That's it! Thought this smaller example would be easier to grok for people 🙏 It's also covered with JavaScript if you really want it for your sites 🤙 CodePen.IO link below 👇

jhey ʕ•ᴥ•ʔ

146,270 Aufrufe • vor 2 Jahren

"Cholesterol Lowering Statins Can Cause Aphasia & Take Away Your Ability To Speak...The Same Condition Actor Bruce Willis Has." Dr Bryan Ardis Documented Cases Of Statin Induced Aphasia Forced The FDA To Add Safety Warnings In 2012. Yet No Patient Is Warned Of This Side Effect. Aphasia & dysphasia are terms used to describe language disorders that affect a person's ability to understand, produce, or use language. They are often used interchangeably, dysphasia is considered mild impairment which then develops into its severe form aphasia. Cholesterol lowering statins deprive the brain of cholesterol leading to cognitive decline with diagnoses of neurodegenerative diseases & progressive conditions like Alzheimer's, frontotemporal dementia & vascular dementia---then leading to aphasia, the complete inability to speak. The US FDA admits in the 2012 safety warning that cognitive decline is reversible if the patient stops taking the cholesterol lowering statin... "Assessment of cognitive function included testing in four domains: executive functioning, memory, language & visuospatial ability." "There have been post marketing reports of cognitive impairment (e.g.,memory loss, forgetfulness, amnesia, memory impairment, confusion, speech impairment & language delays) associated with statin use." "These cognitive issues have been reported for all statins. The adverse effects are reversible upon statin discontinuation, with variable times to symptom onset of 1 day to 1 year. Symptom resolution was achieved by stopping the statin with a median time frame of 3 weeks." Current Cholesterol Lowering Statins On The Market... rosuvastatin (Crestor) simvastatin (Zocor) atorvastatin (Lipitor) fluvastatin (Lescol) lovastatin (Mevacor) lovastatin extended release (Altoprev) pitavastatin (Livalo) pravastatin (Pravachol) Crucial Systems Within The Human Body That Statins Damage... Statins cause CoQ10 deficiency, resulting in muscle pain & Mitochondrial Dysfunction. Statins stop Dolichol, a crucial molecule in protein glycosylation in the brain, deficiency leads to Parkinson's & other brain disorders. Statins cause liver & pancreas damage, leading to insulin resistance & type 2 diabetes. Every Statin crosses the blood brain barrier & shuts off the enzyme of cholesterol production leading to Dementia & Alzheimer's. The brain is supposed to be 60% fat & 25% cholesterol. And every cell within the body is supposed to be saturated with cholesterol. Statins inhibit Heme A, a vital component of the electron transport chain for energy. Chronic Conditions Documented To Be Caused By Cholesterol Lowering Statins... Aphasia Dysphasia Alzheimer's Disease Cancer Pancreatitis Liver Damage Type 2 Diabetes Depression Parkinson's Disease ALS (Lou Gehrig's Disease) Hormonal Deficiency Brain Damage Multiple Sclerosis Rhabdomyolysis (Muscle Tearing) Neuropathy Heart Failure Vertigo Cognitive Impairment Dementia Cited research resource links & video credit in replies...

Valerie Anne Smith

94,543 Aufrufe • vor 8 Monaten