background preloader

JS

Facebook Twitter

Adding Bootstrap to a Vue CLI Project – Travis Horn. 3d-editor-vue. Being a frontend developer working on dozens of Web projects, it's fairly easy to dissolve into the numbing monotony of dashboards, tables, and photo galleries. But every now and then, an unusual project appears, offering up an opportunity to face new challenges and a whole new level of problems to solve. Last year, we were approached by iDesigner who asked us to build a 3D interior design app for the Web. Leading such a project was truly a unique experience and a breath of fresh air. In a series of blog posts, I would like to share with you some knowledge acquired in the course of developing that particular application. The general idea was to create something similar to Homestyler, Wanaplan, or Homebyme.

The Challenge The shape of the planned application was defined by the following requirements: The Technological Side All in all, from the list outlined above emerges the image of a complicated and a rather non-trivial piece of software. The Solution Reactivity to the Rescue VirtualDOM. How we got a 100% Lighthouse performance score for our Vue.js app | Checkly. “High Speed Tunnel” by Sekino Junichiro (late 20th century) - Ukiyo.org Since launch, we didn’t pay too much attention to the front end performance of the main Checkly web app. Shame on us. What better reason to dive into this than the publishing of the excellent The Cost of Javascript in 2018 by Google’s Addy Osmani? TL;DR: it took about half a day to go from an abysmal 34 to a 100 Lighthouse score on our Vue.js app.

Very short primer on web app performance The article by Osmani goes into why web/mobile performance is important, what Javascript has to do with it and what concerns there are regarding mobile, device type, render cycles, loading etc. Read it if you are not familiar with these topics. Javascript is the most expensive part of your site performance wise. If you’re hungry for more, hop over to high performance browser networking by Ilya Grigorik (also at Google) for some more in depth knowledge around this topic. Running Lighthouse Device: desktop. Some “highlights”: Yes. This: Shaping up with Angular.js. Sotownsend/BooJS. Injection de script dans un GIF avec imagejs. Imagejs is a small tool to hide javascript inside a valid image file.

The image file is not viewable as a picture, but it is recognized as one by content checking software, e.g. the file command you might now from Linux or other Unix based operation systems. Background A file created by this tool is able to extend XSS vulnerabilities. For example, if you are able to put a script tag on a website but cant run the script because it only runs scripts from this website, you can just upload e.g. a profile picture containing the code you want to run.

The idea came from Ajin Abraham who tested this on gif files. Of course there are more file types that allow to do this. How it works Every file has a so called file header. Share If you like it, share it! Convertir un fichier JSON en XML (et inversement) Utiliser togetherJS sur n’importe quel site | Meet Jey. Si vous ne connaissez pas encore TogetherJS je vous le recommande vivement, c’est un outil de collaboration en ligne développé par Mozilla.

Il permet de suivre en live l’activité de différentes personnes sur un site, de chatter, parler, pointer des zones et inviter de nouveaux utilisateurs dans la session. Vous pouvez soit directement ajouter le JS fournit par TogetherJS dans votre code, vous pourrez alors y accéder durant vos phases de devs ou autre. Et si vous souhaitez lancer une session sur n’importe quel site, il vous suffit d’ajouter ce petit bookmarklet (favori contenant du JS à exécuter) : Source : Pour l’utiliser c’est très simple, vous faites ajouter un favori, dans le champ URL vous ajouter ce code. Et ci dessous une vidéo de présentation de TogetherJS D’autres articles sur meetjey.com traitent également de Tips,Tools. Obelisk - De la 3D isométrique avec javascript - Korben.

Amis développeurs qui savez apprécier les bienfaits du JavaScript, voici une bonne petite bibliothèque pour vous. Obelisk.js ne vous aidera pas à livrer un menhir, mais plutôt à créer des objets isométriques 100% en pixels. Des cubes, des pyramides et toutes sortes de parallélépipèdes en canvas HTML5 simplement avec quelques lignes de JS. Il suffit d'appeler la bibliothèque Puis en Javascript, ça se présente comme ceci : On détermine un point d'ancrage, puis on donne les dimensions et la couleur de l'objet et hop la magie opère.

Et on peut faire des choses assez chiadées comme ce Flappy Bird ou ce sprite. Notez que plusieurs tutos sont disponibles pour prendre en main Obelisk. Plus d'infos ici. Rejoignez les 60133 korbenautes et réveillez le bidouilleur qui est en vous Suivez KorbenUn jour ça vous sauvera la vie.. JS NICE: Statistical renaming, Type inference and Deobfuscation. jQuery: The Write Less, Do More, JavaScript Library.