This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| let currentColor = '#ebedf0'; | |
| let clicking = false; | |
| const boxes = document.querySelectorAll('.js-calendar-graph-svg rect'); | |
| const graph = document.querySelector('.js-calendar-graph-svg'); | |
| // code for switching the current color | |
| function handleColorChange(e) { | |
| const el = e.currentTarget; | |
| currentColor = el.style['background-color']; | |
| console.log(currentColor) |
| // create a bookmark and use this code as the URL, you can now toggle the css on/off | |
| // thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
| javascript: (function() { | |
| var elements = document.body.getElementsByTagName('*'); | |
| var items = []; | |
| for (var i = 0; i < elements.length; i++) { | |
| if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
| items.push(elements[i]); | |
| } | |
| } |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question:
This article is the logical conclusion of my previous article - How I stopped loving Angular. Recommended to check before reading this one.
We have been using Vue instead of Angular for nearly a year now. In this article, I will highlight my impressions on Vue and differences compared to Angular.
Moreover, I will add some hands on experience notes from usage of Vue on real projects.
| /* | |
| * One of the questions that recently came up is how to remove vowels from Hebrew characters in Unicode | |
| * (or any other similar language). A quick look at Hebrew Unicode chart shows that the vowels are all | |
| * located between 0x0591 (1425) and 0x05C7 (1479). With this and Javascript's charCodeAt function, it | |
| * is trivial to strip them out with Javascript as follows | |
| * | |
| * Live demo is available here: | |
| * https://jsfiddle.net/js0ge7gn/ | |
| */ |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| <?php | |
| /* From https://www.usps.com/send/official-abbreviations.htm */ | |
| $us_state_abbrevs_names = array( | |
| 'AL'=>'ALABAMA', | |
| 'AK'=>'ALASKA', | |
| 'AS'=>'AMERICAN SAMOA', | |
| 'AZ'=>'ARIZONA', | |
| 'AR'=>'ARKANSAS', |